tardis.io.model.artis.data module

class tardis.io.model.artis.data.ArtisData(time_of_model: ~astropy.units.quantity.Quantity, velocity: ~astropy.units.quantity.Quantity, mean_density: ~astropy.units.quantity.Quantity, mass_fractions: ~pandas.DataFrame = <factory>, isotope_mass_fractions: ~pandas.DataFrame = <factory>)[source]

Bases: object

Data structure for ARTIS model data.

Parameters:
time_of_modelastropy.units.Quantity

Time at which the ARTIS model is valid.

velocityastropy.units.Quantity

Velocity boundaries for the model shells.

mean_densityastropy.units.Quantity

Mean density for each model shell.

mass_fractionspandas.DataFrame, optional

Elemental mass fractions indexed by atomic number.

isotope_mass_fractionspandas.DataFrame, optional

Isotopic mass fractions indexed by atomic and mass number.

isotope_mass_fractions: DataFrame
mass_fractions: DataFrame
mean_density: Quantity
time_of_model: Quantity
to_geometry() HomologousRadial1DGeometry[source]

Construct a homologous radial geometry from this ARTIS data.

time_of_model is used as time_explosion.

Returns:
tardis.model.geometry.radial1d_homologous.HomologousRadial1DGeometry

The geometry object constructed from the ARTIS data.

to_nonhomologous_geometry() Radial1DGeometry[source]

Construct a nonhomologous radial geometry from this ARTIS data.

time_of_model is used to construct the radius boundaries.

Returns:
tardis.model.geometry.radial1d.Radial1DGeometry

The geometry object constructed from the ARTIS data.

velocity: Quantity