From e4b5feea9567a870ad7024367cb1c68db0c31fd9 Mon Sep 17 00:00:00 2001 From: Jacob Bieker Date: Fri, 15 Dec 2023 12:55:54 +0000 Subject: [PATCH] Fix mapping --- .../internal/inputs/cmc/client.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/nwp_consumer/internal/inputs/cmc/client.py b/src/nwp_consumer/internal/inputs/cmc/client.py index a5d4069f..f18849eb 100644 --- a/src/nwp_consumer/internal/inputs/cmc/client.py +++ b/src/nwp_consumer/internal/inputs/cmc/client.py @@ -18,18 +18,15 @@ log = structlog.getLogger() # See https://eccc-msc.github.io/open-data/msc-data/nwp_gdps/readme_gdps-datamart_en/ for a list of CMC parameters -# TODO Update this PARAMETER_RENAME_MAP: dict[str, str] = { - "t_2m": internal.OCFShortName.TemperatureAGL.value, - "clch": internal.OCFShortName.HighCloudCover.value, - "clcm": internal.OCFShortName.MediumCloudCover.value, - "clcl": internal.OCFShortName.LowCloudCover.value, - "asob_s": internal.OCFShortName.DownwardShortWaveRadiationFlux.value, - "athb_s": internal.OCFShortName.DownwardLongWaveRadiationFlux.value, - "w_snow": internal.OCFShortName.SnowDepthWaterEquivalent.value, - "relhum_2m": internal.OCFShortName.RelativeHumidityAGL.value, - "u_10m": internal.OCFShortName.WindUComponentAGL.value, - "v_10m": internal.OCFShortName.WindVComponentAGL.value, + "t": internal.OCFShortName.TemperatureAGL.value, + "tclc": internal.OCFShortName.LowCloudCover.value, # TODO: Check this is okay + "dswrf": internal.OCFShortName.DownwardShortWaveRadiationFlux.value, + "dlwrf": internal.OCFShortName.DownwardLongWaveRadiationFlux.value, + "snod": internal.OCFShortName.SnowDepthWaterEquivalent.value, + "rh": internal.OCFShortName.RelativeHumidityAGL.value, + "u": internal.OCFShortName.WindUComponentAGL.value, + "v": internal.OCFShortName.WindVComponentAGL.value, } COORDINATE_ALLOW_LIST: typing.Sequence[str] = ("time", "step", "latitude", "longitude")