NCDF_ATTDEL
The NCDF_ATTDEL procedure deletes an attribute from a NetCDF file.
Examples
; Open file test.nc for writing:
id = NCDF_OPEN('test.nc', /WRITE)
; Delete global attribute TITLE from the file:
NCDF_ATTDEL, id, 'TITLE', /GLOBAL
NCDF_CLOSE, id ; Close the file.
Syntax
NCDF_ATTDEL, Cdfid [, Varid] , Name [, /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 name of the attribute to be deleted.
Keywords
GLOBAL
Set this keyword to delete a global variable.
Version History
Pre 4.0 |
Introduced |