Versions Compared

Key

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

...

Let's look at each failure one by one:

Example 1

: If we check the Parameter Database, we see "clct" is defined for centre=cnmc (=Italy) and no other centre. So that shortName is not available for GRIB messages with other originating centres. To fix this, we need to change the centre before setting that shortName as follows:

Code Block
languagebash
# Example 1 fix
% grib_set -s centre=cnmc,shortName=clct in.grib out.grib

Example 2

: Here we see 3125 is defined for GRIB1 but not for GRIB2 therefore this would fail for an input file which is GRIB2. One solution is to use an alternative parameter which has the same meaning but is defined for GRIB2 e.g., 260063 is also "Momentum flux, v component" with the same units.

Example 3

: Parameter 47 fails with a different error message. This time it is because the input GRIB has the wrong template ( See the FAQ on Product Definition Templates, PDT ). Parameter 47 models an accumulation so the input should have a template for accumulated ( interval-based ) fields rather than instantaneous ones. To fix this we can either select the correct PDT or use the "stepType" key:

...