if args == []: print 'Please specify a folder to store data.\n' print 'Run with the -h flag to see all options.\n' print 'Exiting.' exit() else: folder = args[0] # Set source to observe source = srt1.sources.set_object(opts.source) #source2 = srt2.sources.set_object('Sun') # Initialize the Signal Hound sh = SHManager.SHManager() sh.set_bw(opts.bw) sh.filename = '{0}/scan.txt'.format(folder) # Check if specified folder exists if not os.path.exists(folder): os.makedirs(folder) offsets = [0.1*i for i in range(-100, 101)] az1 = srt1.source_azel(source, srt1.site)[0] az2 = srt2.source_azel(source, srt2.site)[0] while (az1 > 0 - offsets[0]) and (az2 > 0 - offsets[0]): az1 = srt1.source_azel(source, srt1.site)[0] az2 = srt2.source_azel(source, srt2.site)[0] ps.az_scan_both(srt1, srt2, source, offsets, sh, folder, opts.inttime)
if args == []: print 'Please specify a folder to store data.\n' print 'Run with the -h flag to see all options.\n' print 'Exiting.' exit() else: folder = args[0] # Set source to observe source = srt1.sources.set_object(opts.source) #source2 = srt2.sources.set_object('Sun') # Initialize the Signal Hound sh = SHManager.SHManager() sh.set_bw(opts.bw) sh.filename = '{0}/scan.txt'.format(folder) # Check if specified folder exists if not os.path.exists(folder): os.makedirs(folder) offsets = [0.1 * i for i in range(-100, 101)] az1 = srt1.source_azel(source, srt1.site)[0] az2 = srt2.source_azel(source, srt2.site)[0] while (az1 > 0 - offsets[0]) and (az2 > 0 - offsets[0]): az1 = srt1.source_azel(source, srt1.site)[0] az2 = srt2.source_azel(source, srt2.site)[0] ps.az_scan_both(srt1, srt2, source, offsets, sh, folder, opts.inttime)
if args == []: print 'Please specify a folder to store data.\n' print 'Run with the -h flag to see all options.\n' print 'Exiting.' exit() else: folder = args[0] # Load the correct antenna control library if opts.antenna == 1: import SRT1_control_libV02 as SRT else: import SRT2_control_libV02 as SRT # Set source to observe source = SRT.set_object(opts.source) # Initialize the Signal Hound sh = SHManager.SHManager() sh.set_bw(opts.bw) # Check if specified folder exists if not os.path.exists(folder): os.makedirs(folder) # EL scan el_offsets = range(-10, 11) el_scan(SRT, source, el_offsets, sh, folder) # AZ scan az_offsets = range(-10, 11)