ArrayOfIndex

class pyarts3.arts.ArrayOfIndex(*args, **kwargs)

A list of Index

Workspace methods that can generate ArrayOfIndex

Overview

Method

append()

Append arg to the end of the list.

Method

clear()

Remove all items from list.

Method

conj()

See numpy.ndarray.conj

Method

conjugate()

See numpy.ndarray.conjugate

Method

copy()

See numpy.ndarray.copy

Method

count()

Return number of occurrences of arg.

Method

cumprod()

See numpy.ndarray.cumprod

Method

cumsum()

See numpy.ndarray.cumsum

Method

diagonal()

See numpy.ndarray.diagonal

Method

extend()

Extend self by appending elements from arg.

Method

fill()

See numpy.ndarray.fill

Method

flatten()

See numpy.ndarray.flatten

Method

index()

Return first occurence of value between start and end - defaults to full range

Method

insert()

Insert object arg1 before index arg0.

Method

max()

See numpy.ndarray.max

Method

mean()

See numpy.ndarray.mean

Method

min()

See numpy.ndarray.min

Method

nonzero()

See numpy.ndarray.nonzero

Method

pop()

Remove and return item at index (default last).

Method

prod()

See numpy.ndarray.prod

Method

ravel()

See numpy.ndarray.ravel

Method

readxml()

Read variable from file

Method

remove()

Remove first occurrence of arg.

Method

repeat()

See numpy.ndarray.repeat

Method

reshape()

See numpy.ndarray.reshape

Method

round()

See numpy.ndarray.round

Method

savexml()

Saves variable to file

Method

squeeze()

See numpy.ndarray.squeeze

Method

std()

See numpy.ndarray.std

Method

sum()

See numpy.ndarray.sum

Method

tolist()

See numpy.ndarray.tolist

Method

trace()

See numpy.ndarray.trace

Method

transpose()

See numpy.ndarray.transpose

Method

var()

See numpy.ndarray.var

Static Method

fromxml()

Create variable from file

Attribute

T

See numpy.ndarray.T.

Attribute

dtype

See numpy.ndarray.dtype.

Attribute

imag

See numpy.ndarray.imag.

Attribute

itemsize

See numpy.ndarray.itemsize.

Attribute

nbytes

See numpy.ndarray.nbytes.

Attribute

ndim

See numpy.ndarray.ndim.

Attribute

real

See numpy.ndarray.real.

Attribute

shape

See numpy.ndarray.shape.

Attribute

size

See numpy.ndarray.size.

Attribute

strides

See numpy.ndarray.strides.

Attribute

value

A ndarray of the object.

Operator

__abs__()

See numpy.ndarray.__abs__

Operator

__add__()

See numpy.ndarray.__add__

Operator

__and__()

See numpy.ndarray.__and__

Operator

__array__()

__array__(self, dtype: object | None = None, copy: object | None = None) -> numpy.ndarray[dtype=int64, shape=(*), order=’C’] | object

Operator

__contains__()

Overloaded function.

Operator

__delitem__()

Overloaded function.

Operator

__divmod__()

See numpy.ndarray.__divmod__

Operator

__eq__()

Overloaded function.

Operator

__floordiv__()

See numpy.ndarray.__floordiv__

Operator

__format__()

__format__(self, arg: str, /) -> str

Operator

__ge__()

See numpy.ndarray.__ge__

Operator

__getitem__()

Overloaded function.

Operator

__getstate__()

__getstate__(self) -> tuple[pyarts3.arts.ArrayOfIndex]

Operator

__gt__()

See numpy.ndarray.__gt__

Operator

__hash__()

Return hash(self).

Operator

__iadd__()

See numpy.ndarray.__iadd__

Operator

__iand__()

See numpy.ndarray.__iand__

Operator

__ifloordiv__()

See numpy.ndarray.__ifloordiv__

Operator

__imatmul__()

See numpy.ndarray.__imatmul__

Operator

__imod__()

See numpy.ndarray.__imod__

Operator

__imul__()

See numpy.ndarray.__imul__

Operator

__init__()

Overloaded function.

Operator

__ior__()

See numpy.ndarray.__ior__

Operator

__ipow__()

See numpy.ndarray.__ipow__

Operator

__isub__()

See numpy.ndarray.__isub__

Operator

__iter__()

Overloaded function.

Operator

__itruediv__()

See numpy.ndarray.__itruediv__

Operator

__le__()

See numpy.ndarray.__le__

Operator

__len__()

Overloaded function.

Operator

__lt__()

See numpy.ndarray.__lt__

Operator

__matmul__()

See numpy.ndarray.__matmul__

Operator

__mod__()

See numpy.ndarray.__mod__

Operator

__mul__()

See numpy.ndarray.__mul__

Operator

__ne__()

Overloaded function.

Operator

__or__()

See numpy.ndarray.__or__

Operator

__pow__()

See numpy.ndarray.__pow__

Operator

__radd__()

See numpy.ndarray.__radd__

Operator

__rand__()

See numpy.ndarray.__rand__

Operator

__rdivmod__()

See numpy.ndarray.__rdivmod__

Operator

__repr__()

__repr__(self) -> str

Operator

__rfloordiv__()

See numpy.ndarray.__rfloordiv__

Operator

__rmatmul__()

See numpy.ndarray.__rmatmul__

Operator

__rmod__()

See numpy.ndarray.__rmod__

Operator

__rmul__()

See numpy.ndarray.__rmul__

Operator

__ror__()

See numpy.ndarray.__ror__

Operator

__rpow__()

See numpy.ndarray.__rpow__

Operator

__rsub__()

See numpy.ndarray.__rsub__

Operator

__rtruediv__()

See numpy.ndarray.__rtruediv__

Operator

__setitem__()

Overloaded function.

Operator

__setstate__()

__setstate__(self, arg: tuple[pyarts3.arts.ArrayOfIndex]) -> None

Operator

__str__()

__str__(self) -> str

Operator

__truediv__()

See numpy.ndarray.__truediv__

Constructors

__init__(self) None
__init__(self, arg: pyarts3.arts.ArrayOfIndex) None
__init__(self, arg: collections.abc.Iterable[pyarts3.arts.Index], /) None
__init__(self) None
__init__(self, arg: pyarts3.arts.ArrayOfIndex) None

Overloaded function.

  1. __init__(self) -> None

Default constructor

  1. __init__(self, arg: pyarts3.arts.ArrayOfIndex) -> None

Copy constructor

  1. __init__(self, arg: collections.abc.Iterable[pyarts3.arts.Index], /) -> None

Construct from an iterable object

  1. __init__(self) -> None

  2. __init__(self, arg: pyarts3.arts.ArrayOfIndex) -> None

Methods

append(self, value: int) None

Append arg to the end of the list.

clear(self) None

Remove all items from list.

conj(self) object

See numpy.ndarray.conj

conjugate(self) object

See numpy.ndarray.conjugate

copy(self, order: str = 'C') object

See numpy.ndarray.copy

count(self, arg: int, /) int

Return number of occurrences of arg.

cumprod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object

See numpy.ndarray.cumprod

cumsum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object

See numpy.ndarray.cumsum

diagonal(self, offset: object = 0, axis1: object = 0, axis2: object = 1) object

See numpy.ndarray.diagonal

extend(self, arg: pyarts3.arts.ArrayOfIndex, /) None

Extend self by appending elements from arg.

fill(self, value: object) object

See numpy.ndarray.fill

flatten(self, order: str = 'C') object

See numpy.ndarray.flatten

index(self, value: int, start: int = 0, end: int = 18446744073709551615) int

Return first occurence of value between start and end - defaults to full range

insert(self, arg0: int, arg1: int, /) None

Insert object arg1 before index arg0.

max(self, axis: object | None = None, out: object | None = None, keepdims: object = False) object

See numpy.ndarray.max

mean(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object

See numpy.ndarray.mean

min(self, axis: object | None = None, out: object | None = None, keepdims: object = False) object

See numpy.ndarray.min

nonzero(self) object

See numpy.ndarray.nonzero

pop(self, index: int = -1) int

Remove and return item at index (default last).

prod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object

See numpy.ndarray.prod

ravel(self, order: object = 'C') object

See numpy.ndarray.ravel

readxml(self, file: str) str

Read variable from file

Parameters:

file (str) – A file that can be read

On Error:

Throws RuntimeError for any failure to read

remove(self, arg: int, /) None

Remove first occurrence of arg.

repeat(self, repeats: object, axis: object | None = None) object

See numpy.ndarray.repeat

reshape(self, shape: object, order: object = 'C') object

See numpy.ndarray.reshape

round(self, decimals: object = 0, out: object | None = None) object

See numpy.ndarray.round

savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str

Saves variable to file

Parameters:
  • file (str) – The path to which the file is written. Note that several of the options might modify the name or write more files

  • type (str) – Type of file to save. See FileType for options.

  • clobber (bool) – Overwrite existing files or add new file with modified name?

On Error:

Throws RuntimeError for any failure to save

squeeze(self, axis: object | None = None) object

See numpy.ndarray.squeeze

std(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object

See numpy.ndarray.std

sum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object

See numpy.ndarray.sum

tolist(self) object

See numpy.ndarray.tolist

trace(self, offset: object = 0, axis1: object = 0, axis2: object = 1, dtype: object | None = None, out: object | None = None) object

See numpy.ndarray.trace

transpose(self, *axes) object

See numpy.ndarray.transpose

var(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object

See numpy.ndarray.var

Static Methods

fromxml(file: str) pyarts3.arts.ArrayOfIndex

Create variable from file

Parameters:

file (str) – A file that can be read

On Error:

Throws RuntimeError for any failure to read

Attributes

T: object

See numpy.ndarray.T.

dtype: object

See numpy.ndarray.dtype.

imag: object

See numpy.ndarray.imag.

itemsize: object

See numpy.ndarray.itemsize.

nbytes: object

See numpy.ndarray.nbytes.

ndim: object

See numpy.ndarray.ndim.

real: object

See numpy.ndarray.real.

shape: object

See numpy.ndarray.shape.

size: object

See numpy.ndarray.size.

strides: object

See numpy.ndarray.strides.

value: numpy.ndarray

A ndarray of the object.

Operators

__abs__(self) object

See numpy.ndarray.__abs__

__add__(self, value: object) object

See numpy.ndarray.__add__

__and__(self, value: object) object

See numpy.ndarray.__and__

__array__(self, dtype: object | None = None, copy: object | None = None) numpy.ndarray[dtype=int64, shape=(*), order='C'] | object
__contains__(self, key: object) object
__contains__(self, arg: int, /) bool
__contains__(self, arg: object, /) bool

Overloaded function.

  1. __contains__(self, key: object) -> object

See numpy.ndarray.__contains__

  1. __contains__(self, arg: int, /) -> bool

Return true if arg is in the list.

  1. __contains__(self, arg: object, /) -> bool

Return false.

__delitem__(self, i: int) None
__delitem__(self, slice: slice) None

Overloaded function.

  1. __delitem__(self, i: int) -> None

Remove the i-th item from the list.

  1. __delitem__(self, slice: slice) -> None

Remove a slice of the list.

__divmod__(self, value: object) object

See numpy.ndarray.__divmod__

__eq__(self, value: object) object
__eq__(self, arg: pyarts3.arts.ArrayOfIndex, /) bool

Overloaded function.

  1. __eq__(self, value: object) -> object

See numpy.ndarray.__eq__

  1. __eq__(self, arg: pyarts3.arts.ArrayOfIndex, /) -> bool

self == other

__floordiv__(self, value: object) object

See numpy.ndarray.__floordiv__

__format__(self, arg: str, /) str
__ge__(self, value: object) object

See numpy.ndarray.__ge__

__getitem__(self, key: object) object
__getitem__(self, i: int) int
__getitem__(self, slice: slice) pyarts3.arts.ArrayOfIndex

Overloaded function.

  1. __getitem__(self, key: object) -> object

See numpy.ndarray.__getitem__

  1. __getitem__(self, i: int) -> int

Return the i-th item.

  1. __getitem__(self, slice: slice) -> pyarts3.arts.ArrayOfIndex

Return a slice of the list.

__getstate__(self) tuple[pyarts3.arts.ArrayOfIndex]
__gt__(self, value: object) object

See numpy.ndarray.__gt__

__hash__()

Return hash(self).

__iadd__(self, value: object) object

See numpy.ndarray.__iadd__

__iand__(self, value: object) object

See numpy.ndarray.__iand__

__ifloordiv__(self, value: object) object

See numpy.ndarray.__ifloordiv__

__imatmul__(self, value: object) object

See numpy.ndarray.__imatmul__

__imod__(self, value: object) object

See numpy.ndarray.__imod__

__imul__(self, value: object) object

See numpy.ndarray.__imul__

__init__(self) None
__init__(self, arg: pyarts3.arts.ArrayOfIndex) None
__init__(self, arg: collections.abc.Iterable[pyarts3.arts.Index], /) None
__init__(self) None
__init__(self, arg: pyarts3.arts.ArrayOfIndex) None

Overloaded function.

  1. __init__(self) -> None

Default constructor

  1. __init__(self, arg: pyarts3.arts.ArrayOfIndex) -> None

Copy constructor

  1. __init__(self, arg: collections.abc.Iterable[pyarts3.arts.Index], /) -> None

Construct from an iterable object

  1. __init__(self) -> None

  2. __init__(self, arg: pyarts3.arts.ArrayOfIndex) -> None

__ior__(self, value: object) object

See numpy.ndarray.__ior__

__ipow__(self, value: object) object

See numpy.ndarray.__ipow__

__isub__(self, value: object) object

See numpy.ndarray.__isub__

__iter__(self) object
__iter__(self) collections.abc.Iterator[int]

Overloaded function.

  1. __iter__(self) -> object

See numpy.ndarray.__iter__

  1. __iter__(self) -> collections.abc.Iterator[int]

Allows iter(self)

__itruediv__(self, value: object) object

See numpy.ndarray.__itruediv__

__le__(self, value: object) object

See numpy.ndarray.__le__

__len__(self) object
__len__(self) int

Overloaded function.

  1. __len__(self) -> object

See numpy.ndarray.__len__

  1. __len__(self) -> int

Return the number of items in the list.

__lt__(self, value: object) object

See numpy.ndarray.__lt__

__matmul__(self, value: object) object

See numpy.ndarray.__matmul__

__mod__(self, value: object) object

See numpy.ndarray.__mod__

__mul__(self, value: object) object

See numpy.ndarray.__mul__

__ne__(self, value: object) object
__ne__(self, arg: pyarts3.arts.ArrayOfIndex, /) bool

Overloaded function.

  1. __ne__(self, value: object) -> object

See numpy.ndarray.__ne__

  1. __ne__(self, arg: pyarts3.arts.ArrayOfIndex, /) -> bool

self != other

__or__(self, value: object) object

See numpy.ndarray.__or__

__pow__(self, value: object, mod: object | None = None) object

See numpy.ndarray.__pow__

__radd__(self, value: object) object

See numpy.ndarray.__radd__

__rand__(self, value: object) object

See numpy.ndarray.__rand__

__rdivmod__(self, value: object) object

See numpy.ndarray.__rdivmod__

__repr__(self) str
__rfloordiv__(self, value: object) object

See numpy.ndarray.__rfloordiv__

__rmatmul__(self, value: object) object

See numpy.ndarray.__rmatmul__

__rmod__(self, value: object) object

See numpy.ndarray.__rmod__

__rmul__(self, value: object) object

See numpy.ndarray.__rmul__

__ror__(self, value: object) object

See numpy.ndarray.__ror__

__rpow__(self, value: object, mod: object | None = None) object

See numpy.ndarray.__rpow__

__rsub__(self, value: object) object

See numpy.ndarray.__rsub__

__rtruediv__(self, value: object) object

See numpy.ndarray.__rtruediv__

__setitem__(self, key: object, value: object) object
__setitem__(self, i: int, value: int) None
__setitem__(self, slice: slice, value: pyarts3.arts.ArrayOfIndex) None

Overloaded function.

  1. __setitem__(self, key: object, value: object) -> object

See numpy.ndarray.__setitem__

  1. __setitem__(self, i: int, value: int) -> None

Set the i-th item to value.

  1. __setitem__(self, slice: slice, value: pyarts3.arts.ArrayOfIndex) -> None

Set a slice of the list.

__setstate__(self, arg: tuple[pyarts3.arts.ArrayOfIndex]) None
__str__(self) str
__truediv__(self, value: object) object

See numpy.ndarray.__truediv__