att.val.ncv {ncvar}R Documentation

Get NetCDF Attributes (internal)

Description

Get the value of an attribute. For internal use only.

Usage

att.val.ncv(att, name)

Arguments

att A list of objects of class "att.ncv".
name The name of the attribute.

Details

Get the value of an attribute. For internal use only.

Value

The attribute value. NULL if the attributes does not exist.

Author(s)

Juerg Schmidli

Examples

## Create example file
foo.ncv()

## Open file
nc <- open.nc(paste(tempdir(),"/foo.nc",sep=""))

## Get attribute
att <- att.get.ncv(nc, "temperature", 1)
att.val.ncv(att, "missing_value")

close.nc(nc)

[Package ncvar version 1.0-4 Index]