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

Home » Public Forums » archive » Re: Do netCDF Files Have a DataType of INT?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Do netCDF Files Have a DataType of INT? [message #84419 is a reply to message #84414] Mon, 03 June 2013 05:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> 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?

Oh, never mind. After sleeping on this, I think this is a user error on
my part. :-(

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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Use IDLanROI or not
Next Topic: Re: Use IDLanROI or not

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

Current Time: Fri Oct 10 06:57:07 PDT 2025

Total time taken to generate the page: 0.87447 seconds