cdfcont {clim.pact} | R Documentation

## netCDF names and dimensions.

### Description

Obtains the variable names and dimension names from a netCDF file. This routine provides some of the information returned by `names.netCDF`, however this function does not depend on the `netCDF` package. If it doesn't work, make sure to set the path to include the location of `ncdump` and `ncgen` (two netCDF executables, usually under a netcdf direcory). Alternatively, set the `path`.

### Usage

    cdfcont(filename,path="")

### Arguments

`filename` | name of netCDF file.
`path` | Path to the location where `ncdump` and `ncgen` are located.

### Value

a list object containing two character vectors: `vars` and `dims` holding the names of the variables and dimensions. `dims` gives the dimensions for each of the variable, and may contain several names within the same string, separated by a comma, eg. "LONS","LATS",and "LATS, LONS" (`strsplit("TIME, LATS, LONS",", ")` can be used to split up these variables into seperate names). 'time.origin' returns the time_origin, 'add.offset' gives the 'add_offset' attribute, and 'scale.factor' gives the scale_factor.

### Author(s)

R.E. Benestad

### Examples

[Package Contents]