tardis.visualization.sdec.util module

tardis.visualization.sdec.util.calculate_absorption_luminosities(sim, packets_mode, packet_wvl_range, species_list=None, distance=None)[source]

Calculate luminosities for the absorption part of SDEC plot.

Parameters:
packets_mode{‘virtual’, ‘real’}

Mode of packets to be considered, either real or virtual

packet_wvl_rangeastropy.Quantity

Wavelength range to restrict the analysis of escaped packets. It should be a quantity having units of Angstrom, containing two values - lower lambda and upper lambda i.e. [lower_lambda, upper_lambda] * u.AA

Returns:
pd.DataFrame

Dataframe containing luminosities contributed by absorption with each element present

tardis.visualization.sdec.util.calculate_emission_luminosities(sim, packets_mode, packet_wvl_range, species_list=None, distance=None)[source]

Calculate luminosities for the emission part of SDEC plot.

Parameters:
simtardis.simulation.Simulation

TARDIS Simulation object produced by running a simulation

packets_mode{‘virtual’, ‘real’}

Mode of packets to be considered, either real or virtual

packet_wvl_rangeastropy.Quantity

Wavelength range to restrict the analysis of escaped packets. It should be a quantity having units of Angstrom, containing two values - lower lambda and upper lambda i.e. [lower_lambda, upper_lambda] * u.AA

Returns:
luminosities_dfpd.DataFrame

Dataframe containing luminosities contributed by no interaction, only e-scattering and emission with each element present

elements_present: np.array

Atomic numbers of the elements with which packets of specified wavelength range interacted