sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

obsid set to 0 on day 296 #211

Closed jzuhone closed 2 years ago

jzuhone commented 2 years ago

Code for reproduction:

from kadi.events import obsids
o = obsids.filter(start="2021:296:00:00:00", stop="2021:297:00:00:00")
print(o)
<Obsid: start=2021:295:21:58:27.969 dur=25412 obsid=23657>
<Obsid: start=2021:296:05:01:59.771 dur=20393 obsid=26161>
<Obsid: start=2021:296:10:41:53.172 dur=141487 obsid=0>

I think that this may be related to the safing action that occurred around that time, since the duration is rather long.

jeanconn commented 2 years ago

It isn't actually "wrong"? So what answer do you expect?

taldcroft commented 2 years ago

Kadi events reflect the spacecraft status as found from telemetry. The IU reset made the obsid go to zero, so the event value is correct.

In [4]: dat = fetch.Msid('cobsrqid', '2021:296:10:41:00', '2021:296:10:42:00')                                             

In [5]: dat.vals                                                                                                           
Out[5]: 
array([26161., 26161., 26161., 26161., 26161., 26161., 26161., 26161.,
       26161., 26161., 26161., 26161., 26161., 26161., 26161., 26161.,
       26161., 26161., 26161., 26161., 26161., 26161., 26161., 26161.,
       26161., 26161.,     0.,     0.,     0.])

@jzuhone - closing now, but feel free to re-open if you are not convinced.