def default_pypeit_par(): """ Set default parameters for LBT/LUCI reductions. OLD CODE from LBT MODS """ par = pypeitpar.PypeItPar() # Scienceimage default parameters par['reduce'] = pypeitpar.ReducePar() # Always flux calibrate, starting with default parameters par['fluxcalib'] = pypeitpar.FluxCalibratePar() # Always correct for flexure, starting with default parameters par['flexure'] = pypeitpar.FlexurePar() # Set the default exposure time ranges for the frame typing par['calibrations']['biasframe']['exprng'] = [None, 1] par['calibrations']['darkframe']['exprng'] = [999999, None] # No dark frames par['calibrations']['pinholeframe']['exprng'] = [999999, None ] # No pinhole frames par['calibrations']['pixelflatframe']['exprng'] = [0, None] par['calibrations']['traceframe']['exprng'] = [0, None] par['calibrations']['arcframe']['exprng'] = [None, 60] par['calibrations']['standardframe']['exprng'] = [1, 200] par['scienceframe']['exprng'] = [200, None] return par
def test_reduce(): pypeitpar.ReducePar()
def default_pypeit_par(self): """ Set default parameters for Shane Kast Blue reductions. """ par = pypeitpar.PypeItPar() par['rdx']['spectrograph'] = 'magellan_fire' # No overscan for key in par['calibrations'].keys(): if 'frame' in key: par['calibrations'][key]['process']['overscan'] = 'none' # Wavelengths # 1D wavelength solution with OH lines par['calibrations']['wavelengths']['rms_threshold'] = 1.0 par['calibrations']['wavelengths']['sigdetect'] = [ 5, 10, 10, 10, 10, 20, 30, 30, 30, 30, 30, 10, 30, 30, 60, 30, 30, 10, 20, 30, 10 ] par['calibrations']['wavelengths']['n_first'] = 2 par['calibrations']['wavelengths']['n_final'] = [ 3, 3, 3, 2, 4, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 6, 6, 4 ] par['calibrations']['wavelengths']['lamps'] = ['OH_FIRE_Echelle'] par['calibrations']['wavelengths']['nonlinear_counts'] = self.detector[ 0]['nonlinear'] * self.detector[0]['saturation'] par['calibrations']['wavelengths']['method'] = 'reidentify' par['calibrations']['wavelengths']['cc_thresh'] = 0.35 par['calibrations']['wavelengths'][ 'reid_arxiv'] = 'magellan_fire_echelle.fits' par['calibrations']['wavelengths']['match_toler'] = 30.0 # Echelle parameters par['calibrations']['wavelengths']['echelle'] = True par['calibrations']['wavelengths']['ech_fix_format'] = True par['calibrations']['wavelengths']['ech_nspec_coeff'] = 4 par['calibrations']['wavelengths']['ech_norder_coeff'] = 6 par['calibrations']['wavelengths']['ech_sigrej'] = 3.0 # Always correct for flexure, starting with default parameters par['flexure'] = pypeitpar.FlexurePar() par['scienceframe']['process']['sigclip'] = 20.0 par['scienceframe']['process']['satpix'] = 'nothing' # Set slits and tilts parameters par['calibrations']['tilts']['tracethresh'] = 5 par['calibrations']['slitedges']['edge_thresh'] = 10. par['calibrations']['slitedges']['trace_thresh'] = 10. par['calibrations']['slitedges']['fit_order'] = 5 par['calibrations']['slitedges']['max_shift_adj'] = 0.5 par['calibrations']['slitedges']['fit_min_spec_length'] = 0.5 par['calibrations']['slitedges']['left_right_pca'] = True par['calibrations']['slitedges']['pca_order'] = 3 # Scienceimage default parameters par['reduce'] = pypeitpar.ReducePar() # Always flux calibrate, starting with default parameters #par['fluxcalib'] = pypeitpar.FluxCalibrationPar() # Do not correct for flexure par['flexure'] = None # Set the default exposure time ranges for the frame typing par['calibrations']['standardframe']['exprng'] = [None, 60] par['calibrations']['arcframe']['exprng'] = [20, None] par['calibrations']['darkframe']['exprng'] = [20, None] par['scienceframe']['exprng'] = [20, None] # Sensitivity function parameters # Sensitivity function parameters par['sensfunc']['algorithm'] = 'IR' par['sensfunc']['polyorder'] = 8 # place holder for telgrid file par['sensfunc']['IR']['telgridfile'] = resource_filename( 'pypeit', '/data/telluric/TelFit_MaunaKea_3100_26100_R20000.fits') return par