nc.get.dim.bounds.var.list: Get a list of names of dimension bounds variables.

Description Usage Arguments Details Value References Examples

View source: R/helpers.r

Description

Get a list of names of dimension bounds variables.

Usage

1

Arguments

f

The file (an object of class ncdf4).

v

The name of the variable (a string).

Details

Many dimension variables are not single points, but in fact represent a range along the axis. This is expressed by associated dimension bounds variables. This function returns the names of any dimension bounds variables found in a file.

Value

A character vector naming all of the dimension bounds variables found.

References

http://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#cell-boundaries

Examples

1
2
3
4
5
6
7
## Get list of dimension bound variables
## Not run: 
f <- nc_open("pr.nc")
dim.bounds.var.list <- nc.get.dim.bounds.var.list(f)
nc_close(f)

## End(Not run)

ncdf4.helpers documentation built on Oct. 15, 2021, 5:19 p.m.