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 
Return to the default flat view Create a new topic Submit Reply
Re: GMT generated netCDF grid files and IDL [message #1112] Thu, 05 August 1993 11:29 Go to previous 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.
[Message index]
 
Read Message
Read Message
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: Sat Oct 11 13:40:41 PDT 2025

Total time taken to generate the page: 0.88494 seconds