-
Notifications
You must be signed in to change notification settings - Fork 12
Description
If I run the SN notebook:
https://github.com/alercebroker/usecases/blob/master/notebooks/ALeRCE_ZTF_SupernovaUseCase.ipynb
But change the date in the query in cell 12 to look for sn at least 70 days after first light to the last 100 days it returns no objects.
What am I doing wrong?
Many thanks,
Raphael.
(postdoc at IAC)
query='''
select probabilities.oid, probabilities.other_prob, objects.meanra,
objects.meandec, objects.nobs, objects.mean_magpsf_g, objects.mean_magpsf_r,
objects.min_magpsf_g, objects.min_magpsf_r, objects.classxmatch, objects.firstMJD
from probabilities
inner join objects
on probabilities.oid=objects.oid
where probabilities.sne_prob>0.7 and objects.classxmatch=%s
and objects.firstMJD > %s
''' % (classmapper["SNe"], 58744. - 100.)
SNe = pd.read_sql_query(query, conn)
SNe.set_index('oid', inplace=True)
SNe.head()