Skip to content

Commit

Permalink
added indicators and their translation
Browse files Browse the repository at this point in the history
  • Loading branch information
huard committed Sep 8, 2023
1 parent 2267c24 commit fcfe1a8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xclim/data/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
26 changes: 26 additions & 0 deletions xclim/indicators/atmos/_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down Expand Up @@ -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)",
Expand Down

0 comments on commit fcfe1a8

Please sign in to comment.