Skip to main content

All Questions

Tagged with
0 votes
1 answer
207 views

Error calculating area of raster with lat/lon projection

I have a global raster stack (of three rasters) whose pixel values are the percent of a land use for that pixel. Here's the raster metadata: class : RasterBrick dimensions : 3600, 7200, 25920000,...
Stephen Wood's user avatar
0 votes
0 answers
35 views

How to open a file in R studios (version 4.0.3) from GLODAP?

I'm very new to coding in R and do not know what I am doing. I am trying to map some environmental variables but I cannot open this one file. This is the link to the files I want to open: https://www....
confusedstudent's user avatar
1 vote
1 answer
223 views

Why is the data is not plotting on top of global map in R?

I am trying to plot annual and decadal difference in sea surface temperature data from the world ocean atlas (https://www.nodc.noaa.gov/cgi-bin/OC5/woa18/woa18.pl) in 1 degree with a netcdf file. I ...
liv's user avatar
  • 93
4 votes
0 answers
1k views

saving R' raster to netcdf .nc file with keeping CRS information

I am having a problem while converting a raster object as NetCDF (.nc) file, with keeping the CRS information in the output file. Here is a reproducible code: require(raster) require(ncdf4) CurrTemp ...
Ahmed El-Gabbas's user avatar
3 votes
1 answer
1k views

Aggregating seasonal means with the raster package in r

I am attempting to aggregate daily data (35 years) to monthly then calculate seasonal mean using the raster package in R (I know how to do it with CDO). Below is my code, which outputs 4 seasonal ...
Fredrick's user avatar
2 votes
1 answer
3k views

r read NetCDF and export as shapefile

I need to read a NetCDF file with R and export each time step as a smoothed polygon shapefile. I have two problems: smoothing the raster and exporting to shapefile with proper projection from the NC ...
Ilik's user avatar
  • 165
0 votes
1 answer
2k views

how to make a loop for reading several nc files as a raster and then write them as envi?

This code given below (developed by stackoverflow users) will read a variable from a netcdf file and write it as an envi file. This code is working fine but I have several netcdf files like this one ...
sacvf's user avatar
  • 2,503
0 votes
1 answer
495 views

why gdal gave me different max and min values of a variable from R?

These three lines will open and read one variable from a netcdf file: f=open.ncdf("C:\\BR_Ji1.nc") A = get.var.ncdf(nc=f,varid="date",verbose=TRUE) B = get.var.ncdf(nc=f,varid="GPP",verbose=TRUE) [1] ...
Sami Yemein's user avatar