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

Home » Public Forums » archive » Re: 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 #66141 is a reply to message #66138] Fri, 17 April 2009 06:46 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
renaud.dussurget@gmail.com writes:

> I have found a simple way to deal with this, however I don't really
> like it...
> IDL>cmd = 'NCDF_VarGet, ncid, varId, data
> IDL>res= EXECUTE(cmd)
> % Array dimensions must be greater than 0.
>
> And then in the code, write something like this
> IF (res EQ 0) THEN data = -1
>
> Does anyone has a better solution???

I doubt there are better solutions. IDL makes it
extremely difficult to deal with errors coming
from all the scientific dataset routines. It is
a problem without good solutions. :-(

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: Computing needs, here's free root account on Solaris10
Next Topic: DEM Volume (voxel_proj)

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

Current Time: Sat Oct 11 09:35:47 PDT 2025

Total time taken to generate the page: 2.48241 seconds