restrict: Extract data from netcdf file based on land id

Description Usage Arguments Value

Description

(Relatively) fast way to extract data from netcdf file structured by land id. The use case is to extract a subset of the full grid, based on a set of land ids. These can be non-consecutive.

Usage

1
restrict(f, var_id, var_land_id = "land_id", ids, par = FALSE)

Arguments

f

the path to the netcdf

var_id

variable to extract

var_land_id

variable used for land ids in the netcdf file

ids

a vector of land ids

par

run in parallel mode (not implemented)

Value

a data.table


cszang/squadron documentation built on May 30, 2019, 6:55 p.m.