ArrayOfNumeric
- class pyarts3.arts.ArrayOfNumeric(*args, **kwargs)
A list of
Numeric
Overview
Method
Append arg to the end of the list.
Method
Remove all items from list.
Method
Method
Method
Method
Return number of occurrences of arg.
Method
Method
Method
Method
Extend self by appending elements from arg.
Method
Method
Method
Return first occurence of value between start and end - defaults to full range
Method
Insert object arg1 before index arg0.
Method
Method
Method
Method
Method
Remove and return item at index (default last).
Method
Method
Method
Read variable from file.
Method
Remove first occurrence of arg.
Method
Method
Method
Method
Saves variable to file.
Method
Method
Method
Method
Method
Method
Method
Static Method
Create variable from file.
Static Method
Create variable from file.
See
numpy.ndarray.T
.See
numpy.ndarray.dtype
.See
numpy.ndarray.imag
.See
numpy.ndarray.nbytes
.See
numpy.ndarray.ndim
.See
numpy.ndarray.real
.See
numpy.ndarray.shape
.See
numpy.ndarray.size
.A
ndarray
of the object.Operator
Operator
Operator
Operator
Returns a
ndarray
of the object.Operator
Overloaded function.
Operator
Overloaded function.
Operator
Operator
Overloaded function.
Operator
Operator
__format__(self, arg: str, /) -> str
Operator
Overloaded function.
Operator
Overloaded function.
Operator
__getstate__(self) -> tuple[pyarts3.arts.ArrayOfNumeric]
Operator
Overloaded function.
Operator
Return hash(self).
Operator
Operator
Operator
Operator
See
numpy.ndarray.__imatmul__
Operator
Operator
Operator
Overloaded function.
Operator
Operator
Operator
Operator
Overloaded function.
Operator
Operator
Overloaded function.
Operator
Overloaded function.
Operator
Overloaded function.
Operator
Operator
Operator
Operator
Overloaded function.
Operator
Operator
Operator
See
numpy.ndarray.__radd__
Operator
See
numpy.ndarray.__rand__
Operator
See
numpy.ndarray.__rdivmod__
Operator
__repr__(self) -> str
Operator
See
numpy.ndarray.__rfloordiv__
Operator
See
numpy.ndarray.__rmatmul__
Operator
See
numpy.ndarray.__rmod__
Operator
See
numpy.ndarray.__rmul__
Operator
See
numpy.ndarray.__ror__
Operator
See
numpy.ndarray.__rpow__
Operator
See
numpy.ndarray.__rsub__
Operator
See
numpy.ndarray.__rtruediv__
Operator
Overloaded function.
Operator
__setstate__(self, arg: tuple[pyarts3.arts.ArrayOfNumeric]) -> None
Operator
__str__(self) -> str
Operator
Constructors
- __init__(self) None
- __init__(self, arg: pyarts3.arts.ArrayOfNumeric) None
- __init__(self, arg: collections.abc.Iterable[pyarts3.arts.Numeric], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.ArrayOfNumeric) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.ArrayOfNumeric) -> None
Copy constructor
__init__(self, arg: collections.abc.Iterable[pyarts3.arts.Numeric], /) -> None
Construct from an iterable object
__init__(self) -> None
__init__(self, arg: pyarts3.arts.ArrayOfNumeric) -> None
Methods
- cumprod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object
- cumsum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object
- extend(self, arg: pyarts3.arts.ArrayOfNumeric, /) None
Extend self by appending elements from arg.
- index(self, value: float, start: int = 0, end: int = 18446744073709551615) int
Return first occurence of value between start and end - defaults to full range
- mean(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- prod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- readxml(self, file: str) str
Read variable from file.
- Parameters:
file (str) – A file that can be read.
- Raises:
RuntimeError – For any failure to read.
- Returns:
file – The file path found (may differ from input due to environment variables).
- Return type:
- 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, optional) – Type of file to save. See
FileType
for options. Defaults is “ascii”.clobber (bool, optional) – Overwrite existing files or add new file with modified name? Defaults is True.
- Raises:
RuntimeError – For any failure to write.
- Returns:
file – The file saved. May differ from input.
- Return type:
- std(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object
- sum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- trace(self, offset: object = 0, axis1: object = 0, axis2: object = 1, dtype: object | None = None, out: object | None = None) object
- var(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object
Static Methods
- fromxml(file: str) pyarts3.arts.ArrayOfNumeric
Create variable from file.
- Parameters:
file (str) – A file that can be read
- Raises:
RuntimeError – For any failure to read.
- Returns:
artstype – The variable created from the file.
- Return type:
T
- fromxmls(files: pyarts3.arts.ArrayOfString) pyarts3.arts.ArrayOfNumeric
Create variable from file.
Like
fromxml()
but for split/multiple files.- Parameters:
- Raises:
RuntimeError – For any failure to read.
- Returns:
artstype – The variable created from the file.
- Return type:
T
Attributes
- T: object
See
numpy.ndarray.T
.
- dtype: object
See
numpy.ndarray.dtype
.
- imag: object
See
numpy.ndarray.imag
.
- 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
.
- value: numpy.ndarray
A
ndarray
of the object.
Operators
- __array__(self, dtype: object | None = None, copy: object | None = None) numpy.ndarray[dtype=float64, shape=(*), order='C'] | object
Returns a
ndarray
of the object.
- __contains__(self, key: object) object
- __contains__(self, arg: float, /) bool
- __contains__(self, arg: object, /) bool
Overloaded function.
__contains__(self, key: object) -> object
See
numpy.ndarray.__contains__
__contains__(self, arg: float, /) -> bool
Return true if arg is in the list.
__contains__(self, arg: object, /) -> bool
Return false.
- __delitem__(self, i: int) None
- __delitem__(self, slice: slice) None
Overloaded function.
__delitem__(self, i: int) -> None
Remove the i-th item from the list.
__delitem__(self, slice: slice) -> None
Remove a slice of the list.
- __eq__(self, value: object) object
- __eq__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
- __eq__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__eq__(self, value: object) -> object
__eq__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
self == other
__eq__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __ge__(self, value: object) object
- __ge__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__ge__(self, value: object) -> object
__ge__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __getitem__(self, key: object) object
- __getitem__(self, i: int) float
- __getitem__(self, slice: slice) pyarts3.arts.ArrayOfNumeric
Overloaded function.
__getitem__(self, key: object) -> object
__getitem__(self, i: int) -> float
Return the i-th item.
__getitem__(self, slice: slice) -> pyarts3.arts.ArrayOfNumeric
Return a slice of the list.
- __getstate__(self) tuple[pyarts3.arts.ArrayOfNumeric]
- __gt__(self, value: object) object
- __gt__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__gt__(self, value: object) -> object
__gt__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __hash__()
Return hash(self).
- __init__(self) None
- __init__(self, arg: pyarts3.arts.ArrayOfNumeric) None
- __init__(self, arg: collections.abc.Iterable[pyarts3.arts.Numeric], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.ArrayOfNumeric) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.ArrayOfNumeric) -> None
Copy constructor
__init__(self, arg: collections.abc.Iterable[pyarts3.arts.Numeric], /) -> None
Construct from an iterable object
__init__(self) -> None
__init__(self, arg: pyarts3.arts.ArrayOfNumeric) -> None
- __iter__(self) object
- __iter__(self) collections.abc.Iterator[float]
Overloaded function.
__iter__(self) -> object
See
numpy.ndarray.__iter__
__iter__(self) -> collections.abc.Iterator[float]
Allows iter(self)
- __le__(self, value: object) object
- __le__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__le__(self, value: object) -> object
__le__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __len__(self) object
- __len__(self) int
Overloaded function.
__len__(self) -> object
__len__(self) -> int
Return the number of items in the list.
- __lt__(self, value: object) object
- __lt__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__lt__(self, value: object) -> object
__lt__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __ne__(self, value: object) object
- __ne__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
- __ne__(self, arg: pyarts3.arts.ArrayOfNumeric, /) bool
Overloaded function.
__ne__(self, value: object) -> object
__ne__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
self != other
__ne__(self, arg: pyarts3.arts.ArrayOfNumeric, /) -> bool
- __setitem__(self, key: object, value: object) object
- __setitem__(self, i: int, value: float) None
- __setitem__(self, slice: slice, value: pyarts3.arts.ArrayOfNumeric) None
Overloaded function.
__setitem__(self, key: object, value: object) -> object
__setitem__(self, i: int, value: float) -> None
Set the i-th item to value.
__setitem__(self, slice: slice, value: pyarts3.arts.ArrayOfNumeric) -> None
Set a slice of the list.
- __setstate__(self, arg: tuple[pyarts3.arts.ArrayOfNumeric]) None