I have netcdf files of daily temperature and precipitation data How is it possible to Change projection of a netcdf?
I have tried to doing this using raster function to read the files and reproject them with projectraster?
Code_used
a <-raster(file.nc)
cr1<-"+proj=longlat +datum=NAD83 +no_defs+ellps=GRS80 +towgs84=0,0,0"
projectRaster(a, cr1,res = 0.04166667)
ERROR_
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘res’ for signature ‘"character"’ In addition: Warning message: In min(dim(to)[1:2]) : no non-missing arguments to min; returning Inf