sdapy.snerun.snobject.__init__

snobject.__init__(objid, errors='ignore', aliasid=None, z=None, ra=None, dec=None, mkwebv=None, hostebv=None, sntype=None, dm=None, jdpeak=None, fig=None, ax=None, ax1=None, ax2=None, ax3=None, ax4=None, ax5=None, updatepar=False, **kwargs)

initialize snelist

Parameters
objidstr

object ID string

errorsstr

Control raising of exceptions on invalid data for provided dtype.

  • raise : allow exceptions to be raised

  • ignore : suppress exceptions. On error return original object

  • warning : suppress exceptions. On error print it as warning

aliasidstr

other name of object

zfloat

redshift

rastr

R.A. in hh:mm:ss

decstr

Dec. in dd:mm:dd

mkwebvfloat

milky way extinction, E(B-V)

hostebvfloat

host galaxy extinction, E(B-V)

sntypestr

transient/supernova type

dmfloat

distance module

jdpeakfloat

julian date of peak epoch

figmatplotlib.subplot

for figures

axmatplotlib.axes

for flux lightcurve plot

ax1matplotlib.axes

for spectra plot

ax2matplotlib.axes

for magnitude lightcurve plot

ax3matplotlib.axes

for colour plot

ax4matplotlib.axes

for luminosoty plot

ax4matplotlib.axes

for SED plot

updateparbool

if update parameter, when reading them

kwargsKeyword Arguments

see https://github.com/saberyoung/HAFFET/blob/master/sdapy/data/default_par.txt, snobject part

Notes

Using sdapy instead of haffet

Examples

>>> from sdapy import snerun
>>> a = snerun.snobject('sss')
>>> a
<sdapy.snerun.snobject object at 0x7fa4c8284780>