hydro.checks¶
Functions¶
|
Check that the dataset is sorted by the rules in |
Check that everything in an ancillary_variables attribute appears as a variable |
|
|
Check WOCE flag values agaisnt their param and ensure that the param either has a value or is "nan" depedning on the flag definition. |
Module Contents¶
- hydro.checks.check_sorted(dataset)[source]¶
Check that the dataset is sorted by the rules in
sort_ds()- Parameters:
dataset (xarray.Dataset)
- Return type:
- hydro.checks.check_ancillary_variables(ds)[source]¶
Check that everything in an ancillary_variables attribute appears as a variable Check that every variable that is known ancillary appears in at least one ancillary_variable attribute
- Parameters:
ds (xarray.Dataset)
- hydro.checks.check_flags(dataset, raises=True)[source]¶
Check WOCE flag values agaisnt their param and ensure that the param either has a value or is “nan” depedning on the flag definition.
Return a boolean array of invalid locations?
- Parameters:
dataset (xarray.Dataset)