xoa.dyn.get_u#
- xoa.dyn.get_u(ds, variant=None, errors='ignore')[source]#
Search for a eastward or along-X velocity variable in a dataset
The variants are searched in the given order with the
xoa.metaspecifications.- Parameters:
ds (xarray.Dataset)
variant ({None, 'generic', 'geo', 'grid', 'geos', 'bt', 'bc', 'surf'}) –
Restrict checking to a given variant(s)
None: Currents, i.e. all but the geostrophic and baroclinic ones'generic': velocity of unknown orientation'geo': eastward and northward velocity'grid': velocity along the grid axes'geos': geostrophic velocity'bt': barotropic velocity'bc': baroclinic velocity'surf': surface velocity
errors (str) – Error handling:
"ignore","warn"or"raise".
- Returns:
xarray.DataArray, None – The velocity array, or None if not found.
See also