nc.get.dim.names: Get a list of names of dimensions

View source: R/helpers.r

nc.get.dim.namesR Documentation

Get a list of names of dimensions

Description

Get a list of names of dimensions.

Usage

nc.get.dim.names(f, v)

Arguments

f

The file (an object of class ncdf4)

v

Optionally, a variable

Details

This function returns the names of dimensions in a file or, if v is also supplied, attached to a particular variable.

Value

A character vector naming the dimensions found.

Examples

## Get dimension names
## Not run: 
f <- nc_open("pr.nc")
dim.names <- nc.get.dim.names(f, "pr")
nc_close(f)

## End(Not run)


ncdf4.helpers documentation built on April 12, 2025, 1:39 a.m.