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

Home » Public Forums » archive » NetCDF and empty variables
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: NetCDF and empty variables [message #66192 is a reply to message #66142] Wed, 22 April 2009 08:29 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> OK, I understand that I can't read any variable that has
> this unlimited dimension set to zero. So, how do I determine
> ahead of time (that is, before I read the variable) whether
> that variable is using this dimension?

Never mind, I figured out that NCDF_VARINQ can return me
the IDs of all of the dimensions of the variable. If
I have a dimension with a length of zero, I save its ID
and later compare it to the dimension IDs returned
from the function listed above. If there is a match,
I don't read the variable and do something else.

The nCDF_Browser has been updated appropriately:

http://www.dfanning.com/ncdf_browser.zip

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: VISualize 2009 summary
Next Topic: image correlation

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

Current Time: Fri Oct 10 15:50:09 PDT 2025

Total time taken to generate the page: 1.60282 seconds