geocat.comp.gc_util._find_optional_var#
- geocat.comp.gc_util._find_optional_var(ds, standard_name=None, long_name=None, possible_names=None, description=None)#
Find an optional variable using CF-compliant checks.
- Parameters:
ds (
xr.Datasetorux.UxDataset) – The dataset to searchstandard_name (
str, optional) – CF standard_name to check in attrslong_name (
str, optional) – Long_name to check in attrspossible_names (
listofstr, optional) – List of possible variable namesdescription (
str) – String for descriptive Error message
- Returns:
strorNone– The name of the found coordinate, or None if not found