comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Do netCDF Files Have a DataType of INT?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Do netCDF Files Have a DataType of INT? [message #84422] Sun, 02 June 2013 19:36
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: LinkedHash in IDL
Next Topic: IDL - freeing up used memory?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:45:57 PDT 2025

Total time taken to generate the page: 0.00482 seconds