===Procedure for METIS_spec_lm_cal_SlitAdc ===

This templates moves a point source across the slit to measure slit losses as a function of position in the slit. The knowledge of slit losses will be used in conjunction with a model for the atmospheric dispersion correction residuals to calibrate the wavelength-dependent slit losses.

++++
Prepare the WCU|
  * Activate WCU point source (black body)
  * wait for warm-up time
  * select illumination level to fill the LM-IMG detector to about half of the full well capacity
  * If necessary to reach the illumination desired level, insert appropriate cold ND filter.
++++
++++
Prepare the CFO|
  * Insert a slit
  * Choose an ADC setup (no ADC, ADC 1 / 20 deg or ADC 2 / 40 deg) -- default is OUT
  * choose a derotator angle (rotating the ADC relative to the slit) -- default will be a fixed angle
++++
++++
Take background exposure|
  * Close WCU BB output port and take a background measurement
  * Open the WCU BB output port: select exit aperture (OPEN)
++++
++++
Take the calibration exposures|
  * Use the METIS-internal chopper to step the source in 1/10 lambda/D steps across the chosen slit
  * repeat for several derotator settings (4, tbc), all settings of the fixed ADC and all five slits
++++

===Parameters for METIS_spec_lm_cal_SlitAdc ===

^Parameter             ^Hidden     ^Range (default)            ^Label^
|DPR CATG              |yes        |CALIB TEST (CALIB) |Data product category|
|DPR TECH              |yes        |LSS (LSS)                 |Data product technique| 
|DPR TYPE              |yes        |SLITLOSS (SLITLOSS)                 |Data product type| 
|DET1 DIT               |yes         |0..TBD (NODEFAULT)         |IMG-LM Detector integration time (DIT)|
|DET1 NDIT              |yes         |1..TBD (NODEFAULT)         |IMG-LM Number of Integrations (NDIT)|
|DET1 NCORRS NAME       |no         |TBD                         |IMG-LM Readout mode|
|SEQ TIME              |no         |0..TBD (NODEFAULT)         |Total integration time (sec)|
|SEQ NEXPO             |no         |0..TBD (1)                 |Number of exposures|
|SEQ CFO CHOP XPOS       |no         |TBD (NODEFAULT)          |Chopper x position|
|SEQ CFO CHOP YPOS       |no         |TBD (NODEFAULT)           |Chopper y position|
|SEQ WCU_BB_TEMP       |yes        |TEMP-L TEMP-M (NODEFAULT)   |WCU BB temperature for specific filter|
|SEQ WCU_OFF_NFRAMES   |yes        |TBD                        |Number of WCU off frames to take |
|INS DROT POSANG      |no         | (NODEFAULT)                  |Derotator position angle|
|INS OPTI1 NAME         |yes        | PPS-CFO2 (PPS-CFO2)                |CFO-PP1 mask wheel|
|INS OPTI2 NAME         |yes        | OUT ADC1 ADC2 (OUT)                |CFO-PP1 ADC wheel|
|INS OPTI3 NAME   	|yes        | A_19 B_29 C_38 D_57 E_114 (NODEFAULT)  |CFO FP2 mask/slit wheel |
|INS OPTI4 NAME         |yes        |OUT IN (OUT)                  |LMS beamsplitter pickoff wheel|
|INS OPTI9 NAME         |no         |open GRISM-L GRISM-M (NODEFAULT)                  |IMG-LM Mask/Grism name|
|INS OPTI10 NAME         |no         |full_L full_M (NODEFAULT)                |IMG-LM Filter name|
|INS OPTI11 NAME         |no         |OPEN ND1 ND2 ND3 ND4 ND5 DARK (NODEFAULT)                  |IMG-LM Neutral density filter|
|INS OPTI15 NAME         |yes        |OUT IN (OUT)                    | IMG-LM pupil imaging lens|
|INS OPTI17 NAME         |yes        |IN (IN)                    | WCU periscope arm|
|INS OPTI18 NAME	|yes                |WCU_mask AIV_mask ELT_mask (ELT_mask)             |WCU PP1 masks|
|INS OPTI19 NAME	|yes                |OPEN (OPEN)                              |WCU BB exit aperture masks|
|INS OPTI20 NAME        |yes         |LM-pinhole (LM-pinhole) |WCU FP2.1 mask wheel|