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 
Return to the default flat view Create a new topic Submit Reply
Re: The good way to use cdfid's [message #76409] Mon, 06 June 2011 05:52 Go to previous 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.")
[Message index]
 
Read Message
Read Message
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: Sat Oct 11 15:58:26 PDT 2025

Total time taken to generate the page: 0.87945 seconds