trackDoppler 697 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_hi.freq_hi), default=track_hi.freq_hi, type=float)
12

13
    args = parser.parse_args()
14

15
16
17
    dt = telescope()
    lo = LocalOscillator()
    track_doppler.track_frequency(dt, lo, tracking_frequency=args.frequency)
18
19
20

if __name__ == '__main__':
    main()