Convert grib to netcdf file with wildflags in terminal for an complete folder

100 Views Asked by At

The syntax for using eccode to convert GRIB to NetCDF is clear. However, I'm wondering if there's a way to convert an entire folder of GRIB files into NetCDF using the old file names. I attempted to do this using the command below, but it didn't work:

grib_to_netcdf -o *.nc *.grib

Any suggestions on how to accomplish this would be appreciated. Thanks in advance!


Edit: If one prefers not to solve this through the Bash shell, the quickest solution is to use CDO conversion, even though the eccode module is more powerful and comprehensive.

0

There are 0 best solutions below