From fcfe1a828585c30e8d55f6d2ac085a7bb5cb9339 Mon Sep 17 00:00:00 2001 From: David Huard Date: Fri, 8 Sep 2023 16:03:47 -0400 Subject: [PATCH] added indicators and their translation --- xclim/data/fr.json | 8 ++++++++ xclim/indicators/atmos/_conversion.py | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/xclim/data/fr.json b/xclim/data/fr.json index 646a1f6a9..963a71593 100644 --- a/xclim/data/fr.json +++ b/xclim/data/fr.json @@ -792,6 +792,14 @@ "long_name": "Indice forêt météo", "description": "Évaluation numérique de l'intensité du feu." }, + "WIND_POWER_POTENTIAL": { + "title": "Potentiel de production éolienne", + "abstract": "Estimation à partir d'une loi de puissance semi-idéalisée de la production d'énergie éolienne selon la vitesse du vent." + }, + "WIND_PROFILE": { + "title": "Profil du vent", + "abstract": "Estimation de la vitesse du vent à partir du vent à une hauteur de référence." + }, "WIND_SPEED_FROM_VECTOR": { "title": "Vitesse et direction du vent à partir du vecteur vent", "abstract": "Calcul de la magnitude et la direction de la vitesse du vent à partir des deux composantes ouest-est et sud-nord." diff --git a/xclim/indicators/atmos/_conversion.py b/xclim/indicators/atmos/_conversion.py index d1771e88f..9988ea6d4 100644 --- a/xclim/indicators/atmos/_conversion.py +++ b/xclim/indicators/atmos/_conversion.py @@ -28,6 +28,8 @@ "water_budget", "water_budget_from_tas", "wind_chill_index", + "wind_power_potential", + "wind_profile", "wind_speed_from_vector", "wind_vector_from_speed", ] @@ -123,6 +125,30 @@ def cfcheck(self, **das): compute=indices.sfcwind_2_uas_vas, ) +wind_power_potential = Converter( + title="Wind power potential", + identifier="wind_power_potential", + units="W m-2", + long_name="Wind power potential", + description="Wind power potential using a semi-idealized turbine power curve using a cut_in speed of {cut_in}, " + "a rated speed of {rated}, and a cut_out speed of {cut_out}.", + cell_methods="", + abstract="Calculation of the wind power potential using a semi-idealized turbine power curve.", + compute=indices.wind_power_potential, +) + +wind_profile = Converter( + title="Wind profile", + identifier="wind_profile", + var_name="wind_speed", + units="m s-1", + standard_name="wind_speed", + long_name="Wind speed at {h}", + description="Wind speed at {h} computed from the wind speed at {h_r} using a power law profile.", + cell_methods="", + abstract="Calculation of the wind speed at a given height from the wind speed at a reference height.", + compute=indices.wind_profile, +) saturation_vapor_pressure = Converter( title="Saturation vapour pressure (e_sat)",