How do I convert between GRIB and netCDF?
Several programs and packages have been developed that convert between GRIB and netCDF data: ncl_convert2nc, degrib, CDAT, CDO, and GrADS, among others. The netCDF Java Library (version 2.2 and later) can read GRIB data (and many other data formats) through a netCDF interface, as if it had been converted to a netCDF dataset.
Several programs and packages have been developed that convert between GRIB and netCDF data: ncl_convert2nc, degrib, CDAT, CDO, GrADS, and wgrib2, among others. The Unidata netCDF Java Library can read GRIB1 and GRIB2 data (and many other data formats) through a netCDF interface. As a command-line example, you could convert infile.grib to outfile.nc as follows: java -Xmx512m -classpath netcdfAll-4.1.jar ucar.nc2.dataset.NetcdfDataset -in infile.grib2 -out outfile.nc (or append the option -isLargeFile to write a 64-bit offset netCDF file).