[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #HOT-122007]: converting grib2 files to netcdf using wgrib2 -netcdf
- Subject: [netCDF #HOT-122007]: converting grib2 files to netcdf using wgrib2 -netcdf
- Date: Thu, 05 Nov 2009 13:05:26 -0700
Larry,
An alternative I should have mentioned is conversion of grib2 to netCDF
using the Unidata netCDF-Java package, but you only have to use a
command-line invocation, not write a Java program. It's demonstrated
in the first example here:
http://www.unidata.ucar.edu/software/netcdf-java/reference/faq.html#Writing
so for your example, you could use:
java -Xmx512m -classpath netcdfAll.jar ucar.nc2.dataset.NetcdfDataset -in
infile.grib2 -out outfile.nc
You would need to get the file
ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v4.0/netcdfAll-4.0.zip
for use in the classpath argument.
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: HOT-122007
Department: Support netCDF
Priority: Normal
Status: Closed