Esempio n. 1
0
def initialize(event):
    print(event)
    obs_log.start_script(name)
    obs_log.weather_log()

    time.sleep(2)
    ctrl.drive_on()
    ctrl.contactor_on()
    print("dome_open")
    ctrl.dome_open()

    if opt:
        print("memb_open")
        ctrl.memb_open()
        print("Init end")
    ctrl.dome_track()
    time.sleep(0.8)
    ctrl.dome_track_end()

    obs_log.end_script(name)
Esempio n. 2
0
opt = ''

# Argument handler
# ================

p = argparse.ArgumentParser(description=description)
p.add_argument('--opt', type=str, help='For optical. Need 1.')

args = p.parse_args()

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

# Main
# ====

obs_log.start_script(name)
obs_log.weather_log()

ctrl = controller.controller()
ctrl.drive_on()
print("dome_open")
ctrl.dome_open()

if opt:
    print("memb_open")
    ctrl.memb_open()
print("Init end")
ctrl.dome_track()

obs_log.end_script(name)
Esempio n. 3
0
    "OTFLEN" : 0,
    "SUBSCAN" : 0, # 要実装                                                    
    "MJD" : mjd_list,
    "SECOFDAY" : secofday_list,
    "SIDEBAND" : obs['lo1st_sb_2'],
    "_2NDSB" : obs['lo2nd_sb_2'],
    "_3RDSB" : obs['lo3rd_sb_2'],
    "_2NDLO" : _2NDLO_list2,#ドップラーシフト込み                              
    "_3RDLO" : obs['lo3rd_freq_2'],
    "SUBREF" : subref_list,
    "LOCKSTAT" : 'F'#未使用                                                    
    }



f1 = os.path.join(savedir,'n%s_%s_%s_cross_%s_pointing.fits'%(timestamp ,obs['molecule_1'] ,obs['transiti_1'].split('=')[1],obs['object']))
f2 = os.path.join(savedir,'n%s_%s_%s_cross_%s_pointing.fits'%(timestamp ,obs['molecule_2'] ,obs['transiti_2'].split('=')[1],obs['object']))

import n2fits_write
n2fits_write.write(read1,f1)
n2fits_write.write(read2,f2)


shutil.copy("/home/amigos/NECST/soft/server/hosei_230.txt", savedir+"/hosei_copy")
obs_log.end_script(name, dirname)