act.utils.decode_present_weather

act.utils.decode_present_weather(ds, variable=None, decoded_name=None)[source]

This function is to decode codes reported from automatic weather stations such as the PWD22. This is based on WMO Table 4680 as well as a supplement table for WMO table 4677.

Parameters:
  • ds (xarray.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:

ds (xarray.Dataset) – Returns dataset with new decoded data

References

WMO Manual on Code Volume I.1 A-360. https://library.wmo.int/doc_num.php?explnum_id=10235