The NCDF_ATTPUT procedure creates an attribute in a netCDF file. If the attribute is new, or if the space required to store the attribute is greater than before, the netCDF file must be in define mode.
Use this keyword to override the default length (the whole value). Set this keyword to a value less than or equal to the number of elements in Value . For example:
ATTR_ID = NCDF_ATTPUT(CDFID, VARID, 'Attr1', $
The following keywords specify a non-default data type for the variable. By default, NCDF_ATTPUT chooses one based upon the type of data. If a data type flag is specified, the data supplied in Value is converted to that data type before being written to the file. Only one of these keywords can be used in a single call to NCDF_ATTPUT.
Set this keyword to indicate that the data is composed of 8-byte floating point numbers (doubles).