ArrayOfSparse
- class pyarts.arts.ArrayOfSparse
A list of
Sparse
It aims to be compatible with
list
ofSparse
Workspace methods that can generate ArrayOfSparse
Workspace methods that require ArrayOfSparse
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: pyarts.arts.ArrayOfSparse) -> None
Empty array
__init__(self: pyarts.arts.ArrayOfSparse, size: int, cval: pyarts.arts.Sparse) -> None
Sized same-value array
__init__(self: pyarts.arts.ArrayOfSparse, arr: List[pyarts.arts.Sparse]) -> None
Array from
list
__init__(self: pyarts.arts.ArrayOfSparse, val: pyarts.arts.ArrayOfSparse) -> None
Copy instance
__init__(self: pyarts.arts.ArrayOfSparse, wsv: pyarts.arts.WorkspaceVariable) -> None
Automatic conversion from a workspace variable
Methods
__init__
(*args, **kwargs)Overloaded function.
append
(self, arg0)Appends a
Sparse
at the end of the arrayclear
(self)Empty the array of all values
copy
(self)Copy the array
extend
(self, arg0)Extend the array by another array
fromxml
(file)Create
ArrayOfSparse
from fileindex
(self, arg0)Returns the first index of a value
insert
(self, arg0, arg1)Insert a value into the array
pop
(self[, i])Pops a
Sparse
from the arrayreadxml
(self, file)Read
ArrayOfSparse
from filereverse
(self)Reverse order of array
savexml
(self, file[, type, clobber])Saves
ArrayOfSparse
to file