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

Home » Public Forums » archive » The good way to use cdfid's
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: The good way to use cdfid's [message #76487 is a reply to message #76410] Tue, 07 June 2011 03:22 Go to previous messageGo to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
Hi,

I made a standard test program and made it run on the computer from a
colleague:

PRO bug_ncdf

Catch, theError
IF theError NE 0 THEN BEGIN
Catch, /Cancel
if N_ELEMENTS(j) eq 0 then j = 0
print, !Error_State.Msg
print, 'Error occured at j = ', j
print, !VERSION
RETURN
ENDIF

file = '/../3B42.081001.18.6A.nc' ; put your own file here
FOR j=0L, 33000 DO BEGIN
cdfid = NCDF_OPEN(file)
inq = NCDF_INQUIRE(cdfid)
NCDF_CLOSE, cdfid
ENDFOR

END

The program throws an error:

IDL> bug_ncdf
% Loaded DLM: NCDF.
NCDF_INQUIRE: -2147483648 is not a valid cdfid.
Error occured at j = 32767
{ x86_64 Win32 Windows Microsoft Windows 7.1.2 Oct 28 2009 64 64}
IDL> bug_ncdf
NCDF_INQUIRE: -2147418112 is not a valid cdfid.
Error occured at j = 0
{ x86_64 Win32 Windows Microsoft Windows 7.1.2 Oct 28 2009 64 64}

IDL cannot open any further NCDF files afterwards. RESET_SESSION won't
change anything, just restart the workbench will do it...

How is this possible ??? Could it be related to the fact that we also
have ENVI installed on our computers? Is it related to the internal Ncdf
libraries ???
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: point inside/outside of 3D object.
Next Topic: Re: Venn Diagram in IDL?

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

Current Time: Wed Oct 08 19:32:23 PDT 2025

Total time taken to generate the page: 0.00191 seconds