View source: R/setgridtypeNC.R
setgridtypeNC | R Documentation |
Set grid type of NetCDF file
setgridtypeNC(type = "curvilinear", infile, outfile)
type |
|
infile |
|
outfile |
|
A NetCDF file containing the croped data.
## Not run:
file <- list.files(paste0(system.file(package="processNC"), "/extdata"),
pattern="tas.*\\.nc", full.names=TRUE)[1]
temp <- tempfile(fileext=".nc")
setgridtypeNC(type="curvilinear", infile=file, outfile=temp)
raster::plot(raster::stack(temp))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.