sdapy.snerun.snelist.add_parameter¶
- snelist.add_parameter(**kwargs)¶
add a parameter
- Parameters
- parnamestr
a parameter name from self.parlist
- filt1str
used when e.g. parname is mag, or color
- filt2str
used only when e.g. parname is color, together with filt1
- quantlist
used to get fitting samples, e.g. 5th to 95th percentiles as the error
- peakwithstr
how to decide the peak
- expwithstr
how to decide the explosion epoch
- phase1str
used when parname is detlam, together with phase2
- phase2str
used when parname is detlam, together with phase1
- interpolationstr
what interpolation to be used when e.g. calculate magnitudes, colours, etc
- corr_mkwstr
when calculating absulte mag, if correct milky way extinction if there’re any
- corr_hoststr
when calculating absulte mag, if correct host galaxy extinction if there’re any
- indexint
if there’re multple models can provide, e.g. the nickel mass mni, which one to use
- enginestr
which engine models to be used
- modelstr
which models to be used
- sourcestr
which source to be used
Examples
>>> from sdapy import snerun >>> a = snerun.snelist() >>> print (a.pars) [] # add r band magnitude at peak >>> a.add_parameter(parname='mag', filt1='r', phase1=0) # add g-r at 10 day past peak >>> a.add_parameter(parname='color', filt1='g', filt2='r', phase1=10) # add nickel mass from Arnett model fits >>> a.add_parameter(parname='mni', model='Arnett', quant=[.05,.5,.95]) >>> print (a.pars) [{'parname': 'mag', 'filt1': 'r', 'phase1': 0}, {'parname': 'color', 'filt1': 'g', 'filt2': 'r', 'phase1': 10}, {'parname': 'mni', 'model': 'Arnett', 'quant': [0.05, 0.5, 0.95]}]