...
This command will convert one or more grib GRIB files to netCDF is available with the ECMWF grib_api software (versions above 1.11.0 are recommended. It is not available in versions less than 1.10.0). For more details please see: grib_to_netcdf description.
grib_to_netcdf only works correctly when a single level coordinate is present in the grib GRIB file. Often the model grib output files have fields on multiple level types (ie. hybrid model levels and pressure levels).
| Code Block | ||
|---|---|---|
| ||
grib_copy ICMGGftkm+001440 ICMGG_[typeOfLevel].grb |
In this example, the GRIB model output file ICMGGftkm+001440 contains a number of different model level types. The special square brack "[ ]" syntax is recognised by grib_copy and can contain any valid grib GRIB key.
This command will copy the original file separating the level types into their own file: ICMGG_hybrid.grb, ICMGG_isobaricInhPA.grb, ICMGG_surface ...etc. The same square bracket syntax is also understood by the grib_filter command.
grib_to_netcdf can then be used on the individual files:
| Code Block | ||
|---|---|---|
| ||
grib_to_netcdf ICMGG_hybrid.grb -o ICMGG_hybrid.nc |
...