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 #76483 is a reply to message #76410] Tue, 07 June 2011 07:04 Go to previous messageGo to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
On Jun 7, 12:22 pm, Fabzou <fabien.mauss...@tu-berlin.de> wrote:

[...]

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

Here in the Netherlands (KNMI) we are struggling with a similar issue.

Sample code:

for i=0L,9999999 do begin
print, i
ncid = NCDF_OPEN('TM5_V1_griddef.nc')
NCDF_CLOSE, ncid
endfor
end

This will crash (or rather hang) IDL on the system of a coworker with
i between 100,000 and 900,000 (notice that nothing is done with the
netcdf file at all, just open and close). My (supposedly identical)
machine runs this without issue. We haven't been able to identify
anything different in our environment, files are not accessed over the
network, ... we're at a loss.

Some hints:

* there is an ITTVIS incident on the subject: 241865. They can
reproduce the issue, perhaps you can help connect the dots.
* The issue also can occur with hdf-4 and hdf-5 files.
* A switch in the version of the HDF-5 library (1.6.X to 1.8.Y) in
IDL8 may have to do with the appearance of the issue. But you are
dealing with netcdf (3, I presume?) so that may not apply. Of course
it is possible that IDL8 switched to netcdf4 and therefore inherits
all behaviour (good and bad) of hdf-5. The HDF5 helpdesk is also aware
of this issue. They have identified an issue in some of the files
we're working with, and pointed to a possible cause. A resolution is
not available though. HDF-5 1.6.X (X < 5) can read these files (minus
the corrupted part), later versions of the HDF-5 library will simply
crash when the corrupted part is read.

IDL> print, !VERSION
{ x86 linux unix linux 8.0.1 Oct 6 2010 32 64}
(as far as I know, this happened in IDL 7 as well).

All clues for a solution are apreciated,

Maarten
[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: Thu Oct 09 22:16:13 PDT 2025

Total time taken to generate the page: 0.00235 seconds