Skip to content

Number of objects #3

@raphaelshirley

Description

@raphaelshirley

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions