XsecRecord
- class pyarts3.arts.XsecRecord(*args, **kwargs)
A single cross-section record.
These cross-section records contains information about the valid temperature and pressure ranges as well as well as the fitting coefficients used to compute and interpolate the cross-section to other temperatures and pressures
Overview
Method
Computes the Hitran cross-section absorption in 1/m
Method
Computes the Hitran cross-section absorption in 1/m
Method
Read variable from file.
Method
Saves variable to file.
Method
Convert object to dict.
Method
Save XsecRecord to NetCDF file.
Method
Convert XsecRecord to
xarray.DataArray()
.Static Method
Create object from dict.
Static Method
Create an XsecRecord from a NetCDF file.
Static Method
Create XsecRecord from
xarray.DataArray()
.Static Method
Create variable from file.
Fit coefficients
Fit coefficients
Fit coefficients
Fit coefficients
Fit coefficients
The species
Static Data
pyarts3.arts.XsecRecord.version
2 (
int
)Operator
Allows self == value
Operator
__format__(self, arg: str, /) -> str
Operator
Return self>=value.
Operator
__getstate__(self) -> tuple[int, pyarts3.arts.SpeciesEnum, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.ArrayOfGriddedField1Named]
Operator
Return self>value.
Operator
Return hash(self).
Operator
__init__(self, arg: pyarts3.arts.XsecRecord) -> None
Operator
Return self<=value.
Operator
Return self<value.
Operator
Return self!=value.
Operator
__repr__(self) -> str
Operator
__setstate__(self, arg: tuple[int, pyarts3.arts.SpeciesEnum, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.ArrayOfGriddedField1Named], /) -> None
Operator
__str__(self) -> str
Constructors
- __init__(self) None
- __init__(self, arg: pyarts3.arts.XsecRecord) None
Methods
- compute_abs(self, T: float, P: float, VMR: float, f: pyarts3.arts.Vector) pyarts3.arts.Vector
Computes the Hitran cross-section absorption in 1/m
- propagation_matrix(self, f: pyarts3.arts.AscendingGrid, atm: pyarts3.arts.AtmPoint) pyarts3.arts.PropmatVector
Computes the Hitran cross-section absorption in 1/m
- Parameters:
f (AscendingGrid) – Frequency grid [Hz]
atm (AtmPoint) – Atmospheric point
- Returns:
abs – Absorption profile [1/m]
- Return type:
- 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:
Static Methods
- from_dict(arg: dict, /) pyarts3.arts.XsecRecord
Create object from dict.
- fromxml(file: str) pyarts3.arts.XsecRecord
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
Attributes
- fitcoeffs: ArrayOfGriddedField2
Fit coefficients
- fitmaxpressures: ArrayOfGriddedField2
Fit coefficients
- fitmaxtemperatures: ArrayOfGriddedField2
Fit coefficients
- fitminpressures: ArrayOfGriddedField2
Fit coefficients
- fitmintemperatures: ArrayOfGriddedField2
Fit coefficients
- species: SpeciesEnum
The species
Operators
- __eq__(self, value: pyarts3.arts.XsecRecord) bool
Allows self == value
- __ge__(value, /)
Return self>=value.
- __getstate__(self) tuple[int, pyarts3.arts.SpeciesEnum, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.ArrayOfGriddedField1Named]
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __init__(self) None
- __init__(self, arg: pyarts3.arts.XsecRecord) None
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __setstate__(self, arg: tuple[int, pyarts3.arts.SpeciesEnum, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.Vector, pyarts3.arts.ArrayOfGriddedField1Named], /) None