extract_ncdf: extract_ncdf function

Description Usage Arguments Value See Also Examples

Description

A function to extract data from the NetCDF file saved by trmm2ncdf

Usage

1
extract_ncdf(dat, start = NULL, count = NULL)

Arguments

dat

an object inheriting class trmmNCDF as created by trmm2ncdf

start

the start index. A vector of indices indicating where to start reading the passed values (beginning at 1). The length of this vector must equal the number of dimensions the variable has. If not specified, reading starts at the beginning of the file (1,1,1,...).

count

A vector of integers indicating the count of values to read along each dimension. The length of this vector must equal the number of dimensions the variable has. If not specified and the variable does NOT have an unlimited dimension, the entire variable is read. As a special case, the value '-1' indicates that all entries along that dimension should be read. By default this extracts data for the first time point.

Value

an array or matrix with the requested data

See Also

trmm2ncdf

Examples

1
2
3
## Not run: extract_ncdf(dat=dat)
## Not run: extract_ncdf(dat=dat,start=c(1,1,1,1),count=c(1,2,3,1))
## Not run: extract_ncdf(dat=dat,start=c(1,1,1,1),count=c(-1,1,1,1))

barryrowlingson/trmm documentation built on May 11, 2019, 8:31 p.m.