snelist – class deal with a list of objects¶
|
snelist: define a list of snobject, handle their data and fittings, aimed for a population study |
Below provide various of functions for snelist:
General
|
initialize snelist |
Static version info |
|
parameter list |
|
|
Define a proper way to read and update optional parameters |
|
get a list of SNe, for each SN, define a dedicated snobject, and run snobject.run() for all of them. |
Meta and cache
|
Read a meta table from local |
|
Obtain value with object ID and a meta key |
|
properly read a list of meta infomations from self.meta, i.e. coordinates self.ra, self.dec, redshift self.z, distance self.dist, distance module self.dm, mkily way extinction self.mkwebv, host galaxy extinction self.hostebv, type self.sntype and peak time self.jdpeak. |
|
Besides the general parameter settings, for SNe with peculiar properties, a specific parameter is sometimes needed, and parse_params can read a text file (individual_par.txt) that includes all special settings for particular SNe. |
|
for each object, load their snobject classes if they're cached before. |
|
for each object, save their snobject classes to local cached files. |
Plots and tables
|
add a data subset, and corresponding plotting kwargs |
|
add a parameter |
|
create a latex table for a subset of SNe |
|
get parameter of one SN |
|
make parameter into latex format |
|
1D histograms plot for one parameter |
|
2D scatter plot for two parameter |
|
contour plots for the bestfit value of all parameters |
|
create 2 subplots as histograms for the scatter plots |
|
make histograms |
|
make flux plot for a large set of SNe |
|
make mag plot for a large set of SNe |
|
make colour plot for a large set of SNe |
|
make bolometric lc plot for a large set of SNe |