coordax.SelectedAxis

class coordax.SelectedAxis(coordinate: Coordinate, axis: int)

Coordinate that exposes one dimension of a multidimensional coordinate.

__init__(coordinate: Coordinate, axis: int) None

Methods

__init__(coordinate, axis)

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

axes

Tuple of one-dimensional Coordinate objects for each dimension.

dims

Dimension names of the coordinate.

fields

A maps from field names to their values.

ndim

Dimensionality of the coordinate.

shape

Shape of the coordinate.

sizes

Sizes of all dimensions on this coordinate.