c3-time-domain / SeeChange

A time-domain data reduction pipeline (e.g., for handling images->lightcurves) for surveys like DECam and LS4
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Replace capital letters with lower case #231

Closed guynir42 closed 3 months ago

guynir42 commented 3 months ago

This unifies all the config parameters to use only lower case and all the enums and bitflags to use lower case only.

An Object guarantees to be associated with all relevant data, including at most one Measurements object at each MJD.

The Associator's jobs are: 1) To disqualify an Measurements object that has too-high values in the disqualifier_scores dictionary. This is based on the configurable parameter disqualifier_thresholds. 2) To set the radius for associating different measurements with the same Object. This is set by the association_radius parameter. 3) To determine which Measurements object to use in case there are duplicates, with different Provenances, at the same coordinates and with the same MJD (i.e., coming from the same image). This is controlled by the prov_list parameter, but before using that, the Associator will try to match the upstream provenance of the Object to find the right Measurements object. If both these matches fail, will just choose the Measurements object with the most recently created Provenance.

Based on these parameters, and the chosen upstream provenance, we can create a provenance for the Object.

For each new Measurements object we check if there's an existing Object and if so, associate the new measurements to it.

If it does not exist, a new one is created.

In such a case, or in case of an existing object but with measurements that have higher MJD than the new measurements, we will search all measurements to find a complete list of measurements to associate with the Object, and use the earliest one to set the discovery_ra and discovery_dec.