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

Home » Public Forums » archive » Re: GMT generated netCDF grid files and IDL
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: GMT generated netCDF grid files and IDL [message #1112] Thu, 05 August 1993 11:29 Go to next message
xm9 is currently offline  xm9
Messages: 2
Registered: March 1993
Junior Member
In article <23r8mq$a1r@skates.gsfc.nasa.gov> philip@denali.gsfc.nasa.gov (Philip Richardson) writes:
>
> Does anybody have a program to read in GMT generated netCDF
> files into IDL? I am having a heck of a time with this. Suggestions are welcome.

I, too, had the devil's own time using netCDF files with pv-wave.
My conclusion is that it is not worth the effort to make a
generalized netCDF reader because this format is extensible, and can
vary from file to file. What I resorted to was using GMT routines
which can fetch the parts I want, and then wrote the result to a
fixed-format binary file that was readable by pv-wave scripts I had
written. I used a header structure to copy the corresponding
netCDF/GMT header info, but came up against a real weird thing on
our HP 7xx's: the code I wrote insisted on sticking extra bytes into
the header if doubles followed long integers. Since I wanted to
stick with the header that GMT generated, I simply stuck the extra
bytes to match this. Be warned if you use an HP, too. BTW, I
programmed in C.
Re: GMT generated netCDF grid files and IDL [message #1293 is a reply to message #1112] Wed, 11 August 1993 14:50 Go to previous message
frank is currently offline  frank
Messages: 15
Registered: August 1993
Junior Member
I don't use GMT data and use only little IDL, however from my experience
with netCDF, you probably need some preprocessor like the ncdump to give
you an idea about what you have in the data file and go on from there.
Of course, this is based on the assumption that you want to have a
generic netCDF reader.

--
============================================================ ===================
| Chih-Hung Chen (Frank) | email: frank@manua.gsfc.nasa.gov|
| General Sciences Corp.(SAIC) | fax : (301) 286-3221 |
| Software Development - SeaWiFS Data System| voice: (301) 286-9531 |
| System/Network SeaWiFS Project | |
| NASA/Goddard Space Flight Center | |
| Code 970.2 | |
| Greenbelt, Maryland 20771 | |
============================================================ ===================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL LICENSING MADNESS
Next Topic: 3-D & 2-D plots simultaniously

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

Current Time: Sun Oct 12 11:15:52 PDT 2025

Total time taken to generate the page: 1.19825 seconds