if (FALSE) {
# Import binary (netcdf) file and convert coordinates from km to m,
# without destaggering:
mydata <- importRaster(file = "/path_to_file/filename.nc",
k = 1000,
destaggering = FALSE)
# Import binary (netcdf) file and convert coordinates from km to m,
# with shift of 100 m in both directions:
mydata <- importRaster(file = "/path_to_file/filename.nc",
k = 1000,
dx = 100,
dy = 100)
}
Run the code above in your browser using DataLab