sot / kadi

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

Make kadi events complete from start of mission #200

Closed taldcroft closed 3 years ago

taldcroft commented 3 years ago

Description

This makes event processing robust to getting no applicable telemetry or events, thus allowing the start of the event database build process to be set to an early date like 1999:001.

The events3.db3 database was rebuilt from scratch on kady using the updated NOTES.build instructions.

With the merging of this the new events file will be copied to flight.

Testing

Functional testing

Used the validate/write_events_cmds.py script to write ECSV text files for each event type corresponding to two date ranges:

ska3-kady$ diff -r -q flight new  # 1999:240 to 2021:070
Files flight/orbits.ecsv and new/orbits.ecsv differ   # OK: some few seconds diffs
Files flight/pass_plans.ecsv and new/pass_plans.ecsv differ  # OK, few changes in BOT/EOT like 0345 -> 345
Files flight/rad_zones.ecsv and new/rad_zones.ecsv differ # OK, few seconds diffs
Files flight/safe_suns.ecsv and new/safe_suns.ecsv differ  # OK, float format issues (e.g. 1.0000004 -> 0.9999996)
Files flight/scs107s.ecsv and new/scs107s.ecsv differ  # OK, float format issues

Inspection of the files for the 1999:001 - 1999:240 exports show the expected new values