hi, i was trying to make residual plots, i had just started working in the jupiter aspect. is there a way to access only type Ia supernovae data(redshift, max flux/magnitude) from the DP0.2 catalogue?
Hi @akshita.goyal,
The TruthSummary table has a truth_type
parameter that is 3 for Type Ia supernovae, and that table contains the true redshift
as well. See tutorial notebook 08_Truth_Tables.ipynb for a demonstration of how to access the DC2 simulation truth tables from the Dark Energy Science Collaboration.
Then, for detections and measurements of any and all transient sources detected in the difference images (stars and supernovae), use the DiaObject, DiaSource, and ForcedSourceOnDiaObject tables, described in the catalog data products documentation. Use of the DiaObject and DiaSource is demonstrated in tutorial notebook 07a_DiaObject_Samples.ipynb, with use of ForcedSourceOnDiaObject to be added soon.
thank you for the detailed solution
thank you again for the help, i had a further doubt, sorry for bothering you again,
when trying to seperate SN1a, from truth summary table i got 445209 results, and from diaobject i got 70976 results, so how do i allocate redshift and flux/magnitude corresponding to each SN1a, as i want magnitude vs redshift of all the SN1a (not evolution of one SN1a), on a single plot.
plus no SN1a id from truth summary table or matches truth table is present in any of the DiaObject, DiaSource, and ForcedSourceOnDiaObject tables , am i doing something wrong?
Hi @akshita.goyal,
Apologies for missing this. Thanks to @ktl for bringing this to my attention.
You are right that the true SNIa in the DP0.2 truth tables are not matched to the detections of SNIa as diaObjects. You are also right that there will be many more true SNIa than detected SNIa for DP0.2.
There is not a formal DP0.2 tutorial notebook that demonstrates how to cross-match between the truth tables and the diaObject table, but this user-contributed notebook does go through the steps.
Thanks again for using the Forum. Please don’t hesitate to open a new topic for new questions at any time.