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

import astropy.units as u
import argparse
5
import track_doppler
6
7

def main():
8
    parser = argparse.ArgumentParser(description = "Adjust the frequency of the local oscillator to Doppler track a frequency at the pointing of the telescope")
9
    parser.add_argument("-d", "--doppler-executable", help="Executable for computing the Doppler correction", default="/home/harm/bin/doppler_mb")
10
    parser.add_argument("-f", "--frequency", help="Frequency to track, default is HI frequency at {}".format(track_hi.freq_hi), default=track_hi.freq_hi, type=float)
11

12
    args = parser.parse_args()
13

14
    track_doppler.track_frequency(tracking_frequency=args.frequency, doppler_executable=args.doppler_executable)
15
16
17

if __name__ == '__main__':
    main()