mwvgroup / Pitt-Google-Broker

A Google Cloud-based alert broker for LSST and ZTF
https://pitt-broker.readthedocs.io/en/latest/index.html
4 stars 0 forks source link

Calculate DIA Object statistics #102

Open troyraen opened 3 years ago

troyraen commented 3 years ago

We should calculate some statistics on DIA "objects", store them in a BigQuery table, and incorporate them into the pipeline.

Here are some thoughts:

Columns to calculate

Need to think about when/how to update it.

Incorporate into pipeline

Other Brokers:

Most (all?) do this in a similar way. Here is an example from Lasair:

The objects table contains metadata for groups of candidates with the same object identification number, assigned by ZTF to all candidates whose positions agree within 1farcs5. This metadata includes minimum, maximum and average magnitudes, earliest and latest dates of detection, and mean coordinates. We create an object when there are three or more candidate detections, in order to remove moving objects and reduce bogus detections. Therefore all the ZTF object metadata is stored in the objects table only if there are three or more detections within 1farcs5.

troyraen commented 2 years ago

Note that BigTable may be better suited to this. It may provide a more efficient means to both update the data on an ongoing basis and to query it on a per-alert basis for cross-matching. This table could also store cross match and classification data for the object. BigTable is good for very wide tables with groups of columns (e.g., for a single cross match) structured in different ways.