desihub / desimeter

DESI coordinates and transformations
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

checks for consistency of online vs desimeter petal alignments #100

Open joesilber opened 4 years ago

joesilber commented 4 years ago

I think there may be places in desimeter where we should add checks that the current petal-alignments.yaml matches whatever was in the online constants DB at the time of the measurement.

For example when we are doing best fits to discover OFFSET_X, OFFSET_Y based on historical data, then this may be important.

I think the simplest and cleanest test is:

  1. Get OBS_X, OBS_Y and PTL_X, PTL_Y from the online DB. Here the PTL values were generated in the online system by applying the Constants DB transformation params to OBS.

  2. Use desimeter / petal-alignments.yaml to do the analagous conversion into PTL. (Note OBS == what desimeter calls X_FP, Y_FP.)

  3. Check that PTL values from (1) and (2) should exactly match.

This comes out of a comment thread in https://github.com/desihub/desimeter/pull/98#issuecomment-646224141.