Re: The good way to use cdfid's [message #76409] |
Mon, 06 June 2011 05:52  |
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  |
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}
|
|
|