def gemini_gmos_r400_e2v_mosaic(overwrite=False): # GMOS R400 E2V # Turns off normalize binspec = 2 outroot = 'gemini_gmos_r400_e2v_mosaic.fits' # ifiles = [0, 1, 2] slits = [0, 0, 0] lcut = [6000., 7450] wfile1 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_1_01.json') wfile2 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_1_02.json') wfile3 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_1_03.json') # templates.build_template([wfile1, wfile2, wfile3], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=False, overwrite=overwrite, subtract_conti=True)
def keck_deimos_600ZD(): binspec = 1 slits = [0, 1] lcut = [7192.] xidl_file = os.path.join(templates.template_path, 'Keck_DEIMOS', '600ZD', 'deimos_600.sav') outroot = 'keck_deimos_600.fits' templates.build_template(xidl_file, slits, lcut, binspec, outroot, lowredux=True)
def gemini_gmos_r831_ham(overwrite=False): binspec = 1 outroot = 'gemini_gmos_r831_ham.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'GMOS', 'R831') basefiles = ['R831_0.740/chip1/wvcalib.fits', # 0 6170-6970 'R831_0.740/chip2/wvcalib.fits', # 1 7032-7725 'R831_0.740/chip3/wvcalib.fits', # 2 8000-8523 'R831_0.830/chip1/wvcalib.fits', # 3 7200-7725 'R831_0.830/chip2/wvcalib.fits', # 4 7950 - 8670 'R831_0.830/chip3/wvcalib.fits', # 5 9125 - 9356 'R831_0.860/chip1/wvcalib.fits', # 6 7437 - 8117 'R831_0.860/chip2/wvcalib.fits', # 7 8266 - 8670. (9125) 'R831_0.860/chip3/wvcalib.fits', # 8 9125 - 9800 'R831_6679/wvcalib.fits', # 9 6679 -7274 ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 9, 1, 6, 2, 7, 5, 8] slits = [1, 1, 1, 1, 1, 1, 1, 2] wv_cuts = [6800., 7200., 7500., 8050., 8300., 9125, 9300.] assert len(wv_cuts) == len(slits)-1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=False, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def keck_mosfire_OH_J2(overwrite=False): binspec = 1 outroot = 'keck_mosfire_OH_J2.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_MOSFIRE', 'OH_lines', 'J2') basefiles = [ 'MasterWaveCalib_A_1_DET01_useS1102.fits', 'MasterWaveCalib_A_1_DET01_useS1565.fits' ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1] slits = [1102, 1565] wv_cuts = [11740.] assert len(wv_cuts) == len(slits) - 1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=False, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def keck_deimos_1200G(overwrite=False): binspec = 1 outroot = 'keck_deimos_1200G.fits' # 3-3 = blue 6268.23 -- 7540 # 3-14 = red 6508 -- 7730 # 7-3 = blue 7589 -- 8821 # 7-17 = red 8000 - 9230 # 7c-0 = red 9120 -- 9950 ifiles = [3, 5, 4, 0, 0, 1, 1, 2] slits = [1261, 1652, 132, 3, 14, 3, 17, 0] lcut = [5200., 5580., 6800., 7450., 7730., 8170, 9120] wfile1 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', 'MasterWaveCalib_A_1_03.json') wfile2 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', 'MasterWaveCalib_A_1_07.json') wfile3 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', 'MasterWaveCalib_A_1_07c.json') wfile4 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', '1200G_bluetilt', 'MasterWaveCalib_B_1_02_useS1261.fits') wfile5 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', '1200G_bluetilt', 'MasterWaveCalib_B_1_06_useS0132.fits') wfile6 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', '1200G_bluetilt', 'MasterWaveCalib_B_1_02_useS1652.fits') #wfile7 = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200G', '1200G_bluetilt', # 'MasterWaveCalib_B_1_06_useS1649.fits') files = [wfile1, wfile2, wfile3, wfile4, wfile5, wfile6] #, wfile7] # det_dict det_cut = None # det_cut = {} # det_cut['dets'] = [[1,2,3,4], [5,6,7,8]] # det_cut['wcuts'] = [[0,9000.], [8200,1e9]] # Significant overlap is fine # templates.build_template(files, slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, det_cut=det_cut, chk=True, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def soar_goodman_400(overwrite=False): binspec = 2 outroot = 'soar_goodman_400_SYZY.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'SOAR_Goodman', '400_SYZY') basefiles = [ 'MasterWaveCalib_A_1_01_M1.fits', 'MasterWaveCalib_A_1_01_M2.fits' ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1] slits = [495, 496] wv_cuts = [6800.] assert len(wv_cuts) == len(slits) - 1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=True, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def shane_kastr_300_7500_Ne(overwrite=False): # 300/7500 """ Build archive for 300/7500 Now uses an un-windowed detector """ binspec = 1 outroot = 'shane_kast_red_300_7500.fits' # ifiles = [0] slits = [222] lcut = [] #slits = [0] #wfile1 = os.path.join(templates.template_path, 'Shane_Kast', '300_7500', 'shane_kast_red_300_7500_ArICdIHeIHgINeI.fits') wfile1 = os.path.join(templates.template_path, 'Shane_Kast', '300_7500', 'shane_kast_red_300_7500_full_det.fits') # templates.build_template([wfile1], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=True, subtract_conti=True, overwrite=overwrite, shift_wave=False)
def gemini_gmos_r400_hama(overwrite=False): # GMOS R400 Hamamatsu binspec = 2 outroot = 'gemini_gmos_r400_ham.fits' # ifiles = [0, 1, 2, 3, 4] slits = [0, 2, 3, 0, 0] # Be careful with the order.. lcut = [5400., 6620., 8100., 9000.] wfile1 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_01_aa.json') embed(header='the file below is missing...') wfile5 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_05_aa.json') # 5190 -- 6679 # wfile2 = os.path.join(template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_02_aa.json') wfile3 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_04_aa.json') wfile4 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_03_aa.json') wfile6 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_06_aa.json') # templates.build_template([wfile1, wfile5, wfile3, wfile4, wfile6], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=True, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def keck_deimos_1200B(overwrite=False): binspec = 1 outroot = 'keck_deimos_1200B.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_DEIMOS', '1200B') basefiles = [ 'MasterWaveCalib_A_1_02_useS0106.fits', 'MasterWaveCalib_A_1_02_useS0291.fits', 'MasterWaveCalib_A_1_06_useS0106.fits', 'MasterWaveCalib_A_1_06_useS0287.fits' ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [1, 0, 1, 0, 3, 2] slits = [291, 106, 291, 106, 287, 106] wv_cuts = [4493., 4870., 5100., 5260., 5810.] assert len(wv_cuts) == len(slits) - 1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=False, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def keck_deimos_830G(overwrite=False): binspec = 1 outroot = 'keck_deimos_830G.fits' # 3-12 = blue 6508 -- 8410 # 7-24 = blue 8497 -- 9925 (no lines after XeI) ifiles = [0, 0, 1] slits = [12, 14, 24] lcut = [8400., 8480] wfile1 = os.path.join(templates.template_path, 'Keck_DEIMOS', '830G_M_8600', 'MasterWaveCalib_A_1_03.json') wfile2 = os.path.join(templates.template_path, 'Keck_DEIMOS', '830G_M_8600', 'MasterWaveCalib_A_1_07.json') # det_dict det_cut = {} det_cut['dets'] = [[1, 2, 3, 4], [5, 6, 7, 8]] det_cut['wcuts'] = [[0, 9000.], [8200, 1e9]] # Significant overlap is fine # templates.build_template([wfile1, wfile2], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, det_cut=det_cut, chk=True, overwrite=overwrite)
def keck_lris_red_mark4_R400(overwrite=False): binspec = 1 outroot = 'keck_lris_red_mark4_R400.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_LRIS', 'Mark4', 'R400') basefiles = [ 'MasterWaveCalib_A_1_01_long.fits', 'MasterWaveCalib_A_1_01_sunil.fits' ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1] slits = [2048, 2045] wv_cuts = [9320.] assert len(wv_cuts) == len(slits) - 1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=True, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def gemini_gmos_b600_ham(overwrite=False): binspec = 2 outroot = 'gemini_gmos_b600_ham.fits' # wfile1 = os.path.join(templates.template_path, 'GMOS', 'B600', 'MasterWaveCalib_C_1_01.json') wfile5 = os.path.join(templates.template_path, 'GMOS', 'B600', 'MasterWaveCalib_D_1_01.json') # - 4547 wfile2 = os.path.join(templates.template_path, 'GMOS', 'B600', 'MasterWaveCalib_C_1_02.json') wfile4 = os.path.join(templates.template_path, 'GMOS', 'B600', 'MasterWaveCalib_D_1_02.json') # 4610-5608 wfile3 = os.path.join(templates.template_path, 'GMOS', 'B600', 'MasterWaveCalib_C_1_03.json') # xx-6615 # 1x1 binning from Shenli wfile6 = os.path.join(templates.template_path, 'GMOS', 'B600', '1x1', 'B600_0.660', 'chip3', 'wvcalib.fits') # 5 6386 - 7386 wfile7 = os.path.join(templates.template_path, 'GMOS', 'B600', '1x1', 'B600_0.580', 'chip3', 'wvcalib.fits') # 6 6873 - 7725 files = [wfile1, wfile5, wfile2, wfile4, wfile3, wfile6, wfile7] ifiles = [0, 1, 2, 3, 4, 5, 6] slits = [0, 0, 0, 0, 0, 1, 1] lcut = [4250., 4547., 5250., 5615., 6600., 6900.] binning = [2,2,2,2,2,2,1] # Run templates.build_template(files, slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=True, subtract_conti=True, miny=-100., overwrite=overwrite, shift_wave=True, binning=binning)
def keck_kcwi_BL(overwrite=False): # FeAr BL wfile1 = os.path.join(templates.template_path, 'KCWI', 'BL', 'Keck_KCWI_BL_4500.fits') outroot = 'keck_kcwi_BL.fits' binspec = 2 slits = [45] lcut = [3000.0, 8000.0] templates.build_template([wfile1], slits, lcut, binspec, outroot, lowredux=False, overwrite=overwrite, normalize=True)
def keck_kcwi_BH2(overwrite=False): # FeAr BH2 wfile1 = os.path.join(templates.template_path, 'KCWI', 'BH2', 'Keck_KCWI_BH2_4200.json') outroot = 'keck_kcwi_BH2.fits' binspec = 1 slits = [1015] lcut = [4350.0, 8000.0] templates.build_template([wfile1], slits, lcut, binspec, outroot, lowredux=False, overwrite=overwrite, normalize=True)
def keck_kcwi_BM(overwrite=False): # FeAr BM wfile1 = os.path.join(templates.template_path, 'KCWI', 'BM', 'Keck_KCWI_BM_4060.json') wfile2 = os.path.join(templates.template_path, 'KCWI', 'BM', 'Keck_KCWI_BM_4670.json') outroot = 'keck_kcwi_BM.fits' binspec = 1 slits = [1026, 1021] lcut = [4350.0, 8000.0] templates.build_template([wfile1, wfile2], slits, lcut, binspec, outroot, lowredux=False, overwrite=overwrite, normalize=True)
def shane_kastb_452(): # if flg & (2**4): # 452/3306 binspec = 1 slits = [0] xidl_file = os.path.join(templates.template_path, 'Shane_Kast', '452_3306', 'kast_452_3306.sav') outroot = 'shane_kast_blue_452.fits' templates.build_template(xidl_file, slits, None, binspec, outroot, lowredux=True)
def shane_kastb_830(): # if flg & (2**6): # 830/3460 binspec = 1 slits = [0] xidl_file = os.path.join(templates.template_path, 'Shane_Kast', '830_3460', 'kast_830_3460.sav') outroot = 'shane_kast_blue_830.fits' templates.build_template(xidl_file, slits, None, binspec, outroot, lowredux=True)
def shane_kastb_600(): # if flg & (2**5): # 600/4310 binspec = 1 slits = [0, 3] lcut = [4550.] xidl_file = os.path.join(templates.template_path, 'Shane_Kast', '600_4310', 'kast_600_4310.sav') outroot = 'shane_kast_blue_600.fits' templates.build_template(xidl_file, slits, lcut, binspec, outroot, lowredux=True)
def ldt_deveny_300(overwrite=False): """ldt_deveny_300 Template from the DV2 & DV3 gratings (300 g/mm) Args: overwrite: bool, optional Overwrite the existing file? [Default: False] """ binspec = 1 outroot = 'ldt_deveny_300_HgCdAr.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'LDT_DeVeny', '300') basefiles = [ 'MasterWaveCalib_A_DV2_5200.fits', 'MasterWaveCalib_B_DV3_8000.fits', 'MasterWaveCalib_C_DV3_9000.fits' ] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1, 2] slits = [248, 248, 248] wv_cuts = [6600., 9000.] assert len(wv_cuts) == len(slits) - 1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=True, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def p200_dbsp_red_316_7500_d55(overwrite=False): # DBSPr 316/7500 D55 binspec = 1 outroot = 'p200_dbsp_red_316_7500_d55.fits' # ifiles = [0] slits = [221] # Be careful with the order.. lcut = None wfile0 = os.path.join(templates.template_path, 'P200_DBSP', 'R316_7500_D55', 'P200_DBSP_Red.json') # templates.build_template([wfile0], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, normalize=True, overwrite=overwrite)
def p200_dbsp_red_600_10000_d55(overwrite=False): # DBSPr 600/10000 D55 binspec = 1 outroot = 'p200_dbsp_red_600_10000_d55.fits' # ifiles = [0] slits = [221] # Be careful with the order.. lcut = None wfile0 = os.path.join(templates.template_path, 'P200_DBSP', 'R600_10000_D55', 'MasterWaveCalib_A_1_01.fits') # templates.build_template([wfile0], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, normalize=True, overwrite=overwrite)
def p200_dbsp_red_1200_9400_d55(overwrite=False): # DBSPr 1200/9400 D55 binspec = 1 outroot = 'p200_dbsp_1200_9400_d55.fits' # ifiles = [0] slits = [0] # Be careful with the order.. lcut = None wfile0 = os.path.join(templates.template_path, 'P200_DBSP', 'R1200_9400_D55', 'wvcalib_8800.fits') # templates.build_template([wfile0], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, normalize=True, overwrite=overwrite)
def p200_dbsp_blue_1200_5000_d68(overwrite=False): # DBSPb 1200/5000 D68 binspec = 1 outroot = 'p200_dbsp_blue_1200_5000_d68_6000.fits' # ifiles = [0] slits = [180] # Be careful with the order.. lcut = None wfile0 = os.path.join(templates.template_path, 'P200_DBSP', 'B1200_5000_D68', 'MasterWaveCalib_A_1_01_6000.fits') # templates.build_template([wfile0], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, normalize=True, overwrite=overwrite)
def keck_deimos_600ZD(overwrite=False): binspec = 1 outroot = 'keck_deimos_600ZD.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_DEIMOS', '600ZD') basefiles = ['MasterWaveCalib_A_1_02_useS0896.fits', 'MasterWaveCalib_A_1_02_useS0477.fits', 'MasterWaveCalib_A_1_08_useS1096.fits', 'MasterWaveCalib_A_1_07_useS0209.fits'] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1, 2, 3] slits = [896, 477, 1096, 209] wv_cuts = [5500., 7560., 9404.] assert len(wv_cuts) == len(slits)-1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=True, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def gemini_gmos_r400_hama(overwrite=False): # GMOS R400 Hamamatsu binspec = 2 outroot = 'gemini_gmos_r400_ham.fits' # ifiles = [0, 1, 2, 3, 4, 5, 6] slits = [1, 0, 2, 0, 3, 0, 0] # Be careful with the order.. lcut = [5270., 5990., 6635., 7580., 8170., 9000.] wfile0 = os.path.join(templates.template_path, 'GMOS', 'R400', 'wvcalib_r400_470.fits') wfile1 = os.path.join(templates.template_path, 'GMOS', 'R400', 'wvcalib_r400_520.fits') #wfile1b = os.path.join(templates.template_path, 'GMOS', 'R400', # 'MasterWaveCalib_A_01_aa.json') wfile5 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_05_aa.json') # 5190 -- 6679 wfile2 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_02_aa.json') wfile3 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_04_aa.json') wfile4 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_03_aa.json') wfile6 = os.path.join(templates.template_path, 'GMOS', 'R400', 'MasterWaveCalib_A_06_aa.json') # templates.build_template( [wfile0, wfile1, wfile5, wfile2, wfile3, wfile4, wfile6], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=True, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def p200_dbsp_red_1200_7100_d68(overwrite=False): # DBSPr 1200/7100 D68 binspec = 1 outroot = 'p200_dbsp_red_1200_7100_d68.fits' # ifiles = [0, 1] slits = [222, 0] # Be careful with the order.. lcut = [7740.] wfile0 = os.path.join(templates.template_path, 'P200_DBSP', 'R1200_7100_D68', 'MasterWaveCalib_A_1_01_7600.fits') wfile1 = os.path.join(templates.template_path, 'P200_DBSP', 'R1200_7100_D68', 'wvcalib_8200.fits') # templates.build_template([wfile0, wfile1], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, normalize=True, overwrite=overwrite)
def keck_deimos_830G(overwrite=False): binspec = 1 outroot = 'keck_deimos_830G.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_DEIMOS', '830G') basefiles = ['MasterWaveCalib_A_1_04_useS1460.fits', 'MasterWaveCalib_A_1_04_useS0933.fits', 'MasterWaveCalib_A_1_05_useS1682.fits', 'MasterWaveCalib_A_1_08_useS0844.fits'] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1, 2, 3] slits = [1460, 933, 1682, 844] wv_cuts = [6477., 8342., 9336.] assert len(wv_cuts) == len(slits)-1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=True, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)
def shane_kastr_300_7500_NoNe(overwrite=False): # 300/7500 binspec = 1 outroot = 'shane_kast_red_300_7500_NoNe.fits' # ifiles = [0] slits = [0] lcut = [] wfile1 = os.path.join(templates.template_path, 'Shane_Kast', '300_7500', 'shane_kast_red_300_7500_HeICdIHgIArI.fits') # templates.build_template([wfile1], slits, lcut, binspec, outroot, lowredux=False, ifiles=ifiles, chk=True, normalize=True, subtract_conti=True, overwrite=overwrite, shift_wave=False)
def keck_deimos_900ZD(overwrite=False): binspec = 1 outroot = 'keck_deimos_900ZD.fits' # PypeIt fits wpath = os.path.join(templates.template_path, 'Keck_DEIMOS', '900ZD') basefiles = ['MasterWaveCalib_A_1_01_useS1046.fits', 'MasterWaveCalib_A_1_03_useS0600.fits', 'MasterWaveCalib_A_1_06_useS0054.fits', 'MasterWaveCalib_A_1_02_useS0066.fits', 'MasterWaveCalib_A_1_06_useS0193.fits'] wfiles = [os.path.join(wpath, basefile) for basefile in basefiles] # Snippets ifiles = [0, 1, 2, 3, 4, 5] slits = [1046, 600, 54, 66, 193] wv_cuts = [5250., 5878., 7100., 8245.] assert len(wv_cuts) == len(slits)-1 # det_dict det_cut = None # templates.build_template(wfiles, slits, wv_cuts, binspec, outroot, ifiles=ifiles, det_cut=det_cut, chk=True, normalize=False, lowredux=False, subtract_conti=True, overwrite=overwrite, shift_wave=True)