1616from pypeit import PypeItError
1717from pypeit import telescopes
1818from pypeit import io
19+ from pypeit import par
1920from pypeit .core import framematch
2021from pypeit .par import parset
2122from pypeit .spectrographs import spectrograph
@@ -73,11 +74,12 @@ def default_pypeit_par(cls):
7374 par ['calibrations' ]['wavelengths' ]['ech_nspec_coeff' ] = 4
7475 par ['calibrations' ]['wavelengths' ]['ech_norder_coeff' ] = 4
7576 par ['calibrations' ]['wavelengths' ]['ech_sigrej' ] = 3.0
76-
77+
7778 par ['calibrations' ]['flatfield' ]['slit_illum_finecorr' ] = False
7879 par ['calibrations' ]['flatfield' ]['tweak_slits' ] = False
7980 par ['calibrations' ]['flatfield' ]['spat_samp' ] = 0.7
80- par ['calibrations' ]['flatfield' ]['slit_trim' ] = 0
81+ # this is for the 8" decker
82+ par ['calibrations' ]['flatfield' ]['slit_trim' ] = 3
8183
8284
8385 # Processing steps
@@ -90,7 +92,7 @@ def default_pypeit_par(cls):
9092
9193 # no sky subtraction on standard stars
9294 par ['reduce' ]['skysub' ]['global_sky_std' ] = False
93-
95+ par [ 'reduce' ][ 'skysub' ][ 'no_local_sky' ] = True
9496 # skip sky subtraction when searching for objects
9597 # this is because the sky subtraction is not very good with narrow
9698 # slits and the usual APF target is bright
@@ -378,11 +380,13 @@ def config_specific_par(
378380 par ['reduce' ]['findobj' ]['find_trim_edge' ] = [0 , 0 ]
379381 par ['calibrations' ]['slitedges' ]['pad' ] = 5
380382 par ['reduce' ]['extraction' ]['sn_gauss' ] = 400
383+ par ['calibrations' ]['flatfield' ]['slit_trim' ] = 0
381384 # basically always use the Gaussian model for optimal extraction
382385
383386 if binning == "2,2" :
384387 par ['calibrations' ]['slitedges' ]['min_edge_side_sep' ] = 2.0
385388 par ['calibrations' ]['slitedges' ]['pad' ] = 2
389+ par ['calibrations' ]['flatfield' ]['slit_trim' ] = 1
386390 par ['reduce' ]['skysub' ]['no_local_sky' ] = True
387391 par ['reduce' ]['extraction' ]['sn_gauss' ] = 400
388392 par ['reduce' ]['extraction' ]['model_full_slit' ] = True
0 commit comments