Converting HARMONIE DINI and IG model files

The HARMONIE cycle 46 (not out yet) introduces changes to the HARMONIE DINI and IG model files (SF, PL and ML):

  • GRIB definition template 3.33 (from 3.30)
  • CCSDS compression packaging (from simple)
  • IG area is larger

Should these changes cause problems the GRIB definition template and compression can be changed after retrieval from our APIs with eccodes and the IG area can be cut using cdo.

Testing has revealed that the GRIB definition template is the primary source of issues and it can be changed to 3.30 with this command:

 

Unchanged file shows template 33 (3.33):
$ grib_ls -p gridDefinitionTemplateNumber HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib
HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib
gridDefinitionTemplateNumber
33
...

Change the GRIB definition template:
$ grib_set -s gridType=lambert HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-lambert.grib

Changed file shows template 30 (3.30):
$ grib_ls -p gridDefinitionTemplateNumber HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-lambert.grib
HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-lambert.grib
gridDefinitionTemplateNumber
30
...

Similarly CCSDS compression can also be disabled with a grib_set command:

Unchanged file shows CCSDS compression is used:
$ grib_ls -p packingType HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib
HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib
packingType
grid_ccsds
...

Change the packingType to grid_simple:
$ grib_set -s packingType=grid_simple HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z.grib HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-simple.grib

Changed file shows grid_simple packingType:
$ grib_ls -p packingType HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-simple.grib
HARMONIE_DINI_SF_2026-08-01T000000Z_2026-08-01T000000Z-simple.grib
packingType
grid_simple
...

Cutting the grib area can be done with cdo. Note that the arguments after selindexbox is the area to cut out and should be set according to specific use-case.

$ cdo selindexbox,11,55,22,100 HARMONIE_IG_SF_2025-04-02T060000Z_2025-04-02T060000Z.grib HARMONIE_IG_SF_2025-04-02T060000Z_2025-04-02T060000Z-bbox.grib

Viden om vejr og klima

Se alle