Routines (alphabetical) > Routines: N > NCDF Routines > NCDF_ATTGET

# NCDF_ATTGET

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

## Examples

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

## Syntax

NCDF_ATTGET, Cdfid [, Varid] , Name, Value [, /GLOBAL]

## Arguments

### Cdfid

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

### 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.

## Version History

Pre 4.0 | Introduced

## See Also

NCDF_ATTINQ, NCDF_ATTNAME, NCDF_ATTPUT