rubyvanrooyen / xsats

Alert broker to dentify upcoming x-ray targets with SALT annulus overlap windows
GNU General Public License v3.0
0 stars 0 forks source link

JSON output for SALT vs GTI #5

Open rubyvanrooyen opened 3 years ago

rubyvanrooyen commented 3 years ago

Determine SALT visibility windows overlap with RXTE Good Time Intervals (GTI) for a target

Reads to SALT visibility file that was created in the previous step, as well as the satellite targets. It uses minimum overlap duration requested by the user as an evaluator to find suitable targets. Currently another file is created, but this overlap_start and overlap_end ( + duration) information can be returned to the broker script to be added to the per target JSON

rubyvanrooyen commented 3 years ago

Relates to issue #3

rubyvanrooyen commented 3 years ago

Okay seems the GTIvsSALT.py script outputs both SALT window (SALTstart and SALTend) times, as well as general target overlap time (GTIstart and GTIend)

rubyvanrooyen commented 3 years ago

Per target output for GTIvsSALT.py routine to determine overlaps

print(f'Target: {SALTtarget.replace('_',' ')}')
print(f'Start (UT): {obsstart} '\t' '\t' 'End (UT): {obsend} \t Overlap: {overlaplength}')
print(f'SALT window: \t \t {SALTstart} \t {SALTend}')
print(f'{satellite}  interval: \t {GTIstart} \t {GTIend}')