coordax.DummyAxis¶
- class coordax.DummyAxis(name: str | None, size: int)¶
Dummy coordinate for dimensions without associated coordinate values.
DummyAxis are placeholders for dimensions that do not have associated coordinate values. They are automatically dropped from the Field constructor, but are useful for specifying how to construct fields with missing dimension names and/or coordinates.
- __init__(name: str | None, size: int) None¶
Methods
__init__(name, size)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
axesTuple of one-dimensional Coordinate objects for each dimension.
dimsDimension names of the coordinate.
fieldsOptional dict that maps from field names to their values.
ndimDimensionality of the coordinate.
shapeShape of the coordinate.
sizesSizes of all dimensions on this coordinate.