Skip to content

Commit

Permalink
Fix mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Dec 15, 2023
1 parent 9ecb373 commit e4b5fee
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/nwp_consumer/internal/inputs/cmc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e4b5fee

Please sign in to comment.