BHTOM-Team / bhtom2

7 stars 2 forks source link

CPCS data product should allow for editing the ZP, best filter, mag, scatter and change ReducedDatum #157

Open wyrzykow opened 5 months ago

wyrzykow commented 5 months ago

I first tried it in the admin panel, but couldn't quickly find this data product calibration result: https://bh-tom2.astrolabs.pl/dataproducts/data/169098/ (the ids are completely not matching) -> admin panel should allow querying on id, or file, or telescope. Search box does not find anything!

But we should also have such a possibility in BHTOM - when studying CPCS results in dataproducts, we should store all CPCS results (entire Hash, ie. all catalogs, all ZP, scatter, Npoints). We should allow changing the best filter - it will then change ZP and sigma, and hence it should be saved in ALL corresponding ReducedDatums.

In the MegaCPCS DB setup : I assume we store instrumental mags and the corresponding results of the calibrations (just the best one is enough). Then, we can modify in the DB the ZP, scatter and best filter, therefore there should be an update of all light curves using that array of stars -> CPCS Broker will read the light curve again and will notice a difference and update the ReducedDatums in BHTOM per target.

majkelx commented 5 months ago

Pls. One task - one issue. Partially resloved in #158

wyrzykow commented 2 months ago

ok, thanks, Mikolaj.

What is left - we need to be able to re-calibrate a single datapoint, e.g. outlier. How to change matched filter? For example, a datapoint was matched to GaiaSP/r, but we want GaiaSP/R with its zeropoint and error-bar.