ArrayOfAtmPoint
- class pyarts.arts.ArrayOfAtmPoint(*args, **kwargs)
A list of
AtmPoint
Workspace variables of type ArrayOfAtmPoint
Overview
Method
Append arg to the end of the list.
Method
Remove all items from list.
Method
Extend self by appending elements from arg.
Method
Extend the atmosphere to a new pressure point.
Method
Create an atmospheric field from a profile of atmospheric points.
Method
Insert object arg1 before index arg0.
Method
Remove and return item at index (default last).
Method
Read variable from file
Method
Saves variable to file
Method
Convert an array of atmospheric points to a dictionary.
Method
Update the array of atmospheric points.
Static Method
Create an array of atmospheric points from a dictionary.
Static Method
Create variable from file
Operator
__delitem__(self, arg: slice, /) -> None
Operator
Return self==value.
Operator
Return self>=value.
Operator
__getitem__(self, arg: slice, /) -> pyarts.arts.ArrayOfAtmPoint
Operator
Helper for pickle.
Operator
Return self>value.
Operator
Return hash(self).
Operator
__iter__(self) -> collections.abc.Iterator[pyarts.arts.AtmPoint]
Operator
Return self<=value.
Operator
__len__(self) -> int
Operator
Return self<value.
Operator
Return self!=value.
Operator
__setitem__(self, arg0: slice, arg1: pyarts.arts.ArrayOfAtmPoint, /) -> None
Constructors
- __init__(self) None
- __init__(self, arg: pyarts.arts.ArrayOfAtmPoint) None
- __init__(self, arg: collections.abc.Iterable[pyarts.arts.AtmPoint], /) None
- __init__(self) None
- __init__(self, arg: pyarts.arts.ArrayOfAtmPoint) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts.arts.ArrayOfAtmPoint) -> None
Copy constructor
__init__(self, arg: collections.abc.Iterable[pyarts.arts.AtmPoint], /) -> None
Construct from an iterable object
__init__(self) -> None
__init__(self, arg: pyarts.arts.ArrayOfAtmPoint) -> None
Methods
- append(self, arg: pyarts.arts.AtmPoint, /) None
Append arg to the end of the list.
- extend(self, arg: pyarts.arts.ArrayOfAtmPoint, /) None
Extend self by appending elements from arg.
- extend_in_pressure(self, pressure: float, extrapolation_type: pyarts.arts.InterpolationExtrapolation = 'Nearest', logarithmic: bool = True) None
Extend the atmosphere to a new pressure point.
The logarithm of the pressure profile will be used as a pseudo-altitude coordinate in calling :method:`field1D`. The extrapolation type will be used for the new points, above and below the original profile (if necessary).
- Parameters:
extrapolation_type (InterpolationExtrapolation) – The extrapolation type to use for the new points. Default is “Nearest”.
pressure (Numeric, optional) – The new pressure point.
logarithmic (bool, optional) – The grid should be extended as in logarithmic pressure. Default is True.
- field1D(self, altitudes: pyarts.arts.AscendingGrid, extrap: pyarts.arts.InterpolationExtrapolation = 'Nearest') pyarts.arts.AtmField
Create an atmospheric field from a profile of atmospheric points.
The field is a 1D profile
- Parameters:
atm (ArrayOfAtmPoint) – The atmospheric profile.
altitudes (AscendingGrid) – The altitude grid
extrap (InterpolationExtrapolation, optional) – The extrapolation method to use for the new keys. Default is “Nearest”.
- insert(self, arg0: int, arg1: pyarts.arts.AtmPoint, /) None
Insert object arg1 before index arg0.
- pop(self, index: int = -1) pyarts.arts.AtmPoint
Remove and return item at index (default last).
- readxml(self, file: str) None
Read variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) None
Saves variable to file
- Parameters:
- On Error:
Throws RuntimeError for any failure to save
- to_dict(self, core: bool = True, specs: bool = True, isots: bool = True, nlte: bool = True, ssprops: bool = True) dict[pyarts.arts.AtmKey | pyarts.arts.SpeciesEnum | pyarts.arts.SpeciesIsotope | pyarts.arts.QuantumIdentifier | pyarts.arts.ScatteringSpeciesProperty, pyarts.arts.Vector]
Convert an array of atmospheric points to a dictionary.
Tip
The function
stringify_keys()
may be used to convert the dictionary keys to strings. This allows for easier manipulation of the data of the dictionary.- Parameters:
core (bool, optional) – If True, the core atmospheric data will be included (i.e., temperature, pressure, etc). Default is True.
specs (bool, optional) – If True, the species VMR data will be included. Default is True.
isots (bool, optional) – If True, the isotopologue ratio data will be included. Default is True.
nlte (bool, optional) – If True, the NLTE data will be included. Default is True.
ssprops (bool, optional) – If True, the scattering species properties data will be included. Default is True.
- update(self, data: collections.abc.Mapping[pyarts.arts.AtmKey | pyarts.arts.SpeciesEnum | pyarts.arts.SpeciesIsotope | pyarts.arts.QuantumIdentifier | pyarts.arts.ScatteringSpeciesProperty, pyarts.arts.Vector]) None
Update the array of atmospheric points.
Tip
Each key-type of the dictionary is constructible from a
str
. So using a dictionary with string keys is possible.- Parameters:
data (dict) – A dictionary with keys as the atmospheric point keys and values.
Static Methods
- from_dict(data: collections.abc.Mapping[pyarts.arts.AtmKey | pyarts.arts.SpeciesEnum | pyarts.arts.SpeciesIsotope | pyarts.arts.QuantumIdentifier | pyarts.arts.ScatteringSpeciesProperty, pyarts.arts.Vector], iso: pyarts.arts.IsoRatioOption = 'Builtin') pyarts.arts.ArrayOfAtmPoint
Create an array of atmospheric points from a dictionary.
Tip
Each key-type of the dictionary is constructible from a
str
. So using a dictionary with string keys is possible.- Parameters:
data (dict) – A dictionary with keys as the atmospheric point keys and values.
iso (IsoRatioOption, optional) – The isotopologue ratio option to use. Default is “Builtin”. Use “None” to create points without isotopologue ratios.
- fromxml(file: str) pyarts.arts.ArrayOfAtmPoint
Create variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
Operators
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __getitem__(self, arg: int, /) pyarts.arts.AtmPoint
- __getitem__(self, arg: slice, /) pyarts.arts.ArrayOfAtmPoint
- __getstate__()
Helper for pickle.
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __iter__(self) collections.abc.Iterator[pyarts.arts.AtmPoint]
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __setitem__(self, arg0: int, arg1: pyarts.arts.AtmPoint, /) None
- __setitem__(self, arg0: slice, arg1: pyarts.arts.ArrayOfAtmPoint, /) None