snobject – class deal with one single object¶
|
snobject: define snobject for one SN, handle its data and fittings. |
Below provide various of functions for snobject:
General
|
initialize snelist |
Static version info |
|
different url origins for the Open Astronomical Catalog (OAC) catalog |
|
keys to query LCs from OAC catalog, if value True, key mush be included by transient, otherwise, could be empty. |
|
keys to query spectra from OAC catalog |
|
|
Define a proper way to read and update optional parameters |
|
Running a lot of actions for one SN, according to default settings. |
Lightcurves:
|
handle SN coordinate |
|
Get current juliand date via astropy.time |
|
Qeury ATLAS forced photometry, see https://fallingstar-data.com/forcedphot/static/apiexample.py. |
|
Qeury ZTF forced photometry, see documentation: https://irsa.ipac.caltech.edu/data/ZTF/docs/forcedphot.pdf, and the web query: https://ztfweb.ipac.caltech.edu/cgi-bin/requestForcedPhotometry.cgi. |
|
Qeury ZTF alert photometry via ztfquery, see https://github.com/MickaelRigault/ztfquery. |
|
Query OAC data, via OACAPI (https://github.com/astrocatalogs/OACAPI) |
|
Parse and add local ZTF alert photometic data to |
|
Parse and add local ZTF forced photometic data to |
|
Parse and add local ATLAS forced (binned or not binned) photometric data to |
|
Parse and add local Open Astronomical Catalog data to |
|
Parse and add user defined photometric data to |
|
Bin multiband LCs. |
|
Removes outlier data points using GP interpolation. |
|
Cut LC if it's too long. |
|
Correct baseline for ZTF, when targets was covered by multiple CCDs. |
|
Calculate ZTF forced photometry baseline from different fields with different filters. |
|
Run astrorapid codes (a Deep learning classifier to distiinguish LCs between different SNe type) on |
|
(static) Make astrorapid plot. |
|
How many epochs of photometry in each band. |
|
How many color epochs. |
|
How accurate a peak can be determined, i.e. how many photometric points available within a range to the peak. |
|
How many early datapoints for power law fittings (ask texp and fpeak available). |
Spectra:
|
Qeury ZTF spectra via ztfquery, see https://github.com/MickaelRigault/ztfquery. |
|
Parse amd add local ZTF fritz/marshal spectra to |
|
Parse and add user defined photometric data to |
SED ann bolometric LCs:
|
Estimate the distance module errors, including errors from milky ebv, redshift and hubble constants. |
|
Read colour templates. |
|
Estimate host ebv with color comparison approach. |
|
Calculate colors for two bands. |
|
Calculate bolometric LC from colours, with Lyman bolometric correction. |
|
Match or interpolate multiple band LCs, for blackbody (BB) construction. |
|
Calculate bolometric LCs with diluted blackbody fits (that were fitted with the |
|
Convert magnitude to luminosity. |
|
Absolute calibrate or mangle the spetrum |
Fittings:
|
Run Gaussian Process interpolation via george package on multiband lightcurves, i.e. |
|
Run model fittings on varies of data from different engines. |
|
Set peak time and fluxes with GP interpolation. |
|
Set peak time and fluxes with bolometric LC fittings. |
Set peak time and fluxes with multiband LC fittings. |
|
|
Return peak velocity from models with |
|
Set the explosion epoch with |
|
Set the explosion epoch with |
|
Set the explosion epoch with the first detection and the last non-detection of |
|
Estimate flux at a given epoch. |
|
Estimate fluxes for a list of epochs. |
|
Estimate apparent magnitude at a given epoch. |
|
Estimate apparent magnitudes from a list of epochs. |
|
Estimate absolute magnitude at a given epoch. |
|
Estimate absolute magnitudes from a list of phases. |
|
Estimate colour at a given phase. |
|
Estimate the magnitude different of two phases on a given filter. |
Show all fittings done so far. |
|
|
Get model with specific model name, and/or engine name, and/or source name. |
|
Get specific parameter value and error, of a fitted model. |
Plots:
|
Show a summarize plot, including flux/mag/bolometric LCs, colour curve and the spectra. |
|
Flux LC plot. |
|
Spectra plot. |
|
Magnitude LC plot. |
|
Colour curve plot. |
|
luminosity LCs plot |
|
show constructed SED of specific epochs |
|
show spectral velocity evolution. |
|
Make contour plots for model samplings. |
|
Save snobject.fig to data directory. |
|
Show the stored figure, that was saved by the snobject.savefig. |
Others
|
Add a lightcurve into self.lc, with a given source name |
|
add flux and eflux column, based on mag, emag, and/or limmag column. |
|
(static) add flux and eflux column, based on mag, emag, and/or limmag column. |
|
add mag and/or limmag/emag column, based on flux, eflux column. |
|
(static) add mag and/or limmag/emag column, based on flux, eflux column. |
|
Convert from magnitude to fluxes. |
|
Converts from fluxes into magnitudes. |
|
Bin ATLAS forced photometry with Dave's code, https://gist.github.com/thespacedoctor/86777fa5a9567b7939e8d84fd8cf6a76 |
|
(static) parse local ATLAS forced (binned or not binned) photometric data to |
(static) make url to query OAC |
|
|
Get specific parameter value and error, of a fitted model. |
|
Synthetic magnitudes with filter transmission curves. |
|
Match colors. |
|
Bin and combine observations from common epoch. |
|
Bin dataframe. |
|
Merge dataframes |
|
Read default parameters. |
|
Print HAFFET Logo. |
|
Check HAFFET data directory, if any folders or files missing, will copy into the data directory. |
There’re some other functions used by the snobject:
|
Read default parameters from a file. |
|
get keypairs that would be used by online services, e.g. |
|
get default parameters for each SN |
|
Fits data with gaussian process. |
get all possible engines of HAFFET |
|
|
get all possible models of a given engine |
|
get parameter of a given model |
|
Fits data with analytic models. |
|
Handle spectra for one SN |
|
Handle one single spectrum |
|
Make finder by downloading images from online archive, e.g. |