Example #1
0
               help='Average num to acqumerate. default is %d.'%(average))
p.add_argument('--ch',  type=str,
               help='Ch numbers to be evalulated. default is %s.'%(eval_ch))
p.add_argument('--thot', type=float,
               help='Hot temperature in K. default is %.1f'%(thot))

args = p.parse_args()


# main
# ====

print('~~~~~~~~~~~~~~~~~~~~~~~~~')
print('FOREST : Y-factor by hand')
print('~~~~~~~~~~~~~~~~~~~~~~~~~')
forest.print_timestamp()
print('')


# create save directory
# ---------------------
fp = forest.filepath_generator(name)


# handling args
# -------------
if args.start is not None: f_start = args.start
if args.stop is not None: f_stop = args.stop
if args.resbw is not None: resbw = args.resbw
if args.average is not None: average = args.average
if args.ch is not None:
Example #2
0
rxrot_monitor = forest.rx_rotator_monitor()
sql_status = forest.db_writer('rxrot_status')
sql_error = forest.db_writer('rxrot_errors')
sql_cosmos = forest.db_writer('rxrot_cosmos_log')

# --

def printlog(status):
    forest.print_rxrot(status)
    return

# --

try:
    while True:
        forest.print_timestamp()
        
        t0 = time.time()
        
        status = rxrot_monitor.read_status()
        
        keydict = {}
        keydict['REAL_ANGLE'] = status['real_angle']
        keydict['REAL_VEL'] = status['real_vel']
        keydict['PROG_ANGLE'] = status['prog_angle']
        keydict['COSMOS_ANGLE'] = status['cosmos_angle']
        keydict['RESIDUAL'] = status['residual']
        keydict['TRACKING'] = status['tracking_count']
        keydict['SHUTDOWN_FLAG'] = status['shutdown_flag']
        keydict['SOFTLIMIT0_FLAG'] = status['softlimit0_flag']
        keydict['SOFTLIMIT1_FLAG'] = status['softlimit1_flag']
Example #3
0
def printlog(bias):
    forest.print_timestamp()
    forest.print_loatt(bias)
    return
Example #4
0
def printlog(bias):
    forest.print_timestamp()
    forest.print_loatt(bias)
    return