NCDF_ATTGET

The NCDF_ATTGET procedure retrieves the value of an attribute from a netCDF file.

Calling Sequence

NCDF_ATTGET, Cdfid, [Varid,] Name, Value

Arguments

Cdfid

The netCDF ID, returned from a previous call to NCDF_OPEN or NCDF_CREATE.

Varid

The netCDF variable ID, returned from a previous call to NCDF_VARDEF or NCDF_VARID, or the name of the variable. If the GLOBAL keyword is used, this argument must be omitted.

Name

A scalar string containing the attribute name.

Value

A named variable in which the attribute's value is returned. NCDF_ATTGET sets Value 's size and data type appropriately.

Keywords

GLOBAL

Set this keyword to retrieve the value of a global attribute.

Example

For an example using this routine, see the documentation for NCDF_ATTINQ .

See Also

NCDF_ATTINQ , NCDF_ATTNAME , NCDF_ATTPUT