All Questions
8 questions
0
votes
1
answer
61
views
Unexpected layer name when reading NetCDF file using terra and raster R packages
I need to read a NetCDF file in R using terra package. Here is a snapshot of the NetCDF
(NC <- nc_open("Test11.nc"))
File Test11.nc (NC_FORMAT_NETCDF4):
1 variables (excluding ...
0
votes
1
answer
602
views
How to install the terra and raster libraries in R on Linux to manipulate .nc files?
I am trying to open and manipulate a .nc file (netcdf) in R. I have managed to install the ncdf4,RNetCDF, and ggplot2 packages. My issue is that when I try to install other packages to help me work ...
0
votes
1
answer
215
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,...
1
vote
3
answers
928
views
r ncdf4 "I could not find the requsted var!"
I am getting a 'could not find the requested var' error, even though the variable name is valid - it works with other netcdf libraries - including NCO, the R netcdf4 library, and Panoply:
This example ...
0
votes
1
answer
114
views
Wrong Dimensions in Geospatial NetCDF
I would like to load the following geospatial file in R: ftp://ftp.nodc.noaa.gov/pub/data.nodc/icoads/1930s/1930s/ICOADS_R3.0.0_1930-10.nc. The problem is that using the subsequent code I only obtain ...
5
votes
1
answer
2k
views
Keeping raster variable names when converting to NetCDF using R
Taking a raster file of monthly temperature data for multiple years which has a name attached accessible via names(object) in the following format 'Jan.1981', 'Feb.1981' etc (example files for two ...
0
votes
1
answer
4k
views
Converting raster stack extent from meters to lat/lon coordinates
I have a raster stack in the following format which I converted to NetCDF using this method. This works but the latitude and longitude variables are in 'meters' which is the extent of the raster file, ...
3
votes
1
answer
7k
views
Writing R raster stack to NetCDF
I've got an R grid file containing monthly temperature data for the year 1981 which I read in and tried to write to NetCDF using the following code:
library(raster)
library(ncdf4)
library(RNetCDF)
...