==== Science spectroscopy template METIS_spec_n_obs_AutoChopNodOnSlit ====

=== Procedure for METIS_spec_n_obs_AutoChopNodOnSlit ===
 
++++
Setup spectrograph|
  * ''IMG-N PP1 FILT'': move to N-band order-blocking filter (full_N)
  * ''IMG-N PP1 MASK/GRISM'': Move to Grism-N
  * Remove the neutral density filter (''IMG-N PP1 ND'' to open)
  * Set detector parameters (total exposure time, readout mode, cube mode T/F). The system will set the DIT/NDIT combination depending on the background levels.
++++
++++
Start science exposures|
  * This template performs chopping (using the CFO PP2 chopper) in the same direction as the slit orientation. Nodding can be performed both parallel, or perpendicular to the slit direction. Additionally small random dithers along the slit are allowed. More complex source geometries might require larger nodding amplitudes, and/or nodding perpendicular to the slit in order to avoid self-cancellation.
  * Set chop parameters at CFO PP2 (chop throw, frequency, chop position angle)
  * Set number of chop cycles at CFO PP2 (''NCHOPCYCLES'')
  * Set nodding parameters (nodding direction, ''NODTHROW'', ''NNODCYCLES'')
  * Set the ''JITTERWIDTH'' = width of the 1D box for dithering.
  * At each offset position start science exposures with DIT/NDIT/readout mode. 
  * Read-out and save individual exposures, or co-added frames, depending on the ''cube mode'' T/F keyword.
++++
++++
End science exposures|
  * Return telescope and chopper back to the initial position. 
  * Collect headers
  * Merge into one or more data cubes
  * Go back to Setup Imager until target observations are finished (single OB). For example, to observe in a different filter.
++++

===Parameters for METIS_spec_n_obs_AutoChopNodOnSlit===

^Parameter             ^Hidden     ^Range (default)            ^Label^  
|DPR CATG              |yes        |SCIENCE TEST (SCIENCE) |Data product category|
|DPR TECH              |yes        |LSS (LSS)                 |Data product technique|
|DPR TYPE              |yes        |OBJECT (OBJECT)|Data product type|                      
|DET2 CUBE MODE         |yes        |T F (T)                    |Toggle cube mode| 
|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|
|INS OPTI3 NAME        |no         |A_19 B_29 C_38 D_57 E_114 (NODEFAULT)   |Slit|
|INS OPTI12 NAME        |no         |GRISM-N (GRISM-N)   |IMG-N mask/grism wheel|
|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|
|SEQ TIME              |no         |0..TBD (NODEFAULT)         |Total integration time (sec)|
|SEQ JITTER WIDTH      |no         |0..5 (NODEFAULT)           |Jitter Box Width (arcsec)|
|SEQ NCHOPCYCLES       |no         |0..100 (NODEFAULT)         |Number of chopping cycles|
|SEQ NNODCYCLES        |no         |0..TBD (NODEFAULT)         |Number of nodding cycles|
|SEQ CHOPNOD DIR       |no         |PARALLEL PERPENDICULAR (PERPENDICULAR)         |Relative Chop/Nod Direction|
|SEQ NEXPO             |no         |0..1000 (NODEFAULT)        |Number of exposures per offset|
|SEQ POISSON           |yes        |1..100 (10)                |Random throw generator
|SEQ RETURN            |no         |T F (T)                    |Return to origin?|
|SEQ CFO CHOP POSANG       |yes        |0..360 (0)             |Chopper position angle|
|SEQ CFO CHOP THROW        |yes        |0..5 (2.5)             |Chop throw|
|SEQ CFO CHOP FREQ         |yes        |0..5 (1)               |Chopping frequency|
|SEQ NODTHROW          |no         |0..TBD (NODEFAULT)         |Nodding amplitude|