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

Home » Public Forums » archive » Re: Code to convert grib spherical harmonic coefficients to gridded lat/lon
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: Code to convert grib spherical harmonic coefficients to gridded lat/lon [message #57070 is a reply to message #56982] Fri, 30 November 2007 06:34 Go to previous message
wgallery is currently offline  wgallery
Messages: 32
Registered: December 1998
Member
On Nov 29, 5:41 pm, "Kenneth P. Bowman" <k-bow...@removethis.tamu.edu>
wrote:
> In article
> < 30b87d0d-e14a-4c09-abca-31ed7971f...@g30g2000hsb.googlegroup s.com >,
> Bill Gallery <wgall...@aer.com> wrote:
>
>> I have some ECMWF grib files where the data is stored as spherical
>> harmonics. Does anyone have idl code to convert the coefficients to
>> gridded (lat/lon) data? Alternatively, do you have other programs to
>> dump the data from the grib file, convert the spherical harmonics, and
>> write it out? (I know there is a lot of stuff out there to handle
>> grib files [ncl_convert2nc, wgrib, emos, PyNIO, ..] but I need someone
>> with real experience to sort it out.
>
> The do-it-yourself approach is to use SPHEREPACK from NCAR
>
> http://www.cisl.ucar.edu/softlib/SPHERE.html
>
> You will have to figure out how to read the GRIB files also.
> The wgrib utility can be used to convert the GRIB files to
> plain binary files. The wgrib pages have some good examples
> of how to extract a particular field from a GRIB file.
>
> Ken Bowman

Ken, thanks. I'll check it out.

BTW, there is now an add on (IDL_GRIB.zip) to IDL that reads grid
files (idl 6.3 or higher). See:
http://www.ittvis.com/codebank/search.asp?FID=488
I'v used it and it works fine.

Bill Gallery
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FastDL v2.4 is released
Next Topic: ENVI Graphics Colors (only grayscale)

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

Current Time: Mon Dec 01 19:44:23 PST 2025

Total time taken to generate the page: 0.16216 seconds