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

Home » Public Forums » archive » netCDF adding variable to an existing file
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: netCDF adding variable to an existing file [message #84131 is a reply to message #83958] Fri, 26 April 2013 10:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
armor.uah@gmail.com writes:

> I finally figured out what was going wrong and the ways to fix it.
> What was going wrong: Even though the appending procedures would fail, some data was getting appended to the file. This is where the "already defined" errors came from. The way to fix this was to remove the netCDF file and replace the file with an unmodified file every time you run the program while troubleshooting.
>
> About getting dimension information to append to the file: I was not aware of the NCDF_DIMID call and it is required. Here is the correct code in case someone needs it in the future

For people who prefer not to spend weeks figuring this out on their own,
I just point out that the NCDF_File object in the Coyote Library shields
you from knowing all the details of how this works, and gives (perhaps)
much more informative and descriptive error messages to alert you to
problems. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: netCDF adding variable to an existing file
Next Topic: IDL 8.2.2 released

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

Current Time: Sat Oct 11 15:29:13 PDT 2025

Total time taken to generate the page: 1.19610 seconds