Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multi-field support off. Turn off support for multiple fields in single grib GRIB message.

...

Specifies the kind of file to be created. Possible values are: 1 -> netCDF classic file format 2 -> netCDF 64 bit classic file format (Default) 3 -> netCDF-4 file format 4 -> netCDF-4 classic model file format

...

  1. Produce a NetCDF file from grib edition 1

    Code Block
    > 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.

    Code Block
    > 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. The default behaviour is to use the time of validity.

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


  4. Produce NetCDF with data type of FLOAT (32bit floating-point, for higher precision). 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

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


  5. Set the netcdf dimension 'time' to be unlimited i.e. time can have unlimited length so variables using this dimension can grow along this dimension.

    Code Block
    > grib_to_netcdf -u time -o output.nc input.grib