You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

grib_to_netcdf examples

  1. Produce a NetCDF file from grib edition 1

    > grib_to_netcdf -o output.nc input.grib1
    


  2. If your grib file has analysis and 6-hour forecast, then ignore keys 'type' and 'step'. Thus type=an/fc and step=00/06 will not be considered as netcdf dimensions.

    > grib_to_netcdf -I type,step -o output.nc input.grib
    


  3. Do not use time of validity. If time of validity is used, it means the 1D time coordinate is considered as date+time+step, otherwise 3 different dimensions are created.


  4. The default behaviour is to use the time of validity.

    > grib_to_netcdf -T -o output.nc input.grib
    


  5. Produce NetCDF with data type of FLOAT (32bit floating point, for higher precision).


  6. Note these types were chosen to provide a reasonably wide range of trade-offs between data precision and number of bits required for each value

    > grib_to_netcdf -D NC_FLOAT -o output.nc input.grib
    


  • No labels