Loader
Parse FRECKLL input file.
ace_equil_chemistry_loader(*, species, temperature, pressure, therm_file=None, elements=('H', 'He', 'C', 'N', 'O'), abundances=(12, 10.93, 8.39, 7.86, 8.73), **kwargs)
¶
Loads and runs the ACE chemistry model.
Source code in src/freckll/io/loader.py
default_full_network_loader()
¶
Load the default full network.
Source code in src/freckll/io/loader.py
default_network_loader(network)
¶
Load the default network.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
network
|
Networks
|
The network to load. Can be "venot-methanol-2020" or "venot-methanol-2020-reduced". |
required |
Returns:
Type | Description |
---|---|
VenotChemicalNetwork
|
The loaded network. |
Source code in src/freckll/io/loader.py
default_photonetwork_loader(species_list)
¶
Load the default photo network.
Source code in src/freckll/io/loader.py
default_reduced_network_loader()
¶
Load the default reduced network.
Source code in src/freckll/io/loader.py
default_stellar_spectra_loader(star)
¶
Load the default stellar spectra.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
star
|
Stars
|
The star to load. Can be "55cnc", "adleo", "gj436", "gj3470", "hd128167", "hd189733", "hd209458", "sun", "wasp12", "wasp39", "wasp43". |
required |
Returns:
Type | Description |
---|---|
StarSpectra
|
The loaded stellar spectra. |
Source code in src/freckll/io/loader.py
generic_csv_loader(filename, columns, column_units, skiprows=0, delimiter=None, comments=None)
¶
Load a csv file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename
|
PathLike
|
Path to the csv file. |
required |
columns
|
list[int]
|
List of columns to load. 0 being first |
required |
column_units
|
list[Unit | None]
|
List of units for each column. |
required |
skiprows
|
Optional[int]
|
Number of rows to skip at the beginning of the file. |
0
|
delimiter
|
Optional[str]
|
Delimiter used in the file. |
None
|
comments
|
Optional[str]
|
Comment character in the file. |
None
|
Returns: Tuple of quantities for each column.
Source code in src/freckll/io/loader.py
kzz_profile_loader(*, filename, kzz_column, pressure_column, kzz_unit, pressure_unit, skiprows=0, delimiter=None, comments=None, start='bottom')
¶
Load a kzz profile from a csv file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename
|
PathLike
|
Path to the csv file. |
required |
kzz_column
|
int
|
Column index for kzz. 0 being first |
required |
pressure_column
|
int
|
Column index for pressure. 0 being first |
required |
kzz_unit
|
Unit
|
Unit for kzz. |
required |
skiprows
|
Optional[int]
|
Number of rows to skip at the beginning of the file. |
0
|
delimiter
|
Optional[str]
|
Delimiter used in the file. |
None
|
comments
|
Optional[str]
|
Comment character in the file. |
None
|
Returns: Tuple of kzz and pressure quantities.
Source code in src/freckll/io/loader.py
star_spectra_loader(*, filename, flux_column, spectral_column, flux_unit, spectral_unit, reference_distance, skiprows=0, delimiter=None, comments=None)
¶
Load a kzz profile from a csv file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename
|
PathLike
|
Path to the csv file. |
required |
flux_column
|
int
|
Column index for flux. 0 being first |
required |
spectral_column
|
int
|
Column index for spectral. 0 being first |
required |
flux_unit
|
Unit
|
Unit for flux. |
required |
spectral_unit
|
Unit
|
Unit for spectral. |
required |
reference_distance
|
Quantity
|
Reference distance for the flux. |
required |
skiprows
|
Optional[int]
|
Number of rows to skip at the beginning of the file. |
0
|
delimiter
|
Optional[str]
|
Delimiter used in the file. |
None
|
comments
|
Optional[str]
|
Comment character in the file. |
None
|
Returns: Tuple of kzz and pressure quantities.
Source code in src/freckll/io/loader.py
tp_profile_loader(*, filename, temperature_column, pressure_column, temperature_unit, pressure_unit, skiprows=0, delimiter=None, comments=None, start='bottom')
¶
Load a temperature-pressure profile from a csv file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename
|
PathLike
|
Path to the csv file. |
required |
temperature_column
|
int
|
Column index for temperature. 0 being first |
required |
pressure_column
|
int
|
Column index for pressure. 0 being first |
required |
temperature_unit
|
Unit
|
Unit for temperature. |
required |
skiprows
|
Optional[int]
|
Number of rows to skip at the beginning of the file. |
0
|
delimiter
|
Optional[str]
|
Delimiter used in the file. |
None
|
comments
|
Optional[str]
|
Comment character in the file. |
None
|
start
|
Literal['top', 'bottom']
|
Whether the profile starts at the top or bottom of the atmosphere. |
'bottom'
|
Returns: Tuple of temperature and pressure quantities.