NOTE: The decoders
mailing list is no longer active. The list archives are made available for historical reasons.
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... ============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ==============================================================================
decoders
archives: