nc_subset: Subset a ncdf variable

View source: R/nctools-main.R

nc_subsetR Documentation

Subset a ncdf variable

Description

Subset a ncdf variable

Usage

nc_subset(
  filename,
  varid,
  output,
  newvarid,
  compression,
  force_v4 = FALSE,
  ...,
  ignore.case = FALSE,
  drop = FALSE
)

Arguments

filename

The name of the ncdf file to subset.

varid

The name of the variable to subset. If missing and only one variable in the file, that one is used.

output

The name of the ncdf output file to create.

newvarid

New name for varid in the output file.

compression

Compression level for the new variable (forces ncdf v4).

force_v4

Logical. Should the resulting file be ncdf v4?

...

the dimensions and bounds of values to subset.

ignore.case

Logical. Ignore case when matching the dimensions?

drop

Logical. Drop degenered dimensions (i.e. dimensions of length 1)?


roliveros-ramos/nctools documentation built on Aug. 13, 2022, midnight