Example #1
0

# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--freq', type=float,
               help='Frequency to be set. default is %f.'%(freq))
p.add_argument('--unit', type=str,
               help='Unit of the freq. Select from %s. default is %s.'%(
                   str(unit_list), unit))

args = p.parse_args()

if args.freq is not None: freq = args.freq
if args.unit is not None: unit = args.unit


# Run Script
# ==========

import forest.script

script = forest.script.lo_freq_set()
script.run(freq, unit)



Example #2
0
p.add_argument('--Thot',
               type=float,
               help='Hot temperature in K. default is %.2f K.' % (Thot))
p.add_argument('--Tsys_min',
               type=float,
               help='Minimum Tsys value in color map. default is %.2f K.' %
               (tsys_min))
p.add_argument('--Tsys_max',
               type=float,
               help='Maximum Tsys value in color map. default is %.2f K.' %
               (tsys_max))
p.add_argument('--if_freq',
               type=float,
               help='IF freq. to be evaruated. default is %.2f GHz.' %
               (if_freq))

args = p.parse_args()
if args.step is not None: step = args.step
if args.Thot is not None: Thot = args.Thot
if args.Tsys_min is not None: tsys_min = args.Tsys_min
if args.Tsys_max is not None: tsys_max = args.Tsys_max
if args.if_freq is not None: if_freq = args.if_freq

# Run Script
# ==========

import forest.script

script = forest.script.rsky_with_sis_bias_sweep()
script.run(step, Thot, tsys_min, tsys_max, if_freq)
Example #3
0
# Default parameters
# ------------------

power = -130.0


# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--power', type=float,
               help='Output power to be set. default is %f.'%(power))

args = p.parse_args()

if args.power is not None: power = args.power


# Run Script
# ==========

import forest.script

script = forest.script.lo_power_set()
script.run(power)



Example #4
0
name = 'rxrot_move'

description = 'Move Rx rotator to target position.'

# Default parameters
# ------------------

target = 0.0  # deg

# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--target',
               type=float,
               help='Target to be moved. default is %.2f deg.' % (target))

args = p.parse_args()

if args.target is not None: target = args.target

# Run Script
# ==========

import forest.script

script = forest.script.rxrot_move()
script.run(target)
Example #5
0
p.add_argument('--beam',
               help='Beam number. Select from %s. default is %s.'%(
                   str(beam_list), beam))
p.add_argument('--pol', type=str,
               help='Polarization. Select from %s. default is %s.'%(
                   str(pol_list), pol))

args = p.parse_args()

if args.bias is not None: bias = args.bias
if args.beam is not None: beam = args.beam
if args.pol is not None: pol = args.pol


if beam == 'ALL': beam = None
else: beam = int(beam)

if pol == 'ALL': pol = None


# Run Script
# ==========

import forest.script

script = forest.script.lo_att_set()
script.run(bias, beam, pol)



Example #6
0
name = 'sis_tune'

description = 'Tuning SIS receivers.'

# Default parameters
# ------------------

name = '105'

# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('name',
               type=str,
               help='Name of tuning parameter set. default is %s.' % (name))

args = p.parse_args()

if args.name is not None: name = args.name

# Run Script
# ==========

import forest.script

script = forest.script.sis_tune()
script.run(name)
Example #7
0
p = argparse.ArgumentParser(description=description)
p.add_argument('--start', type=float,
               help='Start frequency in GHz. default is %.2f GHz.'%(start))
p.add_argument('--stop', type=float,
               help='Stop frequency in GHz. default is %.2f GHz.'%(stop))
p.add_argument('--resbw', type=float,
               help='Res. BW in MHz. default is %.2f MHz.'%(resbw))
p.add_argument('--average', type=float,
               help='Average num. default is %d.'%(average))
p.add_argument('--Thot', type=float,
               help='Hot temperature in K. default is %.2f K.'%(Thot))

args = p.parse_args()

if args.start is not None: start = args.start
if args.stop is not None: stop = args.stop
if args.resbw is not None: resbw = args.resbw
if args.average is not None: average = args.average
if args.Thot is not None: Thot = args.Thot


# Run Script
# ==========

import forest.script

script = forest.script.rsky_with_slider()
script.run(start, stop, resbw, average, Thot)


Example #8
0
               type=str,
               help='Polarization. Select from %s. default is %s.' %
               (str(pol_list), pol))
p.add_argument('--unit',
               type=str,
               help='Unit number. Select from %s. default is %s.' %
               (str(unit_list), unit))

args = p.parse_args()

if args.bias is not None: bias = args.bias
if args.beam is not None: beam = args.beam
if args.pol is not None: pol = args.pol
if args.unit is not None: unit = args.unit

if beam == 'ALL': beam = None
else: beam = int(beam)

if pol == 'ALL': pol = None

if unit == 'ALL': unit = None
else: unit = int(unit)

# Run Script
# ==========

import forest.script

script = forest.script.sis_bias_set()
script.run(bias, beam, pol, unit)
Example #9
0
p = argparse.ArgumentParser(description=description)
p.add_argument('--start', type=float,
               help='Sweep start Att level in mA. default is %.2f mA.'%(start))
p.add_argument('--stop', type=float,
               help='Sweep stop Att level in mA. default is %.2f mA.'%(stop))
p.add_argument('--step', type=float,
               help='Step of sweep Att level in mA. default is %.2f mA.'%(step))
p.add_argument('--Thot', type=float,
               help='Hot temperature in K. default is %.2f K.'%(Thot))
p.add_argument('--if_freq', type=float,
               help='IF freq. to be evaruated. default is %.2f GHz.'%(if_freq))

args = p.parse_args()

if args.start is not None: start = args.start
if args.stop is not None: stop = args.stop
if args.step is not None: step = args.step
if args.Thot is not None: Thot = args.Thot
if args.if_freq is not None: if_freq = args.if_freq


# Run Script
# ==========

import forest.script

script = forest.script.rsky_with_lo_att_sweep()
script.run(start, stop, step, Thot, if_freq)


Example #10
0
# Default parameters
# ------------------

path = ''


# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('path', type=str,
               help='Filepath to the .cnf file.')

args = p.parse_args()

if args.path is not None: path = args.path


# Run Script
# ==========

import forest.script

script = forest.script.sis_tune_temp()
script.run(path)


p = argparse.ArgumentParser(description=description)
p.add_argument('--step', type=float,
               help='Step of sweep interval in mV. default is %.2f mV.'%(step))
p.add_argument('--Thot', type=float,
               help='Hot temperature in K. default is %.2f K.'%(Thot))
p.add_argument('--Tsys_min', type=float,
               help='Minimum Tsys value in color map. default is %.2f K.'%(tsys_min))
p.add_argument('--Tsys_max', type=float,
               help='Maximum Tsys value in color map. default is %.2f K.'%(tsys_max))
p.add_argument('--if_freq', type=float,
               help='IF freq. to be evaruated. default is %.2f GHz.'%(if_freq))

args = p.parse_args()
if args.step is not None: step = args.step
if args.Thot is not None: Thot = args.Thot
if args.Tsys_min is not None: tsys_min = args.Tsys_min
if args.Tsys_max is not None: tsys_max = args.Tsys_max
if args.if_freq is not None: if_freq = args.if_freq


# Run Script
# ==========

import forest.script

script = forest.script.rsky_with_sis_bias_sweep()
script.run(step, Thot, tsys_min, tsys_max, if_freq)


Example #12
0
               help='Unit number. Select from %s. default is %s.'%(
                   str(unit_list), unit))

args = p.parse_args()

if args.bias is not None: bias = args.bias
if args.beam is not None: beam = args.beam
if args.pol is not None: pol = args.pol
if args.unit is not None: unit = args.unit


if beam == 'ALL': beam = None
else: beam = int(beam)

if pol == 'ALL': pol = None

if unit == 'ALL': unit =None
else: unit = int(unit)


# Run Script
# ==========

import forest.script

script = forest.script.sis_bias_set()
script.run(bias, beam, pol, unit)



Example #13
0
# Default parameters
# ------------------

name = '105'


# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('name', type=str,
               help='Name of tuning parameter set. default is %s.'%(name))

args = p.parse_args()

if args.name is not None: name = args.name


# Run Script
# ==========

import forest.script

script = forest.script.sis_tune()
script.run(name)


p = argparse.ArgumentParser(description=description)
p.add_argument('--lo_freq', type=float,
               help='LO freq in GHz. default is %.1f GHz.'%(lo_freq))
p.add_argument('--start', type=float,
               help='Start IF freq in GHz. default is %.2f GHz.'%(start))
p.add_argument('--stop', type=float,
               help='Stop IF freq in GHz. default is %.2f GHz.'%(stop))
p.add_argument('--step', type=float,
               help='Step of IF freq in GHz. default is %.2f GHz.'%(step))
p.add_argument('--Thot', type=float,
               help='Hot temperature in K. default is %.2f K.'%(Thot))

args = p.parse_args()

if args.lo_freq is not None: lo_freq = args.lo_freq
if args.start is not None: start = args.start
if args.stop is not None: stop = args.stop
if args.step is not None: step = args.step
if args.Thot is not None: Thot = args.Thot


# Run Script
# ==========

import forest.script

script = forest.script.irr_with_if_freq_sweep()
script.run(lo_freq, start, stop, step, Thot)


Example #15
0
# Script information
# ------------------

name = 'end_operation'

description = 'End operation.'

# Default parameters
# ------------------

#
# No parameters are available in forest_initialize.
#

# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)

args = p.parse_args()

# Run Script
# ==========

import forest.script

script = forest.script.end_operation()
script.run()
Example #16
0
# Default parameters
# ------------------

target = 0


# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--target', type=float,
               help='Target to be moved. default is %d.'%(target))

args = p.parse_args()

if args.target is not None: target = args.target


# Run Script
# ==========

import forest.script

script = forest.script.slider_move()
script.run(target)



Example #17
0
# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--start', type=float,
               help='Start voltage in mV. default is %.2f mV.'%(start))
p.add_argument('--stop', type=float,
               help='Stop voltage in mV. default is %.2f mV.'%(stop))
p.add_argument('--step', type=float,
               help='Step of each bias voltage in mV. default is %.2f mV.'%(step))

args = p.parse_args()

if args.start is not None: start = args.start
if args.stop is not None: stop = args.stop
if args.step is not None: step = args.step


# Run Script
# ==========

import forest.script

script = forest.script.get_sis_bias_curve()
script.run(start, stop, step)


Example #18
0
name = 'LO_power_set'

description = 'Set 1st LO SGs output powers.'

# Default parameters
# ------------------

power = -130.0

# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)
p.add_argument('--power',
               type=float,
               help='Output power to be set. default is %f.' % (power))

args = p.parse_args()

if args.power is not None: power = args.power

# Run Script
# ==========

import forest.script

script = forest.script.lo_power_set()
script.run(power)
Example #19
0

# Default parameters
# ------------------

#
# No parameters are available in forest_initialize.
#


# Argument Parser
# ===============

import argparse

p = argparse.ArgumentParser(description=description)

args = p.parse_args()


# Run Script
# ==========

import forest.script

script = forest.script.lo_sg_check()
script.run()



Example #20
0
p = argparse.ArgumentParser(description=description)
p.add_argument('--bias',
               type=float,
               help='Bias current to be set. default is %f mA.' % (bias))
p.add_argument('--beam',
               help='Beam number. Select from %s. default is %s.' %
               (str(beam_list), beam))
p.add_argument('--pol',
               type=str,
               help='Polarization. Select from %s. default is %s.' %
               (str(pol_list), pol))

args = p.parse_args()

if args.bias is not None: bias = args.bias
if args.beam is not None: beam = args.beam
if args.pol is not None: pol = args.pol

if beam == 'ALL': beam = None
else: beam = int(beam)

if pol == 'ALL': pol = None

# Run Script
# ==========

import forest.script

script = forest.script.lo_att_set()
script.run(bias, beam, pol)