setgridtypeNC: Set grid type of NetCDF file

View source: R/setgridtypeNC.R

setgridtypeNCR Documentation

Set grid type of NetCDF file

Description

Set grid type of NetCDF file

Usage

setgridtypeNC(type = "curvilinear", infile, outfile)

Arguments

type

character. Grid type

infile

character. Filepath, which should lead to NetCDF files.

outfile

character. Output filename of the remapped data.

Value

A NetCDF file containing the croped data.

Examples

## 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)

RS-eco/processNC documentation built on Aug. 7, 2023, 8:12 a.m.