if (FALSE) {
# Import binary (netcdf) file and convert coordinates from km to m,
# without destaggering. Variable name is "NOx".
mydata <- importRaster(
file = "/path_to_file/filename.nc",
variable = "NOx",
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",
variable = "pm10",
k = 1000,
dx = 100,
dy = 100
)
}
Run the code above in your browser using DataLab