Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I convert between GRIB and netCDF?

convert grib netCDF
1
Posted

How do I convert between GRIB and netCDF?

0

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.

0

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).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.