act.utils.decode_present_weather¶
- act.utils.decode_present_weather(obj, variable=None, decoded_name=None)[source]¶
This function is to decode codes reported from automatic weather stations suchas the PWD22. This is based on WMO Table 4680.
- Parameters:
obj (ACT Dataset) – ACT or xarray dataset from which to convert codes
variable (string) – Variable to decode
decoded_name (string) – New variable name to store updated labels
- Returns:
obj (ACT Dataset) – Returns object with new decoded data
References
WMO Manual on Code Volume I.1 https://www.wmo.int/pages/prog/www/WMOCodes/WMO306_vI1/Publications/2017update/Sel9.pdf