Skip to content

Python implementation of SSA model from Soderberg et al. 2005

Notifications You must be signed in to change notification settings

arvindb95/PySSA

Repository files navigation

PySSA

Python implementation of the Sychrotron Self Absorbed (SSA) model from Soderberg et al. 2005

Usage

  • Use PySSA.py to generate an SSA lightcurve for your choice of parameters.
  • The plot_lc.py code allows you to make the lightcurve plot. Here the example shown is to reproduce figure 2 of the above paper.
  • The comprehensive_soderberg_data.csv file contains the relevant data from the above paper to plot the light curve for supernova 2003L.

Here is the output lightcurve. Compare this with Figure 2 of Soderberg et al. 2005

  • Use SSA_MCMC_fit.py to perform fit of the SSA model. MCMC_plotter.py helps to plot the corner plot and the walks (see the package ChainConsumer).
  • Use plot_lc_best_fit.py to plot the best fit returned by the SSA MCMC fitter. Also plot the error region for the best fit line.

Corner plot (top) and walks (bottom) obtained after SSA fit on the SN2003L data Soderberg et al. 2005

To do

  • Make calculations of integrals faster in PySSA.py
  • Add list of dependancies

About

Python implementation of SSA model from Soderberg et al. 2005

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages