nc.imtx: Index matrix for NetCDF

Description Usage Arguments Value

Description

Emulate the A[B] matrix indexing behaviour in R for NetCDF connections whilst avoiding reading large arrays into memory.

Usage

1
nc.imtx(ncfile, variable, imtx)

Arguments

ncfile

NetCDF object (see open.nc)

variable

character string; the variable name in the NetCDF file

imtx

integer matrix; the indices to read; must have the same number of columns as variable has dimensions; must contain only positive integers and no NAs; ideally the range of values in some or most columns would not be very large to avoid reading a large array into working memory

Value

a vector whose type corresponds to that of variable


CJBarry/DRW documentation built on May 6, 2019, 9:25 a.m.