===Procedure for METIS_gen_cal_insdark ===

This template is used for QC purposes only and measures the dark current of the detector and any thermal emission (or leaks) from inside the cold instrument. The darks can be taken in parallel using the different detectors (IMG LM, IMG N, LMS), with a different DIT/NDIT.

This dark calibration is also referred to as instrument dark and uses the dark position only in the CFO-PP1 wheel.

<color #00a2e8>Setup METIS</color>
  * Blackbody source and laser sources must be off (run OB that puts METIS in default configuration)
  * Set ''wcu-bb-aperture-mask'' (''INS.OPTI19.NAME'') to ''CLOSED''
  * Set ''wcu-fp2-1'' (''INS.OPTI20.NAME'') to ''ALIGNMENT'' (0% transmission to METIS)
  * Set ''cfo-pp1'' (''INS.OPTI1.NAME'') to ''DARK''
  * Set ''cfo-adc'' (''INS.OPTI2.NAME'') to ''OUT''
  * Set ''cfo-fp2'' (''INS.OPTI3.NAME'') to ''OPEN''
  * Set ''img-lm-pw'' (''INS.OPTI9.NAME'')  to ''OPEN''
  * Set ''img-lm-fw'' (''INS.OPTI10.NAME'')  to ''full_L''
  * Set ''img-lm-ndw'' (''INS.OPTI11.NAME'')  to ''OPEN''
  * Set ''img-n-pw'' (''INS.OPTI12.NAME'')  to ''OPEN''
  * Set ''img-n-fw'' (''INS.OPTI13.NAME'')  to ''full_N''
  * Set ''img-n-ndw'' (''INS.OPTI14.NAME'') to ''OPEN''
  * Set ''lms-pwa'' (''INS.OPTI5.NAME'') to ''OPEN''

<color #00a2e8>Take Exposures</color>
  * Take exposures with request DIT, NDIT and NEXPO in all subsystems

===Parameters for METIS_gen_cal_insdark ===

^Parameter             ^Hidden     ^Range (default)            ^Label^
|DPR CATG              |yes        |CALIB TEST (CALIB) |Data product category|
|DPR TECH              |yes        |IMAGE (IMAGE)                 |Data product technique|
|DPR TYPE              |yes        |DARK,INS (DARK,INS)|Data product type| 
|DET1 DIT               |no         |0..TBD (NODEFAULT)         |Detector integration time (DIT) for IMG-LM|
|DET1 NDIT              |no         |1..TBD (1)                 |Number of Integrations (NDIT) for IMG-LM|
|DET2 DIT               |no         |0..TBD (NODEFAULT)         |Detector integration time (DIT) for IMG-N|
|DET2 NDIT              |no         |1..TBD (1)                 |Number of Integrations (NDIT)  for IMG-N|
|DET3 DIT               |no         |0..TBD (NODEFAULT)         |Detector integration time (DIT) for LMS|
|DET3 NDIT              |no         |1..TBD (1)                 |Number of Integrations (NDIT) for LMS|
|SEQ NEXPO1              |no         |0..TBD (1)                 |Number of exposures per DIT for IMG-LM|
|SEQ NEXPO2              |no         |0..TBD (1)                 |Number of exposures per DIT for IMG-N|
|SEQ NEXPO3              |no         |0..TBD (1)                 |Number of exposures per DIT for LMS|
|INS OPTI1 NAME      |yes                 |DARK (DARK)                |CFO-PP1 mask wheel |
|INS OPTI2 NAME      |yes                 |OUT (OUT)                |CFO-ADC mask wheel |
|INS OPTI3 NAME      |yes                 |OPEN (OPEN)                |CFO-FP2 mask wheel |
|INS OPTI5 NAME      |yes                 |OPEN (OPEN)                |LMS-PP1 mask wheel |
|INS OPTI9 NAME      |yes                 |OPEN (OPEN)                |IMG-LM mask/grism wheel |
|INS OPTI10 NAME      |yes                 |full_L (full_L)                |IMG-LM filter wheel |
|INS OPTI11 NAME      |yes                 |OPEN (OPEN)                |IMG-LM neutral density wheel |
|INS OPTI12 NAME      |yes                 |OPEN (OPEN)                |IMG-N mask/grism wheel |
|INS OPTI13 NAME      |yes                 |full_N (OPEN)                |IMG-N filter wheel |
|INS OPTI14 NAME      |yes                 |OPEN (OPEN)                |IMG-N neutral density wheel |
|INS OPTI19 NAME      |yes                 |CLOSED (CLOSED)                |WCU BB aperture mask |
|INS OPTI20 NAME      |yes                 |ALIGNMENT (ALIGNMENT)                |WCU FP2.1 wheel |
