tardis.io.model.readers.artis module¶
- tardis.io.model.readers.artis.read_artis_density(fname)[source]¶
Reading a density file of the following structure (example; lines starting with a hash will be ignored): The first density describes the mean density in the center of the model and is not used. 5 #index velocity [km/s] log10(density) [log10(g/cm^3)] 0 1.1e4 1.6e8 1 1.2e4 1.7e8
- Parameters:
- fnamestr
filename or path with filename
- Returns:
- time_of_modelastropy.units.Quantity
time at which the model is valid
- datapandas.DataFrame
data frame containing index, velocity (in km/s) and density