CubeAxis

class kgpy.obs.spectral.CubeAxis

Bases: AutoAxis

Representation of the data axes for the arrays within kgpy.obs.spectral.Cube

__init__()

Attributes

ndim

xy

num_left_dim

Number of dimensions on the left side of the array.

num_right_dim

Number of dimensions on the right side of the array

all

List of indices for each axis.

Methods

__init__()

auto_axis_index([from_right])

rtype:

int

perp_axes(axis)

rtype:

typing.Tuple[int, ...]

Inheritance Diagram

digraph inheritancebb9618b533 { bgcolor=transparent; rankdir=TB; size="8.0, 12.0"; "kgpy.mixin.AutoAxis" [URL="kgpy.mixin.AutoAxis.html#kgpy.mixin.AutoAxis",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Semi-automated axis numbering"]; "kgpy.obs.spectral.CubeAxis" [URL="kgpy.obs.spectral.CubeAxis.html#kgpy.obs.spectral.CubeAxis",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Representation of the data axes for the arrays within :class:`kgpy.obs.spectral.Cube`"]; "kgpy.mixin.AutoAxis" -> "kgpy.obs.spectral.CubeAxis" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
auto_axis_index(from_right=True)
Return type:

int

Parameters:

from_right (bool) –

perp_axes(axis)
Return type:

typing.Tuple[int, ...]

Parameters:

axis (int | Sequence[int]) –

all

List of indices for each axis.

property ndim: int
num_left_dim

Number of dimensions on the left side of the array.

num_right_dim

Number of dimensions on the right side of the array

property xy: Tuple[int, int]