Skip to content

Feature/healpix in mtg2 #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
3534ba2
Generate different rules for class d1
pgeier Jun 3, 2025
64907f2
Add section2 fake templates for 1001 and 1036
pgeier Jun 3, 2025
0d26340
Add enumerators and conversion utils (enum2string, string2enum) for d…
MircoValentiniECMWF Jun 6, 2025
23a228d
Update mars dictionary to support new destine keywords
MircoValentiniECMWF Jun 6, 2025
9f560df
Update parametrization to support "destineLocalVersion"
MircoValentiniECMWF Jun 6, 2025
2980025
Update api iterators to support new keywords needed for destine
MircoValentiniECMWF Jun 6, 2025
5019966
Add new section2 handler for the new destine section2
MircoValentiniECMWF Jun 6, 2025
2557a88
Add code to enable destine section2
MircoValentiniECMWF Jun 6, 2025
fefbc57
Fix section2 enum clash in section2 factory introduced by rebase
MircoValentiniECMWF Jun 6, 2025
721b369
Fix: remove paranoid checks for initialization of section2 1036
MircoValentiniECMWF Jun 6, 2025
a8e757d
Remove commented code
MircoValentiniECMWF Jun 10, 2025
b73c74c
Handle `DestinE` related `mars` metadata in `encode-mtg2` action
MircoValentiniECMWF Jun 14, 2025
70c05d4
Add emuerators for the HEALPix ordering convention
MircoValentiniECMWF Jun 14, 2025
e05e81b
Add the HEALPix dictionary as an hardcoded data structure
MircoValentiniECMWF Jun 14, 2025
9d1b9d4
Add the custom encoder for HEALPix grids (gridDefinitionTemplateNumbe…
MircoValentiniECMWF Jun 14, 2025
3bba638
Add iterators and glue code needed for c-api
MircoValentiniECMWF Jun 14, 2025
211b233
Enable HEALPix grids in encode-mtg2 action
MircoValentiniECMWF Jun 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter:
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: ignore
value: d1
- type: number
operation: lacks
- type: hdate
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
tag: grib2

name: rule-hl-heightAboveGround-gg-deterministic-instant-ccsds-paramId-1001

filter:
type: composed
operation: all
filters:
- type: repres
operation: match
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: match
value: d1
- type: number
operation: lacks
- type: hdate
operation: lacks
- type: levtype
operation: match
value: hl
- type: param
operation: match
values:
- 10
- 54
- 130
- 131
- 132
- 157
- 246
- 247
- 3031
- type: packing
operation: match
value: ccsds

encoder:
type: grib2
indicator-section:
template-number: 0
identification-section:
template-number: 0
origin-configurator:
type: default
sub-centre: 0
data-type-configurator:
type: default
reference-time-configurator:
type: default
tables-configurator:
type: default
local-tables-version: 0
local-use-section:
template-number: 1001
grid-definition-section:
template-number: 40
product-definition-section:
template-number: 0
point-in-time-configurator:
type: default
param-configurator:
type: paramId
model-configurator:
type: default
level-configurator:
type: heightAboveGround
data-representation-section:
template-number: 42
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
tag: grib2

name: rule-hl-heightAboveGround-gg-deterministic-instant-ccsds-paramId-1036

filter:
type: composed
operation: all
filters:
- type: repres
operation: match
value: gaussian-grid
- type: anoffset
operation: has
- type: class
operation: match
value: d1
- type: number
operation: lacks
- type: hdate
operation: lacks
- type: levtype
operation: match
value: hl
- type: param
operation: match
values:
- 10
- 54
- 130
- 131
- 132
- 157
- 246
- 247
- 3031
- type: packing
operation: match
value: ccsds

encoder:
type: grib2
indicator-section:
template-number: 0
identification-section:
template-number: 0
origin-configurator:
type: default
sub-centre: 0
data-type-configurator:
type: default
reference-time-configurator:
type: default
tables-configurator:
type: default
local-tables-version: 0
local-use-section:
template-number: 1036
grid-definition-section:
template-number: 40
product-definition-section:
template-number: 0
point-in-time-configurator:
type: default
param-configurator:
type: paramId
model-configurator:
type: default
level-configurator:
type: heightAboveGround
data-representation-section:
template-number: 42
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter:
value: gaussian-grid
- type: anoffset
operation: has
- type: class
operation: ignore
value: d1
- type: number
operation: lacks
- type: hdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter:
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: ignore
value: d1
- type: number
operation: lacks
- type: hdate
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
tag: grib2

name: rule-hybrid-gg-deterministic-instant-ccsds-paramId-1001

filter:
type: composed
operation: all
filters:
- type: repres
operation: match
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: match
value: d1
- type: number
operation: lacks
- type: hdate
operation: lacks
- type: levtype
operation: match
value: ml
- type: param
operation: match
values:
- "75:76"
- 133
- 203
- "246:248"
- 260290
- type: packing
operation: match
value: ccsds

encoder:
type: grib2
indicator-section:
template-number: 0
identification-section:
template-number: 0
origin-configurator:
type: default
sub-centre: 0
data-type-configurator:
type: default
reference-time-configurator:
type: default
tables-configurator:
type: default
local-tables-version: 0
local-use-section:
template-number: 1001
grid-definition-section:
template-number: 40
product-definition-section:
template-number: 0
point-in-time-configurator:
type: default
param-configurator:
type: paramId
model-configurator:
type: default
level-configurator:
type: hybrid
data-representation-section:
template-number: 42
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
tag: grib2

name: rule-hybrid-gg-deterministic-instant-ccsds-paramId-1036

filter:
type: composed
operation: all
filters:
- type: repres
operation: match
value: gaussian-grid
- type: anoffset
operation: has
- type: class
operation: match
value: d1
- type: number
operation: lacks
- type: hdate
operation: lacks
- type: levtype
operation: match
value: ml
- type: param
operation: match
values:
- "75:76"
- 133
- 203
- "246:248"
- 260290
- type: packing
operation: match
value: ccsds

encoder:
type: grib2
indicator-section:
template-number: 0
identification-section:
template-number: 0
origin-configurator:
type: default
sub-centre: 0
data-type-configurator:
type: default
reference-time-configurator:
type: default
tables-configurator:
type: default
local-tables-version: 0
local-use-section:
template-number: 1036
grid-definition-section:
template-number: 40
product-definition-section:
template-number: 0
point-in-time-configurator:
type: default
param-configurator:
type: paramId
model-configurator:
type: default
level-configurator:
type: hybrid
data-representation-section:
template-number: 42
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter:
value: gaussian-grid
- type: anoffset
operation: has
- type: class
operation: ignore
value: d1
- type: number
operation: lacks
- type: hdate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ filter:
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: ignore
value: d1
- type: number
operation: lacks
- type: hdate
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
tag: grib2

name: rule-hybrid-gg-deterministic-since-beginning-ccsds-paramId-1001

filter:
type: composed
operation: all
filters:
- type: repres
operation: match
value: gaussian-grid
- type: anoffset
operation: lacks
- type: class
operation: match
value: d1
- type: number
operation: lacks
- type: hdate
operation: lacks
- type: levtype
operation: match
value: ml
- type: param
operation: match
values:
- "162100:162113"
- type: packing
operation: match
value: ccsds

encoder:
type: grib2
indicator-section:
template-number: 0
identification-section:
template-number: 0
origin-configurator:
type: default
sub-centre: 0
data-type-configurator:
type: default
reference-time-configurator:
type: default
tables-configurator:
type: default
local-tables-version: 0
local-use-section:
template-number: 1001
grid-definition-section:
template-number: 40
product-definition-section:
template-number: 8
time-statistics-configurator:
type: since-beginning-of-forecast
type-of-statistical-processing: accumul
encode-step-zero: true
param-configurator:
type: paramId
model-configurator:
type: default
level-configurator:
type: hybrid
data-representation-section:
template-number: 42
Loading
Loading