Esempio n. 1
0
tp.prescription = 'general_telescope'  #'Subaru_SCExAO'  #
tp.obscure = False
tp.use_ao = True
tp.ao_act = 50
tp.use_atmos = True

mp.array_size = np.array([140, 144])
mp.hot_counts = False
mp.dark_counts = False
mp.bad_pix = True

TESTDIR = 'PhotonStatistics'

home = expanduser("~")
if home == '/Users/dodkins':
    iop.update_datadir('/Users/dodkins/MEDIS_photonlists/')
    mode = 'develop'
elif home == '/home/dodkins':
    # os.environ["DISPLAY"] = "/home/dodkins"
    iop.update_datadir('/mnt/data0/dodkins/MEDIS_photonlists/')
    mode = 'test'
else:
    print('System not recognised. Make sure $WORKING_DIR is set')
    raise SyntaxError

mode = 'develop'
# mode = 'test'
if mode == 'develop':
    sp.num_processes = 1
    sp.numframes = 5  # 2000 #500
elif mode == 'test':
Esempio n. 2
0
"""
import numpy as np

from medis.params import iop, sp, ap, tp
from medis.utils import dprint
import medis.optics as opx
from medis.plot_tools import view_spectra, view_timeseries, quick2D, plot_planes
import medis.medis_main as mm

#################################################################################################
#################################################################################################
#################################################################################################
# Renaming Directories
testname = 'SubaruAO188-test1'
iop.update_datadir('/home/captainkay/mazinlab/MKIDSim/CDIsim_data/')
iop.update_testname(testname)
iop.makedir()

# Telescope
tp.prescription = 'Subaru_frontend'
tp.entrance_d = 7.9716
tp.flen_primary = tp.entrance_d * 13.612

# Simulation & Timing
sp.numframes = 1
sp.closed_loop = True

# Grid Parameters
sp.focused_sys = True
sp.beam_ratio = 0.08  # parameter dealing with the sampling of the beam in the pupil/focal plane