coordax.CartesianProduct¶
- class coordax.CartesianProduct(coordinates: tuple[Coordinate, ...])¶
Coordinate defined as the outer product of independent coordinates.
To construct a
CartesianProduct, usecoordax.coords.compose().- __init__(coordinates: tuple[Coordinate, ...]) None¶
Methods
__init__(coordinates)from_xarray(dims, coords)Construct a matching Coordax coordinate from xarray, if possible.
isel([indexers])Returns a new coordinate with the given integer indexers applied.
map_indexers(indexers[, method])Maps label-based indexers to integer-based indexers (indices/slices).
sel([indexers, method])Returns a new coordinate with the given selection applied.
to_xarray()Convert this coordinate into xarray variables.
Attributes
axesReturns a tuple of Axis objects for each dimension.
dimsDimension names of the coordinate.
fieldsReturns a mapping from field names to their values.
ndimDimensionality of the coordinate.
shapeReturns the shape of the coordinate axes.
sizesSizes of all dimensions on this coordinate.