==== Science spectroscopy template METIS_spec_lm_obs_GenericOffset ====

=== Procedure for METIS_spec_lm_obs_GenericOffset ===
 
++++
Setup spectrograph|
  * Move to selected filter (''IMG-LM PP1 FILT'') 
  * Move to selected grism (''IMG-LM PP1 GRISM'')
  * Set detector parameters (DIT, NDIT, readout mode, cube mode T/F)
++++
++++
Start science exposures|
  * This template has the flexibility of programming any sequence of offsets. It is intended for programs requiring large offsets (off the slit), for example in case of an extended target, or a crowded field. It can also be used for slit scanning across one object. Offsets will be performed using telescope offsets, or CFO-PP2 chopper. If the offset is too large to maintain guiding, open the AO loop, take exposure(s) at the sky position, resume AO correction after returning back on the target.
  * Set up the number of offsets, and a list of offsets in X and Y directions (keywords ''OFFSET1 LIST'' and ''OFFSET2 LIST''). Telescope offsets are  defined either along detector lines (X) and columns (Y) or RA and DEC (set by the keyword ''OFFSET COORDS''), and are in arcsec. Offsets in X are along the slit, offsets in Y are perpendicular to the slit.
  * Set up parameter ''NEXPO'' defining the number of images taken at a single offset position.
  * 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_lm_obs_GenericOffset===


^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 SKY (OBJECT)|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|
|DET1 CUBE MODE        |yes         |T F (T)                    |Toggle cube mode| 
|INS OPTI3 NAME        |no         |A_19 B_29 C_38 D_57 E_114 (NODEFAULT)   |Slit|
|INS OPTI9 NAME      |no         |GRISM-L GRISM-M (NODEFAULT)   |IMG-LM mask/grism wheel|
|INS OPTI10 NAME         |no         |full_L full_M (NODEFAULT)                            |IMG-LM Filter name|
|INS OPTI11 NAME         |no         |OPEN ND1 ND2 ND3 ND4 ND5 (NODEFAULT)          |IMG-LM Neutral density filter|
|SEQ TIME              |no         |0..TBD (NODEFAULT)         |Total integration time (sec)|
|SEQ OFFSET COORDS     |no         |SKY DETECTOR (DETECTOR)    |Offset coordinate type selection|
|SEQ OFFSET1 LIST      |no         |-600..600 (NODEFAULT)      |List of X or RA offsets (arcsec)|
|SEQ OFFSET2 LIST      |no         |-600..600 (NODEFAULT)      |List of Y or DEC offsets (arcsec)|
|SEQ NEXPO             |no         |0..1000 (NODEFAULT)        |Number of exposures per offset|
|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 (0)               |Chopping frequency|

