pyarts3.arts.stringify_keys
- arts.stringify_keys(data: Mapping[AtmKey | SpeciesEnum | SpeciesIsotope | QuantumLevelIdentifier | ScatteringSpeciesProperty, GeodeticField3 | float | NumericTernaryOperator], unique: bool = True) dict[str, GeodeticField3 | float | NumericTernaryOperator]
- arts.stringify_keys(data: Mapping[AtmKey | SpeciesEnum | SpeciesIsotope | QuantumLevelIdentifier | ScatteringSpeciesProperty, float], unique: bool = True) dict[str, float]
- arts.stringify_keys(data: Mapping[AtmKey | SpeciesEnum | SpeciesIsotope | QuantumLevelIdentifier | ScatteringSpeciesProperty, Vector], unique: bool = True) dict[str, Vector]
Overloaded function.
stringify_keys(data: collections.abc.Mapping[pyarts3.arts.AtmKey | pyarts3.arts.SpeciesEnum | pyarts3.arts.SpeciesIsotope | pyarts3.arts.QuantumLevelIdentifier | pyarts3.arts.ScatteringSpeciesProperty, pyarts3.arts.GeodeticField3 | float | pyarts3.arts.NumericTernaryOperator], unique: bool = True) -> dict[str, pyarts3.arts.GeodeticField3 | float | pyarts3.arts.NumericTernaryOperator]
Convert a dictionary of atmospheric field keys to their string representation.
Warning
Setting unique to False will overwrite keys with the same string representation.
- Parameters:
data (dict) – A dictionary of atmospheric keys and corresponding data.
unique (bool, optional) – If True, non-unique keys will throw an error. Default is True.
- Returns:
py_atm_field – A dictionary of atmospheric keys and corresponding data. The keys are the string representations of the atmospheric field keys.
- Return type:
stringify_keys(data: collections.abc.Mapping[pyarts3.arts.AtmKey | pyarts3.arts.SpeciesEnum | pyarts3.arts.SpeciesIsotope | pyarts3.arts.QuantumLevelIdentifier | pyarts3.arts.ScatteringSpeciesProperty, float], unique: bool = True) -> dict[str, float]
Convert a dictionary of atmospheric point keys to their string representation.
Warning
Setting unique to False will overwrite keys with the same string representation.
- Parameters:
data (dict) – A dictionary of atmospheric keys and corresponding data.
unique (bool, optional) – If True, non-unique keys will throw an error. Default is True.
- Returns:
dict – A dictionary of atmospheric keys and corresponding data.
- Return type:
stringify_keys(data: collections.abc.Mapping[pyarts3.arts.AtmKey | pyarts3.arts.SpeciesEnum | pyarts3.arts.SpeciesIsotope | pyarts3.arts.QuantumLevelIdentifier | pyarts3.arts.ScatteringSpeciesProperty, pyarts3.arts.Vector], unique: bool = True) -> dict[str, pyarts3.arts.Vector]
Convert a dictionary of atmospheric point keys to their string representation.
Warning
Setting unique to False will overwrite keys with the same string representation.
- Parameters:
data (dict) – A dictionary with keys as the atmospheric point keys and values.
unique (bool, optional) – If True, non-unique keys will throw an error. Default is True.
- Returns:
dict – A dictionary of atmospheric keys and corresponding data. The keys are the atmospheric point keys and the values are the corresponding data.
- Return type: