This page contains a few rules on the S2S parameters. A complete list of all the parameters and sample GRIB2 encoding is given here.

General rules

Units

Accumulations

Instantaneous fields

Daily mean/max/min

Re-forecasts

Fluxes

Missing values

Grid and resolution

Number of forecasts

GRIB2 encoding

ECMWF encoding/decoding Software

ECMWF makes available a GRIB decoding library (grib_api) for the benefit of the WMO community. grib_api can be freely downloaded from here and the documentation can be found here.

grib_api provides a simplified access to GRIB2 headers through a set of virtual keys documented here

Encoding

1) S2S Production status of processed data

Octet 36 of section 1 of a GRIB2 message contains the Production status of processed data. The WMO has added two values to table 1.3 Production status of data:

You should use value 7 when testing (and set the vvvv part of the file naming convention to test), and 6 for operational data (in this case vvvv should be set to prod).

S2S extension (Section 2)

It is proposed that the section 2 for S2S fields be the same for all partners. A GRIB2 decoder must decode the section 2 as a TIGGE extension based on the octet 36 of section 1 (Production status of processed data) being 6 or 7.

The format of the S2S extension is not yet defined. The section 2 should either be missing or empty.

2) Control and perturbed forecasts

Control and perturbed forecasts are identified in section 1 and 4. The following tables explains how to code them in GRIB2:

Section 1
Octets
Example perturbedExample control
21typeOfProcessedData=4 =3 


Ensemble (section 4, template 4.61)
Octets
Example perturbedExample control
35type of ensemble forecast= 255 (missing) = 255 (missing) 
36perturbation number= 7= 0
37number of forecasts in ensemble= 51= 51

3) Time component and reforecasts 

real-timere-forecast
daily averagedaily average
accumulationsaccumulations
instantaneousinstantaneous
maximum over the last 6 hoursmaximum over the last 6 hours
minimum over the last 6 hoursminimum over the last 6 hours

4) Examples of GRIB2 files


real-timere-forecast
Daily averageControl  PerturbedControl Perturbed
AccumulationsControl  PerturbedControl  Perturbed
InstantaneousControl  PerturbedControl Perturbed
Maximum over the last 6 hoursControl  PerturbedControl Perturbed
Minimum over the last 6 hoursControl Perturbed
Example of a new ocean parameter *

real-timere-forecast
Daily averageControl  PerturbedControl Perturbed

(*) ecCodes version>= 2.13.0 is needed to see correct MARS meta data