LineShapeSpeciesModelMap
- class pyarts3.arts.lbl.LineShapeSpeciesModelMap(*args, **kwargs)
A map from model variable to line shape models
Overview
Method
Remove all items
Method
Extend variable from file.
Method
Returns an iterable view of the map’s items.
Method
Returns an iterable view of the map’s keys.
Method
Read variable from file.
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.lbl.LineShapeSpeciesModelMap.ItemViewStatic Data
pyarts3.arts.lbl.LineShapeSpeciesModelMap.KeyViewStatic Data
pyarts3.arts.lbl.LineShapeSpeciesModelMap.ValueViewOperator
__contains__(self, arg: object, /) -> boolOperator
__delitem__(self, arg: pyarts3.arts.LineShapeModelVariable, /) -> NoneOperator
Return self==value.
Operator
__format__(self, arg: str, /) -> strOperator
Return self>=value.
Operator
__getitem__(self, arg: pyarts3.arts.LineShapeModelVariable, /) -> pyarts3.arts.TemperatureModelOperator
Return self>value.
Operator
Return hash(self).
Operator
Overloaded function.
Operator
__iter__(self) -> collections.abc.Iterator[pyarts3.arts.LineShapeModelVariable]Operator
Return self<=value.
Operator
__len__(self) -> intOperator
Return self<value.
Operator
Return self!=value.
Operator
__repr__(self) -> strOperator
__setitem__(self, arg0: pyarts3.arts.LineShapeModelVariable, arg1: pyarts3.arts.TemperatureModel, /) -> NoneOperator
__str__(self) -> strConstructors
- __init__(self) None
- __init__(self, arg: LineShapeSpeciesModelMap) None
- __init__(self, arg: dict[LineShapeModelVariable, TemperatureModel], /) None
- __init__(self) None
- __init__(self, arg: LineShapeSpeciesModelMap) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.lbl.LineShapeSpeciesModelMap) -> None
Copy constructor
__init__(self, arg: dict[pyarts3.arts.LineShapeModelVariable, pyarts3.arts.TemperatureModel], /) -> None
Construct from a dictionary
__init__(self) -> None__init__(self, arg: pyarts3.arts.lbl.LineShapeSpeciesModelMap) -> None
Methods
- extendxml(self, file: str) str
Extend variable from file.
The content of the file is added to the existing variable.
- 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:
- 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
FileTypefor 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:
- update(self, arg: LineShapeSpeciesModelMap, /) None
Update the map with element from arg
Static Methods
- fromxml(file: str) LineShapeSpeciesModelMap
Create variable from file.
- Parameters:
file (str) – A file that can be read
- Raises:
RuntimeError – For any failure to read.
Operators
- __contains__(self, arg: LineShapeModelVariable, /) bool
- __contains__(self, arg: object, /) bool
- __delitem__(self, arg: LineShapeModelVariable, /) None
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __getitem__(self, arg: LineShapeModelVariable, /) TemperatureModel
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __init__(self) None
- __init__(self, arg: LineShapeSpeciesModelMap) None
- __init__(self, arg: dict[LineShapeModelVariable, TemperatureModel], /) None
- __init__(self) None
- __init__(self, arg: LineShapeSpeciesModelMap) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts3.arts.lbl.LineShapeSpeciesModelMap) -> None
Copy constructor
__init__(self, arg: dict[pyarts3.arts.LineShapeModelVariable, pyarts3.arts.TemperatureModel], /) -> None
Construct from a dictionary
__init__(self) -> None__init__(self, arg: pyarts3.arts.lbl.LineShapeSpeciesModelMap) -> None
- __iter__(self) Iterator[LineShapeModelVariable]
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __setitem__(self, arg0: LineShapeModelVariable, arg1: TemperatureModel, /) None
- class pyarts3.arts.lbl.LineShapeSpeciesModelMap.ItemView
- class pyarts3.arts.lbl.LineShapeSpeciesModelMap.KeyView
- class pyarts3.arts.lbl.LineShapeSpeciesModelMap.ValueView