trackHI 741 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import astropy.units as u
import argparse
import track_hi

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

    args = parser.parse_arguments()

    track_hi.track_frequency(tracking_frequency=args.frequency, doppler_executable=args.doppler_executable)

if __name__ == '__main__':
    main()