Learn R Programming

ncmeta (version 0.5.0)

nc_dim: NetCDF dimension

Description

Obtain information about a single dimension by index.

Usage

nc_dim(x, i, ...)

# S3 method for character nc_dim(x, i, ...)

# S3 method for NetCDF nc_dim(x, i, ...)

# S3 method for ncdf4 nc_dim(x, i, ...)

Value

data frame of dimension information, with columns 'id', 'name', 'length', 'unlim'

Arguments

x

filename or handle

i

index of dimension (zero based)

...

ignored

See Also

nc_dims to obtain information about all dimensions, nc_inq for an overview of the file

Examples

Run this code
f <- system.file("extdata", "S2008001.L3m_DAY_CHL_chlor_a_9km.nc", package = "ncmeta")
nc_dim(f, 0)

Run the code above in your browser using DataLab