===Procedure for METIS_spec_n_cal_InternalWave ===

Template with a purpose to provide a pixel to wavelength transformation for the N band. The four N band laser sources attached to the WCU during AIT are: fixed lasers at 9, 10, 11, 12 microns. They can all be shone at once. Internal wavelength calibration with the N band laser sources will produce a spectrum with four lines.

++++
Setup WCU|
  * Move periscopic arm to IN
  * Activate the laser sources, block the IS exit aperture
  * [comment] depending on control software implementation, the N band laser sources may be activated by hand during AIT
  * Take background frame
  * select appropriate imager ND filter if required
  * Set ''WCU-FP2.1'' to N-pinhole mask (for a most defined wavelength solution)
  * Set ''WCU-PP1'' to ELT mask
  * Check the power readout. If the power is detectable, continue.
  * Set ''WCU-BB-aperture-mask'' to CLOSE
  * take background measurement
  * Set ''WCU-BB-aperture-mask'' to OPEN
++++

++++
Setup CFO and subsystems|
  * Set ''CFO-PP1'' to PPS-CFO2
  * Set ''CFO-FP2'' to C_38 (narrowest N band slit to give highest spectral resolution)
  * Set LMS beamsplitter pickoff wheel to OUT
  * Set the IMG-N mask to specified GRISM-N
  * Set the IMG-N science filter to full_N
  * Set the IMG-N neutral density filter to the specified filter
++++

++++
Start Exposure|
  * Start exposures with the IMG-N with the requested DIT and NDIT
++++

++++
End Exposure|
  * Collect headers
  * Send file to ESO Archive
  * Turn off lasers
++++

===Parameters for METIS_spec_n_cal_InternalWave ===

^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        |WAVE (WAVE)|Data product type| 
|DET2 DIT               |yes         |0..TBD (NODEFAULT)         |IMG-N Detector integration time (DIT)|
|DET2 NDIT              |yes         |1..TBD (NODEFAULT)         |IMG-N Number of Integrations (NDIT)|
|DET2 NCORRS NAME       |no         |TBD                         |IMG-N Readout mode|
|SEQ TIME              |no         |0..TBD (NODEFAULT)         |Total integration time (sec)|
|SEQ NEXPO              |no         |0..TBD (1)                 |Number of exposures per DIT|
|SEQ WCU LASER4         |yes        |OFF ON (NODEFAULT)         |WCU N band fixed laser source 1|
|SEQ WCU LASER5         |yes        |OFF ON (NODEFAULT)         |WCU N band fixed laser source 2|
|SEQ WCU LASER6         |yes        |OFF ON (NODEFAULT)         |WCU N band fixed laser source 3|
|SEQ WCU LASER7         |yes        |OFF ON (NODEFAULT)         |WCU N band fixed laser source 4|
|INS OPTI1 NAME         |yes        | PPS-CFO2 (PPS-CFO2)                |CFO-PP1 mask wheel|
|INS OPTI2 NAME         |yes        | OPEN (OPEN)                |CFO-PP1 ADC wheel|
|INS OPTI3 NAME         |no         |A_19 B_29 C_38 D_57 E_114 (NODEFAULT)                  |Slit name|
|INS OPTI4 NAME         |yes         |OUT (OUT)                  |LMS beamsplitter pickoff wheel|
|INS OPTI12 NAME         |no         |GRISM-N (GRISM-N)                  |IMG-N Mask/Grism name|
|INS OPTI13 NAME         |no         |full_N (full_N)                |IMG-N Filter name|
|INS OPTI14 NAME         |no         |OPEN ND1 ND2 ND3 ND4 (NODEFAULT)                  |IMG-N Neutral density filter|
|INS OPTI16 NAME         |yes        |OUT (OUT)                    | IMG-N 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         |CLOSED (CLOSED)                              |WCU BB exit aperture masks|
|INS OPTI20 NAME        |yes         |N-pinhole (N-pinhole) |WCU FP2.1 mask wheel|