tardis.io.model.readers.blondin_toymodel module¶
- tardis.io.model.readers.blondin_toymodel.convert_blondin_toymodel(in_fname, out_fname, v_inner, v_outer, conversion_t_electron_rad=None)[source]¶
- Parameters:
- in_fnamestr
input toymodel file
- out_fnamestr
output csvy file
- conversion_t_electron_radfloat or None
multiplicative conversion factor from t_electron to t_rad. if
None
t_rad is not calculated- v_innerfloat or astropy.unit.Quantity
inner boundary velocity. If float will be interpreted as km/s
- v_outerfloat or astropy.unit.Quantity
outer boundary velocity. If float will be interpreted as km/s
- tardis.io.model.readers.blondin_toymodel.read_blondin_toymodel(fname)[source]¶
Reading the Blondin toy-model format and returns a dictionary and a dataframe
- Parameters:
- fnamestr
path or filename to blondin toymodel
- Returns:
- blondin_dictdict
dictionary containing most of the meta data of the model
- blondin_csvpandas.DataFrame
DataFrame containing the csv part of the toymodel