Re: [netcdf-java] netcdf-java Digest, Vol 55, Issue 9

Thanks so much for your reply.

I did try

java -Xmx1g -classpath netcdfAll-4.3.jar ucar.nc2.dataset.NetcdfDataset -in
<fileIn> -out <fileOut>

it threw an error which I can't remember now (couldn't find NetcdfDataset),
but I used the netCDFtools program to produce a netcdf file from the grib2
file I have.

It was pretty close to what I need it to be its just the variable names
were a bit different which, I think, is where the CDF files came in with
gribtonc.
I've read that the netcdfAll library doesn't read text CDF files but rather
NcML. I'm not sure how to go about incorporating them all together in the
same way that we could with gribtonc.

The "-q" option from what I understand is to rectify problems with grib1
and isn't needed with grib2.


Thanks again for your help


On 19 August 2013 19:00, <netcdf-java-request@xxxxxxxxxxxxxxxx> wrote:

> Send netcdf-java mailing list submissions to
>         netcdf-java@xxxxxxxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mailman.unidata.ucar.edu/mailman/listinfo/netcdf-java
> or, via email, send a message with subject or body 'help' to
>         netcdf-java-request@xxxxxxxxxxxxxxxx
>
> You can reach the person managing the list at
>         netcdf-java-owner@xxxxxxxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of netcdf-java digest..."
>
>
> Today's Topics:
>
>    1. Re: gribtonc replacement (John Caron)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 19 Aug 2013 11:07:14 -0600
> From: John Caron <caron@xxxxxxxxxxxxxxxx>
> To: netcdf-java@xxxxxxxxxxxxxxxx
> Subject: Re: [netcdf-java] gribtonc replacement
> Message-ID: <521250C2.4080603@xxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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:
>
>
> http://www.unidata.ucar.edu/software/netcdf-java/reference/manPages.html#nccopy
>
> "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:
>
> http://www.unidata.ucar.edu/software/netcdf-java/formats/GribFiles.html
>
> http://www.unidata.ucar.edu/software/netcdf-java/formats/GribTables.html
>
> 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.
>
> John
>
>
>
> On 8/17/2013 7:37 AM, nick robinson wrote:
> > Hi
> >
> > 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
> > daunting.
> >
> > 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.nc
> > <http://xxx.nc> < xxx.grib1
> >
> > which will work on grib2 files.
> >
> >
> > any help is much appreciated
> >
> > kind regards
> >
> >
> > _______________________________________________
> > netcdf-java mailing list
> > netcdf-java@xxxxxxxxxxxxxxxx
> > For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
> End of netcdf-java Digest, Vol 55, Issue 9
> ******************************************
>
  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: