USGS-CMG / data-life-cycle-cloud

Exploring the USGS Science Data Life Cycle in the Cloud: a 2017 CDI-funded project
1 stars 2 forks source link

Develop workflow to convert grib2 files to netcdf4 #13

Open rsignell-usgs opened 6 years ago

rsignell-usgs commented 6 years ago

Need to convert CFSrV2 grib2 files to netcdf4 for experimentation using HSDS

rsignell-usgs commented 6 years ago

One approach using NetCDF java: https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg08653.html

java -Xmx512m -classpath netcdfUI-4.0.jar ucar.nc2.dataset.NetcdfDataset -in infile.grib2 -out outfile.nc

using the latest netcdfUI from ftp://ftp.unidata.ucar.edu/pub/netcdf-java/

rsignell-usgs commented 6 years ago

Another approach using wgrib2.

With conda-forge channel in your channel list, install with:

conda install wgrib2 mysql-connector-c -y