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

Home » Public Forums » archive » Re: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for 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: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for IDL [message #39829] Mon, 21 June 2004 14:59
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Paul Van Delst wrote:
> Ha ha. I was going to suggest the OP look at the Unidata decoders
> package which contains a grib2nc utility until I realised that was
> backwards to the request... why *would* anyone want to write a grib
> file? :o)

Because they're very compact?

I've never wanted to write one either, but somebody obviously does
because there's a library, called gribw, under development to support
write (and read) access:

http://wesley.wwb.noaa.gov/gribw.html

It includes a command-line utility of the same name. The WWW page shows
an example where a GRIB file is converted to text via 2 calls to wgrib,
then piped to gribw which recreates the original file. Wow!

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for IDL [message #39838 is a reply to message #39829] Mon, 21 June 2004 09:19 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
Paul Van Delst <paul.vandelst@noaa.gov> wrote:
> utility until I realised that was backwards to the request... why *would* anyone want to write a grib file? :o)

Its a good question. If you're desperate, and understand perl, you could
try: http://www.antarctica.ac.uk/met/wmc/grib-grid.html but don't bother if
you don't know perl well :-)

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
Re: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for IDL [message #39842 is a reply to message #39838] Mon, 21 June 2004 07:20 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Kenneth P. Bowman wrote:
> In article <f2954a2e.0406190004.285f1ac@posting.google.com>,
> msyang@satrec.kaist.ac.kr (Minnie) wrote:
>
>
>> Dear IDL Users
>>
>>
>> I am looking for text file to GRIB file converter for IDL
>> , also NetCDF file to GRIB converter.
>>
>> GRIB is a gridded binary file format that is the WMO standard for binary
>> files.
>>
>> Any information about this would be appreciated.
>
>
> There is the wgrib library from NCEP.
>
> http://wesley.wwb.noaa.gov/wgrib.html
>
> wgrib is a command-line utility that will extract data from grib files
> and write it to various file formats. (Why anyone would want to *write*
> a grib file is beyond me. ;-))

Ha ha. I was going to suggest the OP look at the Unidata decoders package which contains a grib2nc
utility until I realised that was backwards to the request... why *would* anyone want to write a
grib file? :o)

paulv
Re: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for IDL [message #39845 is a reply to message #39842] Mon, 21 June 2004 06:00 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <f2954a2e.0406190004.285f1ac@posting.google.com>,
msyang@satrec.kaist.ac.kr (Minnie) wrote:

> Dear IDL Users
>
>
> I am looking for text file to GRIB file converter for IDL
> , also NetCDF file to GRIB converter.
>
> GRIB is a gridded binary file format that is the WMO standard for binary
> files.
>
> Any information about this would be appreciated.

There is the wgrib library from NCEP.

http://wesley.wwb.noaa.gov/wgrib.html

wgrib is a command-line utility that will extract data from grib files
and write it to various file formats. (Why anyone would want to *write*
a grib file is beyond me. ;-)) You can use it within IDL by SPAWNing
calls to wgrib. It has been ported to a number of different platforms.

Ken Bowman
Re: [Urgent] TXT-to-GRIB Converter & NetCDF-to-GRIB Converter for IDL [message #39847 is a reply to message #39845] Sat, 19 June 2004 00:42 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Minnie wrote:

> Dear IDL Users
>
>
> I am looking for text file to GRIB file converter for IDL
> , also NetCDF file to GRIB converter.
>
> GRIB is a gridded binary file format that is the WMO standard for binary
> files.
>
> Any information about this would be appreciated.


Dear Minnie

what do you mean by "text file"?


we are using the wgribhop.c which is in the hiphop package of Dominik
Brunner. Based on this we have a read_grib/write_ncdf routine.

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase
read_grib_dbase.pro.html


http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _lib
DominikBrunner/wgribhop.c

http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase
write_ncdf_dbase.pro.html

For further routines and licensing plkease have a look at
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html


best regards

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: serial port handling
Next Topic: Re: Another contour problem

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

Current Time: Wed Oct 08 15:48:24 PDT 2025

Total time taken to generate the page: 0.00486 seconds