argopy.utilities.is_wmo#

is_wmo(lst, errors='raise')[source]#

Check if a WMO is valid

Parameters
  • wmo (int, list(int), array(int)) – WMO must be a single or a list of 5/7 digit positive numbers

  • errors ({'raise', 'warn', 'ignore'}) – Possibly raises a ValueError exception or UserWarning, otherwise fails silently.

Returns

True if wmo is indeed a list of integers

Return type

bool