xarray.Dataset.argo.uid

xarray.Dataset.argo.uid

Dataset.argo.uid(wmo_or_uid, cyc=None, direction=None)

UID encoder/decoder

Parameters
  • int – WMO number (to encode) or UID (to decode)

  • cyc (int, optional) – Cycle number (to encode), not used to decode

  • direction (str, optional) – Direction of the profile, must be ‘A’ (Ascending) or ‘D’ (Descending)

Return type

int or tuple of int

Examples

>>> unique_float_profile_id = uid(690024,13,'A') # Encode
>>> wmo, cyc, drc = uid(unique_float_profile_id) # Decode