Accessors API#
The main xoa accessor is registered when xoa is imported.
The meta and decode_sigma accessors are available as subaccessors of it,
like da.xoa.meta and ds.xoa.decode_sigma (the latter for datasets only),
and can also be registered at the top level with xoa.register_accessors(),
like ds.meta and ds.decode_sigma().
DataArray#
Attributes#
X dimension |
|
Y dimension name |
|
Z dimension name |
|
T (time) dimension name |
|
Get the generic name that matches this array |
|
Get the generic attributes that matches this array |
|
Sub-accessor for coords only |
|
Sub-accessor for data_vars only |
|
The |
Methods#
|
Set the internal |
Get the internal |
|
|
Rename variables and coordinates to generic names |
|
Rename variables and coordinates to specialized names |
|
Rename variables and coordinates and fill their attributes |
|
Fill missing attributes |
|
Infer coordinates and set them as coordinates |
|
Search for a data array or coordinate knowing its generic CF name |
|
Search for a coordinate knowing its generic CF name |
|
Get the z, positive up, as computed or recognized by the |
|
Get the depth, positive down, as computed or recognized by the |
|
Interpolate to arbitrary destination points |
|
Regrid horizontally, and optionally in time, to a destination grid |
|
Get the geostrophic currents, see |
|
Get the cyclogeostrophic currents, see |
|
Get the tidal harmonic coefficients, see |
|
Filter the tide, see |
|
Get a mask of the cells that are inside polygons, see |
|
Find the neighbors of target points, see |
|
Select the points near a point or in a shape, see |
|
Select the object in a box, a circle or a polygon, or at the nearest point |
Dataset#
Attributes#
Sub-accessor for coords only |
|
Sub-accessor for data_vars only |
|
The |
|
The |
Methods#
|
Set the internal |
Get the internal |
|
|
Rename variables and coordinates to generic names |
|
Rename variables and coordinates to specialized names |
|
Rename variables and coordinates and fill their attributes |
|
Fill missing attributes |
|
Infer coordinates and set them as coordinates |
|
Search for a data array or coordinate knowing its generic CF name |
|
Search for a coordinate knowing its generic CF name |
|
Get the z, positive up, as computed or recognized by the |
|
Get the depth, positive down, as computed or recognized by the |
|
Interpolate to arbitrary destination points |
|
Regrid horizontally, and optionally in time, to a destination grid |
|
Get the relative vorticity, see |
|
Get the Rossby number, see |
|
Get the horizontal divergence, see |
|
Get the normal and shear strains, see |
|
Get the Okubo-Weiss parameter, see |
|
Predict the tide from harmonic coefficients, see |
|
Get a mask of the cells that are inside polygons, see |
|
Find the neighbors of target points, see |
|
Select the points near a point or in a shape, see |
|
Select the object in a box, a circle or a polygon, or at the nearest point |
|
Compute depth from sigma coordinates |
|
Call |
Callables#
|
Shortcut to |
Plotting#
The plot attribute of the xoa accessors, like da.xoa.plot.field(),
has the following methods.
- class xoa.accessors.XoaPlotAccessor(obj)[source]
Plotting methods of the main xoa accessors, that call the
xoa.plotfunctionsThe accessed array or dataset is passed as the first argument.
- field(*args, **kwargs)[source]
Plot a field on a map, see
xoa.plot.plot_field()
- grid(*args, **kwargs)[source]
Plot a grid, see
xoa.plot.plot_grid()
- rose(*args, **kwargs)[source]
Plot a wind or wave rose, see
xoa.plot.plot_rose()
- section(*args, **kwargs)[source]
Plot a vertical section, see
xoa.plot.plot_section()
- stick(*args, **kwargs)[source]
Plot sticks of currents, see
xoa.plot.plot_stick()
- taylor(ref, *args, **kwargs)[source]
Plot a Taylor diagram against a reference, see
xoa.plot.plot_taylor()