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

Home » Public Forums » archive » Re: The good way to use cdfid's
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: The good way to use cdfid's [message #76409] Mon, 06 June 2011 05:52 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fabzou writes:

> I looked into David's code from NCDF_DATA and saw that David is opening
> and closing the file every time (e.g. in NCDF_DATA::ReadVariable). What
> are the reasons for this choice?

Ignorance, I suppose. I note that NCDF_DATA is very old.
I keep it around because it has the incredibly handy
ability to browse netCDF and HDF files. For most of
my real netCDF work, I use my NCDF_FILE object, which
works exactly as yours does. (I had learned something
in the intervening years, thank goodness!)

I just tried creating and destroying a NCDF_FILE
object 16500 times, and had no trouble doing so
using IDL 8.1 on Windows.

What version of IDL are you using? And, on what OS?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: The good way to use cdfid's [message #76508 is a reply to message #76409] Mon, 06 June 2011 06:35 Go to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
On 06/06/2011 02:52 PM, David Fanning wrote:
>
> What version of IDL are you using? And, on what OS?
>

I am sorry, I made a mistake in my previous mail. The computer on which
the error is happening is:

{ x86_64 Win32 Windows Microsoft Windows 7.1.2 Oct 28 2009 64 64}
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: DICOM image query crashes IDL
Next Topic: draw spheres in 3D space

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

Current Time: Wed Oct 08 17:07:10 PDT 2025

Total time taken to generate the page: 0.00396 seconds