cassis_lte_python.database.species#

Classes#

Functions#

get_species_thresholds(sp_threshold_infos[, ...])

Determine thresholds for the species to be modeled or plotted.

get_partition_function(tag[, db, temp])

get_partition_function_tex(tref, qlog, temp[, tag])

Interpolate the partition function at the desired temp, if temp is w/i the min/max of the database values.

get_species_info(tag[, database])

Module Contents#

class cassis_lte_python.database.species.Species(tag, ntot=700000000000000.0, tex=100.0, fwhm=None, component=None)#
pf#
as_json()#
property id#
property name#
property database#
property tag#
property ntot#
property tex#
property fwhm#
property parameters#
set_component(comp_name)#
get_partition_function(tex)#
cassis_lte_python.database.species.get_species_thresholds(sp_threshold_infos: list | dict | str | os.PathLike, select_species=None, return_list_sp=False)#

Determine thresholds for the species to be modeled or plotted.

Parameters:
  • sp_threshold_infos

    can either be :

    • a list : thresholds will be the default ones

    • a dictionary : the list of species is extracted and the thresholds completed with default values if needed

    • a path : the list of species and their thresholds are read from a file

  • select_species – a subset of species for which the thresholds are wanted

  • return_list_sp – return the list of species as well as the thresholds

Returns:

cassis_lte_python.database.species.get_partition_function(tag, db=None, temp=None)#
cassis_lte_python.database.species.get_partition_function_tex(tref, qlog, temp, tag='')#

Interpolate the partition function at the desired temp, if temp is w/i the min/max of the database values. Interpolation is done on a log-log scale.

Parameters:
  • tref – database values for the temperature

  • qlog – log10 of the partition function for the values in tref

  • temp – temperature at which the partition function is desired

  • tag – tag of the species

Returns:

interpolated partition function at temp

cassis_lte_python.database.species.get_species_info(tag: str, database=None)#