sot / proseco

Probabilistic star evaluation and catalog optimization
https://sot.github.io/proseco
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Included halfws may not line up with include ids #323

Closed jeanconn closed 4 years ago

jeanconn commented 4 years ago

In APR2720A in obsid 47250, the starcheck process passed these args to proseco for catalog review

{'att': array([ 0.37484371, -0.40057847, -0.79053942,  0.27216999]),
 'date': '2020:121:04:31:50.888',
 'detector': 'ACIS-S',
 'dither_acq': <ACABox y=20.00149630449384 z=20.00149630449384>,
 'dither_guide': <ACABox y=20.00149630449384 z=20.00149630449384>,
 'focus_offset': 0,
 'include_halfws_acq': [140, 160, 160, 160, 160, 160, 160, 160],
 'include_ids_acq': [810423632,
  810428640,
  812125920,
  812130960,
  812131816,
  886441184,
  810427792,
  810428880],
 'man_angle': 91.51488826,
 'n_acq': 8,
 'n_fid': 0,
 'n_guide': 0,
 'obsid': 0,
 'sim_offset': 0,
 't_ccd_acq': -10.636981637514856,
 't_ccd_guide': -10.636981637514856}

Halfw 140 is supposed to be associated with 810423632, but ends up on 810427792

In [15]: aca
Out[15]: 
<ACATable length=8>
 slot  idx      id    type  sz   p_acq  ...   yang     zang    dim   res  halfw
int64 int64   int32   str3 str3 float64 ... float64  float64  int64 int64 int64
----- ----- --------- ---- ---- ------- ... -------- -------- ----- ----- -----
    0     1 810423632  ACQ  8x8   0.000 ...  1325.38  2403.91    20     1   160
    1     2 810427792  ACQ  8x8   0.979 ...  -715.07  2085.91    20     1   140
    2     3 812131816  ACQ  8x8   0.981 ...  1363.16 -1859.97    20     1   160
    3     4 886441184  ACQ  8x8   0.981 ... -2093.64   162.33    20     1   160
    4     5 812125920  ACQ  8x8   0.970 ...   362.73 -2371.63    20     1   160
    5     6 810428880  ACQ  8x8   0.955 ...   888.47   922.52    20     1   160
    6     7 812130960  ACQ  8x8   0.953 ...  1219.38   161.94    20     1   160
    7     8 810428640  ACQ  8x8   0.951 ...    91.02   865.90    20     1   160

This is more a problem for starcheck than operations.