hitran2arts
- pyarts.cat.cia.hitran2arts(path)[source]
Reads all Hitran .cia files in a folder and tries to convert them to Arts format
When the Hitran file data contains two datasets and one data set has a pure subset of the frequency grid of the other, these datasets are merged with the missing data set to zero. A print() expression is called informing that this has happened, starting with the words “Merge by extending zeros” and finishing with a copy of the two datasets’ names/headers
When the Hitran file data contains two data sets that clearly overlap but where one data set is not a complete subset of the other, a new frequency grid as the combination of these two datasets’ grids is formed. The two sets of data are then interpolated onto the new frequency grid by linear means. Extrapolation is not allowed so any data outside of the range of the old frequency grid is set to zero. A print() expression is called informing that this has happened, starting with the words “Merge by interpolation and zero extension” and finishing with a copy of the two datasets’ names/headers
If the Hitran data contains negative values, these are set to zero. print() informs how many negative values are removed.
If generating the CIARecord fails, a warning about this is printed.
- Parameters:
path (Path line) – A path to a folder with Hitran cia data
- Returns:
aoc – A list of all CIARecord that could be generated
- Return type: