Re: [netcdf-java] gribtonc replacement

Hi Nick:

gribtonc is indeed very much out of date and is deprecated, although if youve been maintaining the templates you need, then it may be fine.

Have you tried using the netcdf-java library? man page is here:

"fileIn" is the grib file and "fileOut" is the netcdf file.

GRIB is a difficult format to get 100% right, you may need to be familiar with the edges, especially with tables:

Im not sure about the equivalent -q functionality, quasi-regular grids are simply expanded to be regular grids, using cubic splines i think.

Try it and let me know how it goes.


On 8/17/2013 7:37 AM, nick robinson wrote:

I have a client who has a number of legacy systems that process grib1
files using gribtonc. Unfortunately they are being forced to move to
grib2 and the developer is no longer available. I have been attempting
the change using wgrib2, however there is so much code written around
the specific format of the netcdf file produced from gribtonc its quite

Is there an equivalent gribtonc which will read grib2 files compressed
with jpeg200 or
is it possible for me to run a function within netcdfAll-4.3.jar which
can use a CDL file as a template in the same way gribtonc did?

basically I need a replacement for

gribtonc -v -l- -q "lin,dlat=1.25,dlon=1.25" xxx.cdl
<> < xxx.grib1

which will work on grib2 files.

any help is much appreciated

kind regards

netcdf-java mailing list
For list information or to unsubscribe, visit:

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: