From a33b5b62df96676f8915c4768a70f5102dad2433 Mon Sep 17 00:00:00 2001 From: Florian Pinault Date: Fri, 13 Dec 2024 11:54:27 +0100 Subject: [PATCH] feat(accumulations): update for od/enfo (#158) * typo. added od/enfo * qa --- CHANGELOG.md | 1 + docs/building/sources/yaml/accumulations1.yaml | 2 +- docs/building/sources/yaml/accumulations2.yaml | 2 +- src/anemoi/datasets/create/functions/sources/accumulations.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52cb24dc..443d7463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Keep it human-readable, your future self will thank you! - Fix metadata serialization handling of numpy.integer (#140) - Fix negative variance for constant variables (#148) - Fix cutout slicing of grid dimension (#145) +- update acumulation (#158) ### Added diff --git a/docs/building/sources/yaml/accumulations1.yaml b/docs/building/sources/yaml/accumulations1.yaml index 1735bff2..163f46e1 100644 --- a/docs/building/sources/yaml/accumulations1.yaml +++ b/docs/building/sources/yaml/accumulations1.yaml @@ -1,6 +1,6 @@ input: accumulations: - accumulations_period: 6 + accumulation_period: 6 class: ea param: [tp, cp, sf] levtype: sfc diff --git a/docs/building/sources/yaml/accumulations2.yaml b/docs/building/sources/yaml/accumulations2.yaml index 16250606..81f699a4 100644 --- a/docs/building/sources/yaml/accumulations2.yaml +++ b/docs/building/sources/yaml/accumulations2.yaml @@ -1,6 +1,6 @@ input: accumulations: - accumulations_period: [6, 12] + accumulation_period: [6, 12] class: od param: [tp, cp, sf] levtype: sfc diff --git a/src/anemoi/datasets/create/functions/sources/accumulations.py b/src/anemoi/datasets/create/functions/sources/accumulations.py index 1fc22fea..7b583078 100644 --- a/src/anemoi/datasets/create/functions/sources/accumulations.py +++ b/src/anemoi/datasets/create/functions/sources/accumulations.py @@ -379,6 +379,7 @@ def accumulations(context, dates, **request): KWARGS = { ("od", "oper"): dict(patch=_scda), ("od", "elda"): dict(base_times=(6, 18)), + ("od", "enfo"): dict(base_times=(0, 6, 12, 18)), ("ea", "oper"): dict(data_accumulation_period=1, base_times=(6, 18)), ("ea", "enda"): dict(data_accumulation_period=3, base_times=(6, 18)), ("rr", "oper"): dict(base_times=(0, 3, 6, 9, 12, 15, 18, 21)),