remapNC: Remap NetCDF file

View source: R/remapNC.R

remapNCR Documentation

Remap NetCDF file

Description

Remap NetCDF file

Usage

remapNC(gridfile, infile, outfile)

Arguments

gridfile

character. Filepath to the grid.txt file.

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")
gridfile <- paste0(system.file(package="processNC"), "/extdata/euro-cordex_grid_bav.txt")
remapNC(gridfile=gridfile, 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.