AbsorptionBands
- class pyarts3.arts.AbsorptionBands(*args, **kwargs)
A map of
QuantumIdentifier
toAbsorptionBand
Workspace variables of type AbsorptionBands
Overview
Method
Remove all items
Method
Clear the linemixing data from all bands by removing it from the inner line shape models
Method
Return the total number of lines
Method
Returns an iterable view of the map’s items.
Method
Wraps calling percentile_hitran_s followed by remove_hitran_s.
Method
Returns an iterable view of the map’s keys.
Method
Merge the other absorption bands into this
Method
Map of HITRAN linestrengths at a given percentile
Method
Computes the line-by-line model absorption in 1/m
Method
Read variable from file
Method
Removes all lines with a weaker HITRAN-like line strength than those provided by the remove map.
Method
Saves variable to file
Method
Update the map with element from arg
Method
Returns an iterable view of the map’s values.
Static Method
Create variable from file
Static Data
pyarts3.arts.AbsorptionBands.ItemView
<class ‘pyarts3.arts.AbsorptionBands.ItemView’> (
nb_type_0
)Static Data
pyarts3.arts.AbsorptionBands.KeyView
<class ‘pyarts3.arts.AbsorptionBands.KeyView’> (
nb_type_0
)Static Data
pyarts3.arts.AbsorptionBands.ValueView
<class ‘pyarts3.arts.AbsorptionBands.ValueView’> (
nb_type_0
)Operator
__contains__(self, arg: object, /) -> bool
Operator
__delitem__(self, arg: pyarts3.arts.QuantumIdentifier, /) -> None
Operator
Return self==value.
Operator
__format__(self, arg: str, /) -> str
Operator
Return self>=value.
Operator
__getitem__(self, arg: pyarts3.arts.lbl.line_key, /) -> float
Operator
Helper for pickle.
Operator
Return self>value.
Operator
Return hash(self).
Operator
Overloaded function.
Operator
__iter__(self) -> collections.abc.Iterator[pyarts3.arts.QuantumIdentifier]
Operator
Return self<=value.
Operator
__len__(self) -> int
Operator
Return self<value.
Operator
Return self!=value.
Operator
__repr__(self) -> str
Operator
__setitem__(self, arg0: pyarts3.arts.lbl.line_key, arg1: float, /) -> None
Operator
__str__(self) -> str
Constructors
- __init__(self) None
- __init__(self, arg: pyarts3.arts.AbsorptionBands) None
- __init__(self, arg: dict[pyarts3.arts.QuantumIdentifier, pyarts3.arts.AbsorptionBand], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.AbsorptionBands) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.AbsorptionBands) -> None
Copy constructor
__init__(self, arg: dict[pyarts3.arts.QuantumIdentifier, pyarts3.arts.AbsorptionBand], /) -> None
Construct from a dictionary
__init__(self) -> None
__init__(self, arg: pyarts3.arts.AbsorptionBands) -> None
Methods
- clear_linemixing(self) int
Clear the linemixing data from all bands by removing it from the inner line shape models
- Returns:
int
- Return type:
The number of removed variables
- count_lines(self, spec: pyarts3.arts.SpeciesEnum = 'AIR') int
Return the total number of lines
- items(self) pyarts3.arts.AbsorptionBands.ItemView
Returns an iterable view of the map’s items.
- keep_hitran_s(self, approximate_percentile: float | collections.abc.Mapping[pyarts3.arts.SpeciesEnum, float], T0: float = 296.0) None
Wraps calling percentile_hitran_s followed by remove_hitran_s.
- keys(self) pyarts3.arts.AbsorptionBands.KeyView
Returns an iterable view of the map’s keys.
- merge(self, other: pyarts3.arts.AbsorptionBands) tuple[int, int]
Merge the other absorption bands into this
If the key in the other absorption bands already exists in this, the lines with the same local quantum numbers are overwritten by those of the other absorption bands.
- Parameters:
other (AbsorptionBands) – The other absorption bands to merge into this
- percentile_hitran_s(self, approximate_percentile: float | collections.abc.Mapping[pyarts3.arts.SpeciesEnum, float], T0: float = 296.0) dict[pyarts3.arts.SpeciesEnum, float]
Map of HITRAN linestrengths at a given percentile
Note
The percentile is approximated by floating point arithmetic on the sorted HITRAN line strenght values.
- propagation_matrix(self, f: pyarts3.arts.AscendingGrid, atm: pyarts3.arts.AtmPoint, spec: pyarts3.arts.SpeciesEnum = "AIR", path_point: pyarts3.arts.PropagationPathPoint = ["unknown", "unknown", 0, 0, 0, 0, 0, 1, 1], ecs_data: pyarts3.arts.LinemixingEcsData = pyarts3.arts.LinemixingEcsData({}), no_negative_absorption: int = 1, **kwargs = {}) pyarts3.arts.PropmatVector
Computes the line-by-line model absorption in 1/m
The method accepts any number of kwargs to be compatible with similar methods for computing the propagation matrix.
- Parameters:
f (AscendingGrid) – Frequency grid [Hz]
atm (AtmPoint) – Atmospheric point
spec (SpeciesEnum, optional) – Species to use. Defaults to all species.
path_point (PropagationPathPoint, optional) – The path point. Default is POS [0, 0, 0], LOS [0, 0].
ecs_data (LinemixingEcsData, optional) – The ECS data. Default is empty.
no_negative_absorption (Index, optional) – If 1, the absorption is set to zero if it is negative. The default is 1.
- Returns:
propagation_matrix – Propagation matrix by frequency [1/m]
- Return type:
- 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_hitran_s(self, remove: collections.abc.Mapping[pyarts3.arts.SpeciesEnum, float], T0: float = 296.0) None
Removes all lines with a weaker HITRAN-like line strength than those provided by the remove map.
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str
Saves variable to file
- Parameters:
- On Error:
Throws RuntimeError for any failure to save
- update(self, arg: pyarts3.arts.AbsorptionBands, /) None
Update the map with element from arg
- values(self) pyarts3.arts.AbsorptionBands.ValueView
Returns an iterable view of the map’s values.
Static Methods
- fromxml(file: str) pyarts3.arts.AbsorptionBands
Create variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
Operators
- __contains__(self, arg: pyarts3.arts.QuantumIdentifier, /) bool
- __contains__(self, arg: object, /) bool
- __delitem__(self, arg: pyarts3.arts.QuantumIdentifier, /) None
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __getitem__(self, arg: pyarts3.arts.QuantumIdentifier, /) pyarts3.arts.AbsorptionBand
- __getitem__(self, arg: pyarts3.arts.lbl.line_key, /) float
- __getstate__()
Helper for pickle.
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __init__(self) None
- __init__(self, arg: pyarts3.arts.AbsorptionBands) None
- __init__(self, arg: dict[pyarts3.arts.QuantumIdentifier, pyarts3.arts.AbsorptionBand], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.AbsorptionBands) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.AbsorptionBands) -> None
Copy constructor
__init__(self, arg: dict[pyarts3.arts.QuantumIdentifier, pyarts3.arts.AbsorptionBand], /) -> None
Construct from a dictionary
__init__(self) -> None
__init__(self, arg: pyarts3.arts.AbsorptionBands) -> None
- __iter__(self) collections.abc.Iterator[pyarts3.arts.QuantumIdentifier]
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __setitem__(self, arg0: pyarts3.arts.QuantumIdentifier, arg1: pyarts3.arts.AbsorptionBand, /) None
- __setitem__(self, arg0: pyarts3.arts.lbl.line_key, arg1: float, /) None