trackDoppler 848 Bytes
Newer Older
1
2
3
4
#!/usr/bin/env python

import astropy.units as u
import argparse
5
import track_doppler
6
7
from telescope import telescope
from camrasdevices import LocalOscillator
8
9

def main():
10
    parser = argparse.ArgumentParser(description = "Adjust the frequency of the local oscillator to Doppler track a frequency at the pointing of the telescope")
11
    parser.add_argument("-f", "--frequency", help="Frequency to track, default is HI frequency at {}".format(track_doppler.freq_hi), default=track_doppler.freq_hi, type=float)
12
    parser.add_argument("-u", "--updaterate", help="Update rate in seconds, default is 0.5", type=float, default=0.5)
13

14
    args = parser.parse_args()
15

16
17
    dt = telescope()
    lo = LocalOscillator()
18
    track_doppler.track_doppler(dt, lo, tracking_frequency=args.frequency, timeout=args.updaterate)
19
20
21

if __name__ == '__main__':
    main()