Do netCDF Files Have a DataType of INT? [message #84422] |
Sun, 02 June 2013 19:36 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I've run into a problem with a netCDF file and I need a sanity check.
I define a variable attribute "colortable" with an integer value, say
33. As far as I know netCDF files don't have a datatype named "INT", so
I use the datatype "SHORT" when I create the attribute:
NCDF_ATTPUT, fileID, self.ID, 'colortable', 33, /SHORT
Now, I want to read this attribute out of the file and copy it to
another file. To learn something about this attribute I use the IDL
routine NCDF_ATTINQ:
attrInfo = NCDF_AttInq(fileID, GLOBAL=1, 'colortable')
But, the datatype field of this attribute structure is inexplicably set
to INT:
IDL> Print, attrInfo.datatype
INT
Does that make *any* sense to anyone?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|