- intermediate: *_str.fits, 2D images with orders straightened and bad pixel removed
- final output: *_e2ds.fits. The spectra are flat-fielded, extracted, calibrated, and the cosmic rays are removed. The echelle orders are not merged. The FITS files contain three images 50 orders x 2048 pixels: the primary image contains the fluxes, the second contains the wavelength calibration and the third contains the signal-to-noise ratio.
- final output (optional): *_s1d.fits. The spectra are flat-fielded, extracted, calibrated, and the cosmic rays are removed. The echelle orders are merged. These are monodimensional spectra with constant step in wavelength.
CONFIG['USE_FLAT']={'global':False,'order':True,'nor':False}# global: flat normalized by global mean value - order: flat normalized order by order by mean value - nor: flat normalized row by row by continuum fitting, removing the blaze function - No True value: no flat division
CONFIG['FLAT_EXPT']=100.0
CONFIG['WLCAL_EXPT']=100.0
CONFIG['FP_EXPT']=60.0
CONFIG['DARKLIST']={10:[],30:[],60:[],100:[]}# exptime dei dark
CONFIG['NDARK']=4# quanti tipi di dark (esempio: 10,30,60,100 sec = 4) meglio sovrastimare
#
# CCD info
#
CONFIG['RON']=5.0# electrons
CONFIG['GAIN']=2.2# e/ADU
CONFIG['XCCD']=2048
CONFIG['YCCD']=2048
CONFIG['N_ORD']=50# number of echelle orders
CONFIG['W_ORD']=41# width of straighten order in pixel
#
# Quality checks
#
CONFIG['DARK_MEAN']={10:[5.0,5.0,10.0,8.0],30:[15.0,12.0,25.0,18.0],60:[25.0,20.0,40.0,32.0],100:[30.0,25.0,65.0,45.0]}# Dark quality check: mean signal below this number (4 quadrant for 4 exposure time)
#CONFIG['FLATCHECK'] = [985,1030,575,590] # region x1:x2,y1:y2 for flats' quality check
CONFIG['FLATSIGNAL']=300# lowest flat signal expected to pass quality check
CONFIG['SCIENCECHECK']=[500,540,140,160]# region x1:x2,y1:y2 for images' quality check
#CONFIG['NODSIGNAL'] = 2*CONFIG['DARK_MEAN']['quadrant'][0] # lowest image signal expected to pass quality check
CONFIG['NODSIGNAL']=0.0# lowest image signal expected to pass quality check
CONFIG['USE_FLAT']={'global':False,'order':True,'nor':False}# global: flat normalized by global mean value - order: flat normalized order by order by mean value - nor: flat normalized row by row by continuum fitting, removing the blaze function - No True value: no flat division