[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Client Reply - [netCdfJava !WCC-197892]: New problem with Grib12Netcdf
- Subject: Re: New Client Reply - [netCdfJava !WCC-197892]: New problem with Grib12Netcdf
- Date: Mon, 25 Sep 2006 12:34:20 -0600 (MDT)
On Mon, 25 Sep 2006, Julien Mariel wrote:
> New Client Reply: New problem with Grib12Netcdf
>
> Hi,
>
> Thanks for your answer.
> I'm a new user of netcdf-java api, so could you tell me how can I convert
> this grib file into 2 separate netcdf files (one GDS by file)?
Julien,
John mentioned in one of his responses that this functionality was not
currently available, but i thought of an intermediate solution. The
solution would require some manual editing of the index file that was
created for your data file. In the second section of the index, the 12th
field from the left is the Gdskey that designates which GDS that the
parmeter belongs too. See file, IndexFormat.txt in the base of the
distribution or in the java-docs. The process would require you to delete
all the Gdskey parameters except the one that you want to convert to a
NetCDF file. Also in section 3 of the index you delete all the GDS except
the one that you want. That's it.
% java -Xmx256m ucar/grib/grib1/Grib1Indexer <input file> <input file>.gbx
or
% java -Xmx256m ucar/grib/grib2/Grib2Indexer <input file> <input file>.gbx
edit <input file>.gbx
# Grib2Netcdf outputs works on either Grib 1 or 2 inputs
% java -Xmx256m ucar/nc2/iosp/grib/Grib2Netcdf <input file> <output.nc>
Robb...
> Julien
>
> Regards,
> Julien
>
> -----Message d'origine-----
> De : Unidata netCDF Java Support
> [mailto:address@hidden]
> Envoyé : mardi 19 septembre 2006 16:32
> À : address@hidden
> Cc : address@hidden;
> address@hidden
> Objet : [netCdfJava #WCC-197892]: New problem with Grib12Netcdf
>
> Julian,
>
> I found the need FWS parameter tables and installed them in the
> Java decoder package. The new package is GRIBJava.tar.gz or
> grib-decoder-java_4.0.02.tar.gz in the NetCDF download section of
> Unidata web site. Depending on your distribution, you might have to
> rename the grib-4.0.02.jar in the new release to the name in your
> distribution.
>
> I think John answer your question at the bottom of this message.
>
> robb...
>
> Ticket Details
> ===================
> Ticket ID: WCC-197892
> Department: Support netCDF Java
> Priority: Normal
> Status: Open
>
>
>
>
>
>
>
>
> Ticket Details
> ===================
> Ticket ID: WCC-197892
> Department: Support netCDF Java
> Priority: Normal
> Status: Open
> Link:
> http://www.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=1909
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================