tardis.io.model.readers.base module

tardis.io.model.readers.base.read_abundances_file(abundance_filename, abundance_filetype, inner_boundary_index=None, outer_boundary_index=None)[source]

read different density file formats

Parameters
abundance_filenamestr

filename or path of the density file

abundance_filetypestr

type of the density file

inner_boundary_indexint

index of the inner shell, default None

outer_boundary_indexint

index of the outer shell, default None

tardis.io.model.readers.base.read_density_file(filename, filetype)[source]

read different density file formats

Parameters
filenamestr

filename or path of the density file

filetypestr

type of the density file

Returns
time_of_modelastropy.units.Quantity

time at which the model is valid

velocitynp.ndarray

the array containing the velocities

unscaled_mean_densitiesnp.ndarray

the array containing the densities