
% This file was generated using the python script ./export_manual.py
% include it into the main tex file,
% then pdflatex the main tex file

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_ADC } }
Based on \texttt{SHARKNIR_cal_ADC} python script.\\
It is a calibration template for the ADCs, it defines a loop where at each iteration ADCs moves by a fixed amount defined by the user and for each position it acquire an image. The rotation can be co-rotation or counter-rotation, defined by the user. At the end of the loops the ADCs move to the initial position and "turns them off".\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ ADC ON } 
\item \texttt{ LOOP ACTIONS } 
\item \texttt{ APPLYING CO-ROTATION ROTATION TO THE ADC } 
\item \texttt{ APPLYING CO-ROTATION ROTATION TO THE ADC } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ Reset offset to 0 } 
\item \texttt{ APPLYING CO-ROTATION ROTATION TO THE ADC } 
\item \texttt{ APPLYING CO-ROTATION ROTATION TO THE ADC } 
\item \texttt{ ADC OFF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC_Offset & NO & \texttt{None} \\
            AMOUNT & NO & \texttt{3} \\
            STEPS & NO & \texttt{5} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_ADC1_mindisp } }
Based on \texttt{SHARKNIR_cal_ADC1_mindisp} python script.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ ADC ON } 
\item \texttt{ LOOP ACTIONS } 
\item \texttt{ MOVING ADC 1 } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\item \texttt{ FITTING FILES TO COMPUTE MIN DISP } 
\item \texttt{ SETTING BOTH ADCS TO MIN_DISP } 
\item \texttt{ ADC OFF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC1_PosAng & NO & \texttt{min_disp} \\
            ADC2_PosAng & NO & \texttt{min_disp} \\
            ADC_Offset & NO & \texttt{None} \\
            AMOUNT & NO & \texttt{5} \\
            STEPS & NO & \texttt{9} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            METRIC & NO & \texttt{EE_frac} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_Flux } }
Based on \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam} python script.\\
Before the observation the star is behind the coronagraph, then an offset is applied (keep same observing setup, i.e., filter) to move the star out of the coronagraphic mask. The derotator mode should be tracking the field with possible adjustment of the angle to prevent the star from rotating around the coronagraph. ND filter is required for bright targets to prevent detector saturation (ND filter to be chosen by the user according to target magnitude).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ IF LOOP IS CLOSED: MOVE CENTROID } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            VECTOR_3 & NO & \texttt{0} \\
            VECTOR_4 & NO & \texttt{1} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_10 & YES & \texttt{0} \\
            VECTOR_11 & YES & \texttt{0} \\
            VECTOR_12 & YES & \texttt{0} \\
            VECTOR_13 & YES & \texttt{0} \\
            VECTOR_14 & YES & \texttt{0} \\
            VECTOR_15 & YES & \texttt{0} \\
            VECTOR_16 & YES & \texttt{0} \\
            VECTOR_17 & YES & \texttt{0} \\
            VECTOR_18 & YES & \texttt{0} \\
            VECTOR_19 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_20 & YES & \texttt{0} \\
            VECTOR_21 & YES & \texttt{0} \\
            VECTOR_22 & YES & \texttt{0} \\
            VECTOR_23 & YES & \texttt{0} \\
            VECTOR_24 & YES & \texttt{0} \\
            VECTOR_25 & YES & \texttt{0} \\
            VECTOR_26 & YES & \texttt{0} \\
            VECTOR_27 & YES & \texttt{0} \\
            VECTOR_28 & YES & \texttt{0} \\
            VECTOR_29 & YES & \texttt{0} \\
            VECTOR_30 & YES & \texttt{0} \\
            VECTOR_31 & YES & \texttt{0} \\
            VECTOR_32 & YES & \texttt{0} \\
            VECTOR_33 & YES & \texttt{0} \\
            VECTOR_34 & YES & \texttt{0} \\
            VECTOR_35 & YES & \texttt{0} \\
            VECTOR_36 & YES & \texttt{0} \\
            VECTOR_37 & YES & \texttt{0} \\
            VECTOR_38 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
            VECTOR_7 & YES & \texttt{0} \\
            VECTOR_8 & YES & \texttt{0} \\
            VECTOR_9 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_Flux_MaskRemoval } }
Based on \texttt{SHARKNIR_cal_Flux_MaskRemoval} python script.\\
This template perform flux calibration without moving the internal DM but removing and then putting back the coro mask.
    The user can specify the SCI_FILT_W combination in order to select the ND filter to use during flux acquisition. Reads from OS and save the instrument configuration. Remove the coro mask (WINDOW) and insert the ND filter specified by the user( the other filter, the scientific one, will NOT be moved). Take the image and then restore the original configuration at the beginning of the template execution. TT loop is maintained according to its status at the launch of the template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{  OPEN INTERNAL TT LOOP } 
\item \texttt{ Setup + image } 
\item \texttt{ Setup + image } 
\item \texttt{  CLOSE INTERNAL TT LOOP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Center} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_InstrumentBackground } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
At the end of the science observation, close the SHARK-NIR entrance shutter, leave the instrument in the same setup of the science OBs just executed and take an exposure with the same DIT of the science OB and NDIT=5.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            InstrumentMode & YES & \texttt{DI} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{60} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{10} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_SkyBackground } }
Based on \texttt{SHARKNIR_cal_SkyBackground} python script.\\
Observe a blank field close to the science target (separation~10-20 arcsec, offset given by the telescope). Same set-up as normal science observations but AO is not running. Coronagraph employed, according to the observations. A list of telescope offsets is added to reach an empty field and jitter.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TRANSFORM COORDINATES TO RAD } 
\item \texttt{ SEND TELESCOPE OFFSET } 
\item \texttt{ SETUP + IMAGE } 
\item \texttt{ SEND TELESCOPE OFFSET BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ND_FILT_W & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CoordinateSystem & NO & \texttt{RADEC} \\
            OFFSETX & NO & \texttt{0} \\
            OFFSETY & NO & \texttt{0} \\
          \midrule
            BinocularFlag & YES & \texttt{OFF} \\
            MoveType & YES & \texttt{REL} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_TelescopeFlatField } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
This calibration is performed through sky observation in order to record a flat (that include telescope large scale transmission variations) on the detector. The filters will be the same used for the observed scientific targets. We plan to have 5 different exposure times for each filter or a single exposure and using the up-the-ramp readout mode (as for the instrument flat).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ND_FILT_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            MaskComb & YES & \texttt{CI_HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{[u'1', u'1']} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{5} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_mon_Ghost } }
Based on \texttt{SHARKNIR_cal_mon_Ghost} python script.\\
Automatically aligns the coronagraphic masks and acquires a saturated image for each combination.
For the Shape Pupil and Gauss masks the alignment occurs through the PSF alignment template with the internal loop closed, while for the four-quadrant mask the alignment occurs with the internal loop open plus a TT offset for better centering. The OD1_3 filter is inserted on the technical channel, while by default during the alignment the NB_H2 + ND3 filters are inserted, while for the saturated image the neutral filter is removed.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ INITIAL SETUP } 
\item \texttt{ GAUSS CORO MASK GHOST } 
\item \texttt{ SP1 CORO MASK GHOST } 
\item \texttt{ SP2a CORO MASK GHOST } 
\item \texttt{ SP2b CORO MASK GHOST } 
\item \texttt{ FQPM CORO MASK GHOST } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{FOCUS_IN} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{ON} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{CI} \\
            ND_FILT_W & YES & \texttt{OD1_3} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_PD } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_PD} python script.\\
We have 6 Phase Diversity setup (focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+), this tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position. At the end of the template the correction vector is printed.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ First LOOP (FOCUSED STAR) } 
\item \texttt{         PAUSE / RESUME } 
\item \texttt{ APPLY 3mm OFFSET ON SOUL } 
\item \texttt{ Second LOOP (DEFOCUSED STAR) } 
\item \texttt{ ONERA CODE in IDL, using IDL bridges } 
\item \texttt{ Calculate modes } 
\item \texttt{ MOVING BACK SOUL TO -3mm } 
\item \texttt{ PAUSE / RESUME } 
\item \texttt{ Apply Modes } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{SP_LYOT_STOP} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{10} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_PD_argos } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_PD_argos} python script.\\
Usually the PaB scientific filter is used. We have 6 Phase Diversity setup (focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+), this tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position. At the end of the template the correction vector is applied, but the shape is not saved as a flat file.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ First LOOP (FOCUSED STAR) } 
\item \texttt{         PAUSE / RESUME } 
\item \texttt{ APPLY 3mm OFFSET ON SOUL } 
\item \texttt{ Second LOOP (DEFOCUSED STAR) } 
\item \texttt{ ONERA CODE in IDL, using IDL bridges } 
\item \texttt{ Calculate modes } 
\item \texttt{ MOVING BACK SOUL TO -3mm } 
\item \texttt{ Apply Modes } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{SP_LYOT_STOP} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{10} \\
            NGROUPS & NO & \texttt{2} \\
            NREADS & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_PD_lab } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_PD_lab} python script.\\
Internal fiber sources are used. We have 6 Phase Diversity setup (focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+), this tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position. t the end of the template the correction vector is applied and the DM shape is saved as a flat file.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ LOOP FOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ LOOP DEFOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ ONERA CODE in IDL, using IDL bridges } 
\item \texttt{ Calculate modes } 
\item \texttt{ PAUSE / RESUME } 
\item \texttt{ Apply Modes } 
\item \texttt{ Save and apply flat } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{SP_LYOT_STOP} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            ND_FILT_W & YES & \texttt{OD2} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDIT & YES & \texttt{10} \\
            NGROUPS & YES & \texttt{2} \\
            NREADS & YES & \texttt{1} \\
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_trial } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_trial} python script.\\
NCPA estimation using Trial and Error approach. Baseline setup is 11 steps per mode, with steps of 0.01um RMS shape of DM, NDIT=5. SP Lyot stop is inserted. The template doesn't make any instrument setup. For internal fiber use it with PaB filter inserted.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{  Retrieving RTC centroid origin } 
\item \texttt{ CHECK FOR ABSOLUTE OR RELATIVE DISPLACEMENT } 
\item \texttt{ LOOP FOR EVERY MODE } 
\item \texttt{ LOOP FOR EVERY STEP } 
\item \texttt{  Pass centroid to the RTC } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\item \texttt{ FITTING FILES FOR THIS MODE } 
\item \texttt{ APPLY OPTIMIZED MODES TO DM } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            STEPS & NO & \texttt{5} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Center} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ABSOLUTE & NO & \texttt{true} \\
            METRIC & NO & \texttt{EE_frac} \\
            VECTOR_10 & NO & \texttt{0} \\
            VECTOR_11 & NO & \texttt{0} \\
            VECTOR_12 & NO & \texttt{0} \\
            VECTOR_13 & NO & \texttt{0} \\
            VECTOR_14 & NO & \texttt{0} \\
            VECTOR_15 & NO & \texttt{0} \\
            VECTOR_16 & NO & \texttt{0} \\
            VECTOR_17 & NO & \texttt{0} \\
            VECTOR_18 & NO & \texttt{0} \\
            VECTOR_19 & NO & \texttt{0} \\
            VECTOR_20 & NO & \texttt{0} \\
            VECTOR_21 & NO & \texttt{0} \\
            VECTOR_22 & NO & \texttt{0} \\
            VECTOR_23 & NO & \texttt{0} \\
            VECTOR_24 & NO & \texttt{0} \\
            VECTOR_25 & NO & \texttt{0} \\
            VECTOR_26 & NO & \texttt{0} \\
            VECTOR_27 & NO & \texttt{0} \\
            VECTOR_28 & NO & \texttt{0} \\
            VECTOR_29 & NO & \texttt{0} \\
            VECTOR_3 & NO & \texttt{0} \\
            VECTOR_30 & NO & \texttt{0} \\
            VECTOR_31 & NO & \texttt{0} \\
            VECTOR_32 & NO & \texttt{0} \\
            VECTOR_33 & NO & \texttt{0} \\
            VECTOR_34 & NO & \texttt{0} \\
            VECTOR_35 & NO & \texttt{0} \\
            VECTOR_36 & NO & \texttt{0} \\
            VECTOR_37 & NO & \texttt{0} \\
            VECTOR_38 & NO & \texttt{0} \\
            VECTOR_4 & NO & \texttt{0} \\
            VECTOR_6 & NO & \texttt{0} \\
            VECTOR_7 & NO & \texttt{0} \\
            VECTOR_8 & NO & \texttt{0} \\
            VECTOR_9 & NO & \texttt{0} \\
          \midrule
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_trial_DBI } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_trial_DBI} python script.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{  Retrieving RTC centroid origin } 
\item \texttt{ CHECK FOR ABSOLUTE OR RELATIVE DISPLACEMENT } 
\item \texttt{ LOOP FOR EVERY MODE } 
\item \texttt{ LOOP FOR EVERY STEP } 
\item \texttt{  Pass centroid to the RTC } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\item \texttt{ FITTING FILES FOR THIS MODE } 
\item \texttt{ APPLY OPTIMIZED MODES TO DM } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC_Mode & NO & \texttt{OFF} \\
            STEPS & NO & \texttt{11} \\
          \midrule
            LYOT_GRISM_W & YES & \texttt{WOLLASTON} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{0.3} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{PD_wollaston_stripe_small} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ABSOLUTE & NO & \texttt{true} \\
            METRIC & NO & \texttt{EE_frac} \\
            VECTOR_10 & NO & \texttt{0} \\
            VECTOR_11 & NO & \texttt{0} \\
            VECTOR_12 & NO & \texttt{0} \\
            VECTOR_13 & NO & \texttt{0} \\
            VECTOR_14 & NO & \texttt{0} \\
            VECTOR_15 & NO & \texttt{0} \\
            VECTOR_16 & NO & \texttt{0} \\
            VECTOR_17 & NO & \texttt{0} \\
            VECTOR_18 & NO & \texttt{0} \\
            VECTOR_19 & NO & \texttt{0} \\
            VECTOR_20 & NO & \texttt{0} \\
            VECTOR_21 & NO & \texttt{0} \\
            VECTOR_22 & NO & \texttt{0} \\
            VECTOR_23 & NO & \texttt{0} \\
            VECTOR_24 & NO & \texttt{0} \\
            VECTOR_25 & NO & \texttt{0} \\
            VECTOR_26 & NO & \texttt{0} \\
            VECTOR_27 & NO & \texttt{0} \\
            VECTOR_28 & NO & \texttt{0} \\
            VECTOR_29 & NO & \texttt{0} \\
            VECTOR_3 & NO & \texttt{0} \\
            VECTOR_30 & NO & \texttt{0} \\
            VECTOR_31 & NO & \texttt{0} \\
            VECTOR_32 & NO & \texttt{0} \\
            VECTOR_33 & NO & \texttt{0} \\
            VECTOR_34 & NO & \texttt{0} \\
            VECTOR_35 & NO & \texttt{0} \\
            VECTOR_36 & NO & \texttt{0} \\
            VECTOR_37 & NO & \texttt{0} \\
            VECTOR_38 & NO & \texttt{0} \\
            VECTOR_4 & NO & \texttt{0} \\
            VECTOR_6 & NO & \texttt{0} \\
            VECTOR_7 & NO & \texttt{0.02} \\
            VECTOR_8 & NO & \texttt{0.02} \\
            VECTOR_9 & NO & \texttt{0} \\
          \midrule
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_wollaston } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_wollaston} python script.\\
The Phase_Diversity_Couple filter is inserted in DB_FILT_W. The WOLLASTON prism is inserted in the LYOT_GRISM_W. Two different CCD frame dimension are used. We have 6 Phase Diversity setup (focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+), this tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ First LOOP (FOCUSED STAR) } 
\item \texttt{ PAUSE / RESUME } 
\item \texttt{ Second LOOP (DEFOCUSED STAR) } 
\item \texttt{ ONERA CODE in IDL, using IDL bridges } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{Phase_Diversity_Couple} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            LYOT_GRISM_W & YES & \texttt{WOLLASTON} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{10} \\
            NGROUPS & NO & \texttt{2} \\
            NREADS & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_cal_tec_NCPA_wollaston_lab } }
Based on \texttt{SHARKNIR_cal_tec_NCPA_wollaston_lab} python script.\\
The internal focus fiber source is used. The Phase_Diversity_Couple filter is inserted in DB_FILT_W. The WOLLASTON
prism is inserted in the LYOT_GRISM_W. Two different CCD frame dimension
are used. We have 6 Phase Diversity setup (focus fiber, focus fiber+PDlens-, focus
fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+), this
tempalte uses them to create a PD reconstructor by also adding amount of aberrations
for each VECTOR (both positive and negative of the specified amount). If all
aberrations are set to 0, the template will still acquire images with the 6 different
setups, with the DM in best flat position.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ LOOP FOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ LOOP DEFOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ ONERA CODE in IDL, using IDL bridges } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{Phase_Diversity_Couple} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            LYOT_GRISM_W & YES & \texttt{WOLLASTON} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SCI_FILT_W1 & YES & \texttt{NB_H2} \\
            SCI_FILT_W2 & YES & \texttt{ND3} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDIT & YES & \texttt{10} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_ci_acq } }
Based on \texttt{SHARKNIR_gen_acq} python script.\\
Description of this template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TELESCOPE PRESET } 
\item \texttt{ Choose alignment type } 
\item \texttt{ CHECK!!! LAB TEST!!!! } 
\item \texttt{ Choose alignment } 
\item \texttt{ Apo Alignment } 
\item \texttt{ Lyot Alignment FOR CI and LSS } 
\item \texttt{ Lyot Alignment for DI } 
\item \texttt{  PSF Alignment } 
\item \texttt{  START AND WAIT INSTRUMENT SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            MaskComb & NO & \texttt{CI_FQPM} \\
            ND_FILT_W & NO & \texttt{OD2} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{CI} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AODEC & NO & \texttt{0} \\
            AOMODE & NO & \texttt{REPOINT} \\
            AORA & NO & \texttt{0} \\
            CoordinateSystem & NO & \texttt{RADEC} \\
            Epoch & NO & \texttt{2018.3} \\
            Equinox & NO & \texttt{J2000} \\
            GSDEC & NO & \texttt{0} \\
            GSRA & NO & \texttt{0} \\
            OBJDEC & NO & \texttt{None} \\
            OBJECTNAME & NO & \texttt{None} \\
            OBJEQUIN & NO & \texttt{2000} \\
            OBJRA & NO & \texttt{None} \\
            PMAODEC & NO & \texttt{0} \\
            PMAORA & NO & \texttt{0} \\
            PMDEC & NO & \texttt{0} \\
            PMGSDEC & NO & \texttt{0} \\
            PMGSRA & NO & \texttt{0} \\
            PMRA & NO & \texttt{0} \\
            TelescopeMode & NO & \texttt{ADAPTIVEACE_TRACK} \\
          \midrule
            BinocularFlag & YES & \texttt{OFF} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_ci_mon_DetectorPersistence } }
Based on \texttt{SHARKNIR_ci_mon_DetectorPersistence} python script.\\
Record a background exposure (10 seconds), then one highly saturated exposure (30 seconds) with internal focus fiber inserted and lamp switched on; then the DIT and NDIT of the images with source off are editable.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Instrument background with DIT=10s } 
\item \texttt{ Setup + saturated image } 
\item \texttt{ Switching off all lamps + DIT=custom image } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{CI} \\
            LYOT_GRISM_W & YES & \texttt{SP_LYOT_STOP} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{30} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_ci_obs } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
Template for acquiring images: choose the filters, the exposure time in min (DIT) of the single image, the number of images (NDIT) and the READOUT (usually for CI scientific images: corostripe)\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Center} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_di_acq } }
Based on \texttt{SHARKNIR_gen_acq} python script.\\
Description of this template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TELESCOPE PRESET } 
\item \texttt{ Choose alignment type } 
\item \texttt{ CHECK!!! LAB TEST!!!! } 
\item \texttt{ Choose alignment } 
\item \texttt{ Apo Alignment } 
\item \texttt{ Lyot Alignment FOR CI and LSS } 
\item \texttt{ Lyot Alignment for DI } 
\item \texttt{  PSF Alignment } 
\item \texttt{  START AND WAIT INSTRUMENT SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            LYOT_GRISM_W & NO & \texttt{HOLE} \\
            ND_FILT_W & NO & \texttt{OD2} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{DI} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AODEC & NO & \texttt{0} \\
            AOMODE & NO & \texttt{REPOINT} \\
            AORA & NO & \texttt{0} \\
            BinocularFlag & NO & \texttt{OFF} \\
            CoordinateSystem & NO & \texttt{RADEC} \\
            Epoch & NO & \texttt{2018.3} \\
            Equinox & NO & \texttt{J2000} \\
            GSDEC & NO & \texttt{0} \\
            GSRA & NO & \texttt{0} \\
            OBJDEC & NO & \texttt{None} \\
            OBJECTNAME & NO & \texttt{None} \\
            OBJEQUIN & NO & \texttt{2000} \\
            OBJRA & NO & \texttt{None} \\
            PMAODEC & NO & \texttt{0} \\
            PMAORA & NO & \texttt{0} \\
            PMDEC & NO & \texttt{0} \\
            PMGSDEC & NO & \texttt{0} \\
            PMGSRA & NO & \texttt{0} \\
            PMRA & NO & \texttt{0} \\
            TelescopeMode & NO & \texttt{ADAPTIVEACE_TRACK} \\
          \midrule
            BinocularFlag & YES & \texttt{OFF} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_di_mon_DetectorGain } }
Based on \texttt{SHARKNIR_di_mon_DetectorGain} python script.\\
This calibration is performed using the FF internal lamp. 
Different filters (BB filters: BB_H, BB_Y, BB_J) and integration times, NDIT=5 for each filter Flat Field.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Setup + image with BB_H } 
\item \texttt{ Setup + image with BB_J } 
\item \texttt{ Setup + image with BB_Y } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{ON} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{DI} \\
            LYOT_GRISM_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            NDIT & YES & \texttt{5} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_di_mon_MaskRepeatability } }
Based on \texttt{SHARKNIR_di_mon_MaskRepeatability} python script.\\
Acquire an image for each mask (apodizer, fpm and lyot stop) and of an internal psf ref by using 128x128 frame, at the end of the template, the centroid coordinate will be printed. These is the order of the images acquired: APO_SP1, APO_SP2a, APO_SP2b, LYOT_GAUSS, LYOT_FQPM, LYOT_SP, CORO_FQPM, CORO_GAUSS, CORO_SP1, CORO_SP2a, CORO_SP2b, SLIT1, SLIT2, psf_ref_128x128.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ Apply RTC shape (flat) } 
\item \texttt{ LOOP APO MASKS } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE APO CENTER } 
\item \texttt{ LOOP LYOT MASKS } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE LYOT CENTER } 
\item \texttt{ LOOP CORO MASKS } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE CORO CENTER } 
\item \texttt{ TAKE PSF REFERENCE IMAGE } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ Summary of the results } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            ND_FILT_W & YES & \texttt{OD2} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            NDIT & YES & \texttt{1} \\
            NDROPS & YES & \texttt{0} \\
            NGROUPS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_di_obs } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
Template for acquiring images: choose the filters, the exposure time in min (DIT) of the single image, the number of images (NDIT) and the READOUT (usually for DI scientific images: Full_Image)\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{DI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_LampsOff } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
Switch off the internal lamps: CAL_FF_LAMP, CAL_FIBER_FOCUS_LAMP, CAL_FIBER_DEFOCUS_LAMP.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_Preset } }
Based on \texttt{SHARKNIR_gen_Preset} python script.\\
Prepare the observation, insert: the name and the RA and DEC coordinates of the target and the ADC+tracking mode. The template moves the derot to 0.5degree, because of the NCPA were characterized at this angle. FIELD_FREE: derot in ideal position to maximize the derotation time. FIELD_FIXED + DROT_PosAng: derot start from the DROT_PosAng. PUPIL + DROT_PosAng: derot in the fixed position DROT_PosAng.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TRANSFORM COORDINATES TO RAD } 
\item \texttt{ SETUP  } 
\item \texttt{ STOP ANY PREVIOUS TRACKING  } 
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ PRESET TELESCOPE AND TRACK  } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC_Mode & NO & \texttt{OFF} \\
            DROT_Mode & NO & \texttt{FIELD_FREE} \\
            DROT_PosAng & NO & \texttt{90} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AOMODE & NO & \texttt{NORMAL} \\
            BinocularFlag & NO & \texttt{OFF} \\
            OBJDEC & NO & \texttt{31 15 30.1} \\
            OBJECTNAME & NO & \texttt{Star} \\
            OBJMAG & NO & \texttt{11} \\
            OBJRA & NO & \texttt{17 21 13.11} \\
            PMDEC & NO & \texttt{0} \\
            PMRA & NO & \texttt{0} \\
            TelescopeMode & NO & \texttt{TRACK} \\
          \midrule
            CoordinateSystem & YES & \texttt{RADEC} \\
            Equinox & YES & \texttt{j2000} \\
            OBJEQUIN & YES & \texttt{2000} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_abort } }
Based on \texttt{SHARKNIR_gen_abort} python script.\\
Run an emergencyAborAll.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Aborting all motors and scicam } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_acq } }
Based on \texttt{SHARKNIR_gen_acq} python script.\\
Description of this template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TELESCOPE PRESET } 
\item \texttt{ Choose alignment type } 
\item \texttt{ CHECK!!! LAB TEST!!!! } 
\item \texttt{ Choose alignment } 
\item \texttt{ Apo Alignment } 
\item \texttt{ Lyot Alignment FOR CI and LSS } 
\item \texttt{ Lyot Alignment for DI } 
\item \texttt{  PSF Alignment } 
\item \texttt{  START AND WAIT INSTRUMENT SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DROT_PosAng & NO & \texttt{0.0} \\
            MaskComb & NO & \texttt{LSS_LR_Distant} \\
            ND_FILT_W & NO & \texttt{OD2} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{LSS} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AODEC & NO & \texttt{0} \\
            AOMODE & NO & \texttt{REPOINT} \\
            AORA & NO & \texttt{0} \\
            BinocularFlag & NO & \texttt{OFF} \\
            CoordinateSystem & NO & \texttt{RADEC} \\
            Epoch & NO & \texttt{2018.3} \\
            Equinox & NO & \texttt{J2000} \\
            GSDEC & NO & \texttt{0} \\
            GSRA & NO & \texttt{0} \\
            OBJDEC & NO & \texttt{None} \\
            OBJECTNAME & NO & \texttt{None} \\
            OBJEQUIN & NO & \texttt{2000} \\
            OBJRA & NO & \texttt{None} \\
            PMAODEC & NO & \texttt{0} \\
            PMAORA & NO & \texttt{0} \\
            PMDEC & NO & \texttt{0} \\
            PMGSDEC & NO & \texttt{0} \\
            PMGSRA & NO & \texttt{0} \\
            PMRA & NO & \texttt{0} \\
            TelescopeMode & NO & \texttt{ADAPTIVEACE_TRACK} \\
          \midrule
            BinocularFlag & YES & \texttt{OFF} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_base } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
"Base" template used for an instrument/motor setup, a detector setup, and acquiring an image.
Or just a detector and image setup.
Or just an instrument/motor setup.
Or just a detector setup.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            InstrumentMode & NO & \texttt{GEN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_cal_InstrumentFlatField } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
DO NOT EDIT THIS TEMPLATE!! This is an internal calibration. All the parameters are already setted. Shutter closed, source: FF_LAMP. Scicam parameters already characterized for acquiring flatfield. The template exposes for 5 flux levels (15, 30, 45, 60 and 75 percent of the saturation level). Acquire in Full_Image.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            LYOT_GRISM_W & NO & \texttt{HOLE} \\
            ND_FILT_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{ON} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{DI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{5} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_cal_StarCenter } }
Based on \texttt{SHARKNIR_gen_cal_StarCenter} python script.\\
Simply: Setup + Exposure. Get the coronagraph position from the previous template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{  Waffle activation } 
\item \texttt{ Setup + image } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            InstrumentMode & YES & \texttt{GEN} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{0.83} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_cal_spiral } }
Based on \texttt{SHARKNIR_gen_cal_spiral} python script.\\
It is used for a better FQPM alignment. Check the INSTRUMENT SETUP. STEP = Step of tip/tilt applied to DM. STEP 0.01 = 1/2 pix movement on SCICAM. Retrieving RTC centroid origin + Take an image on RTC + Calculate centroid on RTC + Normalize values to [-1, +1] + SPIRAL LOOP + Pass centroid to the RTC + Take an image on RTC + EXPOSING SASHA + PUT BACK CENTROID ORIGIN + Pass centroid to the RTC + Take an image on RTC + Calculate centroid on RTC + Normalize values to [-1, +1].\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ RTC Preparation } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{  Take an image on RTC } 
\item \texttt{  Calculate centroid on RTC } 
\item \texttt{  Normalize values to [-1, +1] } 
\item \texttt{ SPIRAL LOOP } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Take an image on RTC } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Take an image on RTC } 
\item \texttt{  Calculate centroid on RTC } 
\item \texttt{  Normalize values to [-1, +1] } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            NDIT & YES & \texttt{1} \\
            NREADS & YES & \texttt{1} \\
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            REPEAT & NO & \texttt{10} \\
            STEP & NO & \texttt{0.2} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_cal_spiral_with_pupil } }
Based on \texttt{SHARKNIR_gen_cal_spiral_with_pupil} python script.\\
The template performs a spiral by acquiring pupil images and moving the DM in tip and tilt in OPEN loop\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ RTC Preparation } 
\item \texttt{ SPIRAL LOOP } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ Setup + image } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDROPS & NO & \texttt{1} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            NDIT & YES & \texttt{1} \\
            NGROUPS & YES & \texttt{2} \\
            NREADS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            REPEAT & NO & \texttt{10} \\
            STEP & NO & \texttt{0.2} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_cal_spiral_with_pupil_and_centroidorigin } }
Based on \texttt{SHARKNIR_gen_cal_spiral_with_pupil_and_centroidorigin} python script.\\
The template performs a spiral acquiring pupil images and moving the centroidorigin by the DM in closed loop\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ RTC Preparation } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{  Take an image on RTC } 
\item \texttt{  Calculate centroid on RTC } 
\item \texttt{  Normalize values to [-1, +1] } 
\item \texttt{ SPIRAL LOOP } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Take an image on RTC } 
\item \texttt{ FOCUS SETUP + IMAGE } 
\item \texttt{ DEFOCUS SETUP + IMAGE } 
\item \texttt{  EXPOSING SASHA } 
\item \texttt{ PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Take an image on RTC } 
\item \texttt{  Calculate centroid on RTC } 
\item \texttt{  Normalize values to [-1, +1] } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            NDIT & YES & \texttt{1} \\
            NREADS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            REPEAT & NO & \texttt{10} \\
            STEP & NO & \texttt{0.2} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_focus } }
Based on \texttt{SHARKNIR_gen_focus} python script.\\
This template shall setup the instrument, send commands to SOUL Z stage and acquire a PSF image for each Z position of SOUL. It shall be possible to edit the number of focus steps and its amplitude to apply to SOUL Z stage. At the end of the acquisition, the template shall analyse the acquired PSFs to find the PSF with the maximum EE and move SOUL to the corresponding position. Basically, it does a sweep in focus of SHARK-NIR by moving SOUL.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ LOOP FOR EVERY STEP } 
\item \texttt{ APPLY NEW FOCUS VALUE AND TAKE AN IMAGE } 
\item \texttt{ APPLY NEW FOCUS VALUE } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ MEASURE THE IMAGE } 
\item \texttt{ FITTING FILES FOR THIS THROUGH FOCUS } 
\item \texttt{ PAUSE / RESUME } 
\item \texttt{ APPLY OPTIMIZED FOCUS VALUE} 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AMOUNT & NO & \texttt{0.5} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{NB_PaB} \\
            STEPS & NO & \texttt{5} \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            LYOT_GRISM_W & YES & \texttt{SP_LYOT_STOP} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{0.3} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            METRIC & NO & \texttt{EE_frac} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_init } }
Based on \texttt{SHARKNIR_gen_init_and_park} python script.\\
Init motors. ADC in 0 position and then in nominal position min_disp, no init. INBEAM_TT init and in nominal position IN. LAMPS OFF. CRED2 temperature -15C degreee. Electrovalve ON, air is OFF.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ ELECTROVALVE AND TEMPERATURE MANAGEMENT } 
\item \texttt{ SET TECCAM TEMPERATURE } 
\item \texttt{ OPENING INTERNAL TT LOOP } 
\item \texttt{ PLACE ADCs to ZERO } 
\item \texttt{ CHECK AUTHORIZED INSTRUMENT ON LBT LEFT SIDE } 
\item \texttt{ INIT ALMOST ALL DEVICES } 
\item \texttt{  WAIT ALMOST ALL DEVICES } 
\item \texttt{ INIT CALIBRATION UNIT } 
\item \texttt{ INIT CALIBRATION UNIT } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC1_PosAng & YES & \texttt{min_disp} \\
            ADC2_PosAng & YES & \texttt{min_disp} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            INBEAM_TT & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_mon_Linearity } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
To obtain the instrument Flat Field (at least 5 flats with different DITs),  both to check the detector linearity, and to obtain the Bad Pixels map. It is expected that the detector FF depends on filters, final accumulated charge in the pixels. Thus, five different exposures will be taken at different count levels (realized via detector ramp frames) for each filter setup. In this case the template takes the background frames automatically. Comparing different count rates at constant DIT will also yield a linearity map of the detector. Acquire in Full_Image.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            ADC_Mode & YES & \texttt{OFF} \\
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{ON} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            LYOT_GRISM_W & YES & \texttt{HOLE} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{5} \\
            NDROPS & NO & \texttt{1} \\
            NGROUPS & NO & \texttt{19} \\
            NREADS & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_mon_ThermalBackground } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
Shutter closed, lamps off, no scientific filters, ND2+ND3 filters. Acquire images DIT 85s NDIT 15 --> NCOADDS  1, NDIT 15, NDROPS 0, NGROUPS 20, NREADS 1, READOUT Full_Image.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{DI} \\
            LYOT_GRISM_W & YES & \texttt{HOLE} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SCI_FILT_W1 & YES & \texttt{ND2} \\
            SCI_FILT_W2 & YES & \texttt{ND3} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDROPS & NO & \texttt{0} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            NDIT & YES & \texttt{11} \\
            NGROUPS & YES & \texttt{20} \\
            NREADS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_obs } }
Based on \texttt{SHARKNIR_gen_base} python script.\\
Template for acquiring images: choose the filters, the exposure time in min (DIT) of the single image, the number of images (NDIT) and the READOUT (usually for scientific images CI=corostripe, DI=Full_Image)\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SHOW INSTRUMENT SETUP } 
\item \texttt{ START INSTRUMENT SETUP } 
\item \texttt{ Evaluating if scientific or technical image } 
\item \texttt{ CONVERTING DIT INTO SCICAM PARAMS } 
\item \texttt{ SHOW DETECTOR SETUP } 
\item \texttt{ START SASHA SETUP } 
\item \texttt{ WAIT INSTRUMENT SETUP } 
\item \texttt{ WAIT SASHA SETUP } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ SHOW IMAGES STATS } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{CI_HOLE} \\
            ND_FILT_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
            SAVE & NO & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_park } }
Based on \texttt{SHARKNIR_gen_init_and_park} python script.\\
No Init motors. Move Shutter in nominal position IN. Opens real-time TT internal loop. Move ADC prisms in position 0 and ADC tracking is stopped. Move INBEAM_TT in 0,0. Lamps switched off. Move bearing at 140 degree in PUPIL mode. CRED2 at temperature +20C degree. Electrovalve OFF, air is circulating.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ ELECTROVALVE AND TEMPERATURE MANAGEMENT } 
\item \texttt{ SET TECCAM TEMPERATURE } 
\item \texttt{ OPENING INTERNAL TT LOOP } 
\item \texttt{ PLACE ADCs to ZERO } 
\item \texttt{ CHECK AUTHORIZED INSTRUMENT ON LBT LEFT SIDE } 
\item \texttt{ INIT ALMOST ALL DEVICES } 
\item \texttt{  WAIT ALMOST ALL DEVICES } 
\item \texttt{ INIT CALIBRATION UNIT } 
\item \texttt{ INIT CALIBRATION UNIT } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            DROT_PosAng & YES & \texttt{140.0} \\
            INBEAM_DEP & YES & \texttt{OUT} \\
            INBEAM_TT_X & YES & \texttt{0} \\
            INBEAM_TT_Y & YES & \texttt{0} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_CloseLoop } }
Based on \texttt{SHARKNIR_gen_tec_CloseLoop} python script.\\
Acquire a RTC image, then calculate the centroid on the RTC, normalize the values, pass the centroid to the RTC, change the Gain on the RTC and close the Real-Time TT loop.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Take an image on RTC } 
\item \texttt{ Calculate centroid on RTC } 
\item \texttt{ Normalize values to [-1, +1] } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Change Gain on RTC } 
\item \texttt{ CLOSE REAL-TIME TT LOOP } 
\item \texttt{ Return this } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTCAMTINT & NO & \texttt{0.000994919} \\
            TTPIXELGAINMODE & NO & \texttt{POINTGAIN} \\
            TTPIXELGAINRADIUS & NO & \texttt{15} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_OpenLoop } }
Based on \texttt{SHARKNIR_gen_tec_OpenLoop} python script.\\
Open the Real Time TT loop.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PD_reconstructor } }
Based on \texttt{SHARKNIR_gen_tec_PD_reconstructor} python script.\\
We have 6 Phase Diversity setup: focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+. This tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position. The template acquires 10 images for each PD setup (60 images) without aberration (VECTOR). If the aberration are edited in the template, it also acquires 10 images for each PD setup (60 images) for each edited aberration. Since it acquires images both for positive and negative amount of aberration, for each aberration 60*2 = 120 images are acquired.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{  Apply RTC shape (flat) } 
\item \texttt{  Call custom template method } 
\item \texttt{ SAVE MODES } 
\item \texttt{ LOOP FOR EVERY MODE } 
\item \texttt{ First we appy positive val, then negative val  } 
\item \texttt{ Apply RTC shape  } 
\item \texttt{ Call custom template method } 
\item \texttt{ LOOP FOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ LOOP DEFOCUS FIBER: SETUP + IMAGE } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{SP_LYOT_STOP} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SCI_FILT_W1 & YES & \texttt{NB_H2} \\
            SCI_FILT_W2 & YES & \texttt{ND3} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDIT & YES & \texttt{10} \\
            NGROUPS & YES & \texttt{2} \\
            NREADS & YES & \texttt{1} \\
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ABSOLUTE & NO & \texttt{true} \\
            VECTOR_10 & NO & \texttt{0} \\
            VECTOR_11 & NO & \texttt{0} \\
            VECTOR_12 & NO & \texttt{0} \\
            VECTOR_13 & NO & \texttt{0} \\
            VECTOR_14 & NO & \texttt{0} \\
            VECTOR_15 & NO & \texttt{0} \\
            VECTOR_16 & NO & \texttt{0} \\
            VECTOR_17 & NO & \texttt{0} \\
            VECTOR_18 & NO & \texttt{0} \\
            VECTOR_19 & NO & \texttt{0} \\
            VECTOR_20 & NO & \texttt{0} \\
            VECTOR_21 & NO & \texttt{0} \\
            VECTOR_22 & NO & \texttt{0} \\
            VECTOR_23 & NO & \texttt{0} \\
            VECTOR_24 & NO & \texttt{0} \\
            VECTOR_25 & NO & \texttt{0} \\
            VECTOR_26 & NO & \texttt{0} \\
            VECTOR_27 & NO & \texttt{0} \\
            VECTOR_28 & NO & \texttt{0} \\
            VECTOR_29 & NO & \texttt{0} \\
            VECTOR_30 & NO & \texttt{0} \\
            VECTOR_31 & NO & \texttt{0} \\
            VECTOR_32 & NO & \texttt{0} \\
            VECTOR_33 & NO & \texttt{0} \\
            VECTOR_34 & NO & \texttt{0} \\
            VECTOR_35 & NO & \texttt{0} \\
            VECTOR_36 & NO & \texttt{0} \\
            VECTOR_37 & NO & \texttt{0} \\
            VECTOR_38 & NO & \texttt{0} \\
            VECTOR_7 & NO & \texttt{0} \\
            VECTOR_8 & NO & \texttt{0} \\
            VECTOR_9 & NO & \texttt{0} \\
          \midrule
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_3 & YES & \texttt{0} \\
            VECTOR_4 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PD_wollaston } }
Based on \texttt{SHARKNIR_gen_tec_PD_wollaston} python script.\\
The Phase_Diversity_Couple filter is inserted in DB_FILT_W. The WOLLASTON prism is inserted in the LYOT_GRISM_W. We have 6 Phase Diversity setup: focus fiber, focus fiber+PDlens-, focus fiber+PDlens+, defocus fiber, defocus fiber+PDlens-, defocus fiber+PDlens+. This tempalte uses them to create a PD reconstructor by also adding amount of aberrations for each VECTOR (both positive and negative of the specified amount). If all aberrations are set to 0, the template will still acquire images with the 6 different setups, with the DM in best flat position. The template acquires 10 images for each PD setup (60 images) without aberration (VECTOR). If the aberration are edited in the template, it also acquires 10 images for each PD setup (60 images) for each edited aberration. Since it acquires images both for positive and negative amount of aberration, for each aberration 60*2 = 120 images are acquired.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START SASHA SETUP } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{  Apply RTC shape (flat) } 
\item \texttt{  Call custom template method } 
\item \texttt{ SAVE MODES } 
\item \texttt{ LOOP FOR EVERY MODE } 
\item \texttt{ First we appy positive val, then negative val  } 
\item \texttt{ Apply RTC shape  } 
\item \texttt{ Call custom template method } 
\item \texttt{ LOOP FOCUS FIBER: SETUP + IMAGE } 
\item \texttt{ LOOP DEFOCUS FIBER: SETUP + IMAGE } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{Phase_Diversity_Couple} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            LYOT_GRISM_W & YES & \texttt{WOLLASTON} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SCI_FILT_W1 & YES & \texttt{NB_H2} \\
            SCI_FILT_W2 & YES & \texttt{ND3} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NDIT & YES & \texttt{10} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ABSOLUTE & NO & \texttt{true} \\
            VECTOR_10 & NO & \texttt{0} \\
            VECTOR_11 & NO & \texttt{0} \\
            VECTOR_12 & NO & \texttt{0} \\
            VECTOR_13 & NO & \texttt{0} \\
            VECTOR_14 & NO & \texttt{0} \\
            VECTOR_15 & NO & \texttt{0} \\
            VECTOR_16 & NO & \texttt{0} \\
            VECTOR_17 & NO & \texttt{0} \\
            VECTOR_18 & NO & \texttt{0} \\
            VECTOR_19 & NO & \texttt{0} \\
            VECTOR_20 & NO & \texttt{0} \\
            VECTOR_21 & NO & \texttt{0} \\
            VECTOR_22 & NO & \texttt{0} \\
            VECTOR_23 & NO & \texttt{0} \\
            VECTOR_24 & NO & \texttt{0} \\
            VECTOR_25 & NO & \texttt{0} \\
            VECTOR_26 & NO & \texttt{0} \\
            VECTOR_27 & NO & \texttt{0} \\
            VECTOR_28 & NO & \texttt{0} \\
            VECTOR_29 & NO & \texttt{0} \\
            VECTOR_30 & NO & \texttt{0} \\
            VECTOR_31 & NO & \texttt{0} \\
            VECTOR_32 & NO & \texttt{0} \\
            VECTOR_33 & NO & \texttt{0} \\
            VECTOR_34 & NO & \texttt{0} \\
            VECTOR_35 & NO & \texttt{0} \\
            VECTOR_36 & NO & \texttt{0} \\
            VECTOR_37 & NO & \texttt{0} \\
            VECTOR_38 & NO & \texttt{0} \\
            VECTOR_7 & NO & \texttt{0} \\
            VECTOR_8 & NO & \texttt{0} \\
            VECTOR_9 & NO & \texttt{0} \\
          \midrule
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_3 & YES & \texttt{0} \\
            VECTOR_4 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PSFAlignment } }
Based on \texttt{SHARKNIR_gen_tec_PSFAlignment} python script.\\
Template for the PSF alignment using the centroid origin. Reset RTC tiptilt + open the loop if closed + Setup + image coronagraphic mask + determine the center + setup without coronagraph and acquire an image + Close loop + Retrieving RTC centroid origin + acquire sasha + iteration to align the PSF + exposing sasha + retrieve position of PSF + compute the displacement + check if converge + transform to TecCam delta + Pass centroid to the RTC + Putting back the mask.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ Reset RTC tiptilt  } 
\item \texttt{ PREPARE SETUP TO CHECK CORO CENTER } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE CORO CENTER } 
\item \texttt{ PREPARE SETUP WITHOUT CORO } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ Close loop } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ ITERATIONS TO ALIGN PSF } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ Transform to teccam delta } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Putting back the mask } 
\item \texttt{  Set RTC new centroid to Coro Mask Center } 
\item \texttt{  EXPOSING SASHA } 
\item \texttt{  RETRIEVE POSITION OF PSF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{CI_GAUSS_LYOT} \\
            ND_FILT_W & NO & \texttt{OD1_3} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PSFAlignment_lab } }
Based on \texttt{SHARKNIR_gen_tec_PSFAlignment_lab} python script.\\
Template for the alignment of the PSF generated by the internal fiber source using the centroid origin.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ OPEN REAL-TIME TT LOOP } 
\item \texttt{ Reset RTC tiptilt  } 
\item \texttt{ PREPARE SETUP TO CHECK CORO CENTER } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE CORO CENTER } 
\item \texttt{ PREPARE SETUP WITHOUT CORO } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ Close loop } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ ITERATIONS TO ALIGN PSF } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ Transform to teccam delta } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Putting back the mask } 
\item \texttt{  Set RTC new centroid to Coro Mask Center } 
\item \texttt{  EXPOSING SASHA } 
\item \texttt{  RETRIEVE POSITION OF PSF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC_Mode & NO & \texttt{OFF} \\
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{CI_GAUSS_LYOT} \\
            ND_FILT_W & NO & \texttt{OD0_5} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{ON} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTCAMTINT & NO & \texttt{0.000994919} \\
            TTPIXELGAINMODE & NO & \texttt{POINTGAIN} \\
            TTPIXELGAINRADIUS & NO & \texttt{15} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PSFAlignment_tiptilt } }
Based on \texttt{SHARKNIR_gen_tec_PSFAlignment_tiptilt} python script.\\
This template align the PSF behind the selected
coronagraphic mask, by moving the internal DM by an amount of TT. At the end of
the template the TT internal loop is OPEN.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Reset RTC tiptilt  } 
\item \texttt{ PREPARE SETUP TO CHECK CORO CENTER } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE CORO CENTER } 
\item \texttt{ PREPARE SETUP WITHOUT CORO } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{  Close loop } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ ITERATIONS TO ALIGN PSF } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{  Close loop } 
\item \texttt{  Set RTC new centroid to Coro Mask Center } 
\item \texttt{ Putting back the mask } 
\item \texttt{  EXPOSING SASHA } 
\item \texttt{  RETRIEVE POSITION OF PSF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{CI_GAUSS_LYOT} \\
            ND_FILT_W & NO & \texttt{OD1_3} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PSFAlignment_tiptilt_lab } }
Based on \texttt{SHARKNIR_gen_tec_PSFAlignment_tiptilt_lab} python script.\\
This template align the PSF generated by the internal focus fiber behind the selected coronagraphic mask, by moving the internal DM by an amount of TT. At the end of the template the TT internal loop is OPEN.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Reset RTC tiptilt  } 
\item \texttt{ PREPARE SETUP TO CHECK CORO CENTER } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE CORO CENTER } 
\item \texttt{ PREPARE SETUP WITHOUT CORO } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{  Close loop } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ ITERATIONS TO ALIGN PSF } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{  Close loop } 
\item \texttt{  Set RTC new centroid to Coro Mask Center } 
\item \texttt{ Putting back the mask } 
\item \texttt{  EXPOSING SASHA } 
\item \texttt{  RETRIEVE POSITION OF PSF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ADC_Mode & NO & \texttt{OFF} \\
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{CI_GAUSS_LYOT} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{ON} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{128x128} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PupilApoAlignment } }
Based on \texttt{SHARKNIR_gen_tec_PupilApoAlignment} python script.\\
The position of INBEAM_TT mirror is optimized in order to have the first pupil image centered with the apodizer. This is obtained comparing the apodizer image on SCICAM (NB_ContH inserted), with the image of the LBT pupil (threshold 1 pix). Then the orientation of the LBT spider matches with the apodizer orientation by moving SHARK-NIR derotator (threshold 0.5 deg).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ PREPARE SETUP FOR ROTATION ALIGNMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE APO SPIDER CENTER AND ORIENTATION } 
\item \texttt{ PREPARE SETUP FOR LBT orientation } 
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ COUNTS IN PUPIL IMAGE } 
\item \texttt{ DETERMINE LBT SPIDER ORIENTATION } 
\item \texttt{ GET CURRENT DROT } 
\item \texttt{ SETUP DEROT TO ABS POS } 
\item \texttt{ ITERATIONS TO ALIGN PUPILS } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PUPIL } 
\item \texttt{ GET CURRENT DROT } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ GET CURRENT INBEAM_TT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ SUM AND APPLY THE DISPLACEMENT } 
\item \texttt{  ITERATIONS TO ROTATE PUPILS } 
\item \texttt{              EXPOSING SASHA } 
\item \texttt{          CHECK CENTERING AND CLOCKING } 
\item \texttt{          GET CURRENT DROT } 
\item \texttt{          CHECK IF CONVERGED } 
\item \texttt{              SETUP DEROT TO ABS POS } 
\item \texttt{ REMOVING PUPIL LENS DEPLOYER AND PUT BACK APO MASK } 
\item \texttt{ SAVE RESIDUAL DISPLACEMENT X,Y } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            APODIZER_W & NO & \texttt{SP2a_APO} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{CI} \\
            LYOT_GRISM_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            READOUT & YES & \texttt{Center} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_PupilLyotAlignment } }
Based on \texttt{SHARKNIR_gen_tec_PupilLyotAlignment} python script.\\
The position of INBEAM_TT mirror is optimized in order to have the first pupil
image centered with the lyot stop. This is obtained comparing the lyot stop image
on SCICAM (ND2 inserted), with the image of the LBT pupil (threshold 3
pix).
For LSS, DI and DBI mode, use SP_LYOT_STOP.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ SETUP FOR LYOT CENTER CHECK } 
\item \texttt{ Setup + image } 
\item \texttt{ DETERMINE LYOT CENTER } 
\item \texttt{ PREPARE SETUP FOR LBT orientation } 
\item \texttt{ Setup + image } 
\item \texttt{ COUNTS IN PUPIL IMAGE } 
\item \texttt{ ITERATIONS TO ALIGN PUPILS } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ DETERMINE LBT PUPIL CENTER } 
\item \texttt{ GET CURRENT DROT } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ GET CURRENT INBEAM_TT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ SUM AND APPLY THE DISPLACEMENT } 
\item \texttt{ END OF THE LOOP } 
\item \texttt{ REMOVING PUPIL LENS DEPLOYER AND PUT BACK LYOT STOP } 
\item \texttt{ SAVE RESIDUAL DISPLACEMENT X,Y } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{FQPM_LYOT_STOP} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{CI} \\
            PUPIL_LENS_DEP & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{Center} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_SoulAlignment } }
Based on \texttt{SHARKNIR_gen_tec_SoulAlignment} python script.\\
The template moves the PSF in XY sending commands to SOUL bayside stages. It calculates the center of bearing rotation depending on the SCICAM readout and sending offset to SOUL aligns the center of the PSF to the rotation center.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND SASHA SETUP } 
\item \texttt{ ITERATIONS TO ALIGN PSF } 
\item \texttt{ EXPOSING SASHA } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\item \texttt{ COMPUTE DISPLACEMENT } 
\item \texttt{ CHECK IF CONVERGED } 
\item \texttt{ GET CURRENT DROT } 
\item \texttt{ Transform to SOUL delta } 
\item \texttt{ Apply Offset in XY on SOUL } 
\item \texttt{ EXPOSING SASHA TO EVALUATE FINAL POSITION } 
\item \texttt{ RETRIEVE POSITION OF PSF } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{NB_PaB} \\
            STEPS & NO & \texttt{5} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            CORO_SLIT_W & YES & \texttt{WINDOW} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{10} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{128x128} \\
          \midrule
            NCOADDS & YES & \texttt{1} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tec_TargetPos } }
Based on \texttt{SHARKNIR_gen_tec_TargetPos} python script.\\
Change the centroidOrigin.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ Retrieving RTC centroid origin } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTCENTROIDORIGX & NO & \texttt{0.0} \\
            TTCENTROIDORIGY & NO & \texttt{0.0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            OBJECT & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_dark } }
Based on \texttt{SHARKNIR_gen_tiptilt_dark} python script.\\
Calls the method creates and applies the new dark (same as the button on the RTC panel).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT SETUP } 
\item \texttt{ Take an image on RTC } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SHUTTER & NO & \texttt{IN} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTTESTTIME & NO & \texttt{1000000} \\
          \midrule
            TTDIAGDECIMATION & YES & \texttt{0} \\
            TTDIAGENABLED & YES & \texttt{true} \\
            TTLOOPENABLED & YES & \texttt{false} \\
            TTPIXELDECIMATION & YES & \texttt{0} \\
            TTPIXELENABLED & YES & \texttt{1} \\
            TTSAVEASBIAS & YES & \texttt{true} \\
            TTUPDATEBIAS & YES & \texttt{true} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_dark_multi_freq } }
Based on \texttt{SHARKNIR_gen_tiptilt_dark_multi_freq} python script.\\
Set TECCAM Temperature according to the one specified by the user, the only options are -15 and -40. If it takes more than 5 minutes to reached the desired temperature the the execution is temd out and the template aborted. Instrument setup: SHUTTER IN, LAMPS OFF, ND_FILT_W HOLE, APODIZER_W HOLE, CAL_FIBER_DEP NO_FIBERS, CAL_MIRROR_DEP OUT. Then it takes 5 TECCAM cubes, respectively one at 50 Hz, 100 Hz, 250 Hz, 500 Hz and 1000 Hz. All the cubes are saved in darks, the final one remains loaded in the RTC.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ START AND WAIT INSTRUMENT AND RTC SETUP } 
\item \texttt{ Take an image on RTC at each frequency } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            APODIZER_W & YES & \texttt{HOLE} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTTEMPCRED & NO & \texttt{-15} \\
            TTTESTTIME & NO & \texttt{1000000} \\
          \midrule
            TTDIAGDECIMATION & YES & \texttt{0} \\
            TTDIAGENABLED & YES & \texttt{true} \\
            TTLOOPENABLED & YES & \texttt{false} \\
            TTPIXELDECIMATION & YES & \texttt{0} \\
            TTPIXELENABLED & YES & \texttt{1} \\
            TTSAVEASBIAS & YES & \texttt{true} \\
            TTUPDATEBIAS & YES & \texttt{true} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_gain } }
Based on \texttt{SHARKNIR_gen_tiptilt_gain} python script.\\
Calls the method creates and applies the new gain (same as the button on the RTC panel).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Change Gain on RTC } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTPIXELGAINMODE & NO & \texttt{POINTGAIN} \\
            TTPIXELGAINRADIUS & NO & \texttt{5} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_init } }
Based on \texttt{SHARKNIR_gen_tiptilt_init} python script.\\
Write the parameters (such as DM flat, actuator mapping, clock loop etc.) in OS but NOT on RTC.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ REAL-TIME RTCTT INIT } 
\item \texttt{ REAL-TIME RTCTT INIT } 
\item \texttt{  SETUP REAL-TIME RTCTT } 
\item \texttt{  START REAL-TIME RTCTT } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            TTACTUATORMAPFILE & NO & \texttt{BAX479-DM97-map.dat} \\
            TTACTUATORSIGNMAPFILE & NO & \texttt{BAX479-DM97-sign.dat} \\
            TTBIASFILE & NO & \texttt{dark64x64_1000Hz+20deg_14_02_22.dat} \\
            TTCAMTINT & NO & \texttt{0.000994919} \\
            TTCENTROIDGAINX & NO & \texttt{-4.249796} \\
            TTCENTROIDGAINY & NO & \texttt{3.7651188} \\
            TTCENTROIDORIGX & NO & \texttt{-0.0000} \\
            TTCENTROIDORIGY & NO & \texttt{0.0000} \\
            TTDIAGDECIMATION & NO & \texttt{0} \\
            TTDIAGENABLED & NO & \texttt{true} \\
            TTDIAGRECORDIPV4 & NO & \texttt{192.168.61.113} \\
            TTDIAGRECORDMAC & NO & \texttt{4c:d9:8f:a0:22:44} \\
            TTDIAGRECORDPORT & NO & \texttt{8001} \\
            TTDMFLATFILE & NO & \texttt{dm_shape_2023-07-11-14-25-12_int_140b_90el_T15C_0as.txt} \\
            TTDMMAXPOWER & NO & \texttt{10} \\
            TTDMOUTPUTENABLED & NO & \texttt{1} \\
            TTFRAMERATE & NO & \texttt{1000} \\
            TTHISTORYENABLED & NO & \texttt{0} \\
            TTLOOPENABLED & NO & \texttt{0} \\
            TTM2CFILE & NO & \texttt{20220603-Zernike-FullPupil-Arcetri-1u-rms-4rtc.dat} \\
            TTMASTERDECENABLED & NO & \texttt{true} \\
            TTMAXCENTROIDVAL & NO & \texttt{+1} \\
            TTMAXTTCOMMAND & NO & \texttt{3} \\
            TTMINCENTROIDVAL & NO & \texttt{-1} \\
            TTMINTHRESHOLD & NO & \texttt{100} \\
            TTMINTTCOMMAND & NO & \texttt{-3} \\
            TTNSLOPEPIXELS & NO & \texttt{4096} \\
            TTPIXELDECIMATION & NO & \texttt{49} \\
            TTPIXELENABLED & NO & \texttt{1} \\
            TTPIXELGAINFILE & NO & \texttt{flat_gain_64x64.dat} \\
            TTPIXELGAINMODE & NO & \texttt{FLATGAIN} \\
            TTRTCMDENABLED & NO & \texttt{0} \\
            TTTIMEHISTLEN & NO & \texttt{50000} \\
            TTTIMEHISTORYFILE & NO & \texttt{TimeHistory.dat} \\
            TTWINCOLS & NO & \texttt{64} \\
            TTWINCOORDX & NO & \texttt{224} \\
            TTWINCOORDY & NO & \texttt{212} \\
            TTWINROWS & NO & \texttt{64} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam } }
Based on \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam} python script.\\
+ CHECK IF LOOP IS CLOSED + IF LOOP IS CLOSED: MOVE CENTROID + Retrieving RTC centroid origin + OPEN REAL-TIME TT LOOP + Pass centroid to the RTC + MOVE DM + SHOW RTC SETUP + SAVE MODES + APPLY THE DM DISPLACEMENT + Setup + image + IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN + Pass centroid to the RTC + IF LOOP IS OPEN: MOVE DM BACK + CLOSE REAL-TIME TT LOOP.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ IF LOOP IS CLOSED: MOVE CENTROID } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ND_FILT_W & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            VECTOR_3 & NO & \texttt{1} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_setup_and_start } }
Based on \texttt{SHARKNIR_gen_tiptilt_setup_and_start} python script.\\
Applies the parameters written by SHARKNIR_gen_tiptilt_init on RTC and applies them.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{  REAL-TIME RTCTT INIT } 
\item \texttt{      REAL-TIME RTCTT INIT } 
\item \texttt{ SETUP REAL-TIME RTCTT } 
\item \texttt{ START REAL-TIME RTCTT } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_gen_tiptilt_shutdown } }
Based on \texttt{SHARKNIR_gen_tiptilt_shutdown} python script.\\
Turn off the TT internal loop electronic.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ REAL-TIME RTCTT SHUTDOWN } 
\item \texttt{ REAL-TIME RTCTT SHUTDOWN } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_acq } }
Based on \texttt{SHARKNIR_gen_acq} python script.\\
Description of this template.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ TELESCOPE PRESET } 
\item \texttt{ Choose alignment type } 
\item \texttt{ CHECK!!! LAB TEST!!!! } 
\item \texttt{ Choose alignment } 
\item \texttt{ Apo Alignment } 
\item \texttt{ Lyot Alignment FOR CI and LSS } 
\item \texttt{ Lyot Alignment for DI } 
\item \texttt{  PSF Alignment } 
\item \texttt{  START AND WAIT INSTRUMENT SETUP } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DROT_PosAng & NO & \texttt{0.0} \\
            MaskComb & NO & \texttt{LSS_LR_Distant} \\
            ND_FILT_W & NO & \texttt{OD2} \\
            SCI_FILT_W1 & NO & \texttt{NB_H2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{PUPIL} \\
            InstrumentMode & YES & \texttt{LSS} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Center} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            AODEC & NO & \texttt{0} \\
            AOMODE & NO & \texttt{REPOINT} \\
            AORA & NO & \texttt{0} \\
            BinocularFlag & NO & \texttt{OFF} \\
            CoordinateSystem & NO & \texttt{RADEC} \\
            Epoch & NO & \texttt{2018.3} \\
            Equinox & NO & \texttt{J2000} \\
            GSDEC & NO & \texttt{0} \\
            GSRA & NO & \texttt{0} \\
            OBJDEC & NO & \texttt{None} \\
            OBJECTNAME & NO & \texttt{None} \\
            OBJEQUIN & NO & \texttt{2000} \\
            OBJRA & NO & \texttt{None} \\
            PMAODEC & NO & \texttt{0} \\
            PMAORA & NO & \texttt{0} \\
            PMDEC & NO & \texttt{0} \\
            PMGSDEC & NO & \texttt{0} \\
            PMGSRA & NO & \texttt{0} \\
            PMRA & NO & \texttt{0} \\
            TelescopeMode & NO & \texttt{ADAPTIVEACE_TRACK} \\
          \midrule
            BinocularFlag & YES & \texttt{OFF} \\
            TelescopeSide & YES & \texttt{LEFT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_cal_AbsoluteFlux } }
Based on \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam} python script.\\
Throughput calibration to obtain absolute flux calibration of science targets. Observe a spectro-photometric standard star of known magnitude.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ IF LOOP IS CLOSED: MOVE CENTROID } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            ND_FILT_W & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            VECTOR_3 & NO & \texttt{0} \\
            VECTOR_4 & NO & \texttt{0} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_10 & YES & \texttt{0} \\
            VECTOR_11 & YES & \texttt{0} \\
            VECTOR_12 & YES & \texttt{0} \\
            VECTOR_13 & YES & \texttt{0} \\
            VECTOR_14 & YES & \texttt{0} \\
            VECTOR_15 & YES & \texttt{0} \\
            VECTOR_16 & YES & \texttt{0} \\
            VECTOR_17 & YES & \texttt{0} \\
            VECTOR_18 & YES & \texttt{0} \\
            VECTOR_19 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_20 & YES & \texttt{0} \\
            VECTOR_21 & YES & \texttt{0} \\
            VECTOR_22 & YES & \texttt{0} \\
            VECTOR_23 & YES & \texttt{0} \\
            VECTOR_24 & YES & \texttt{0} \\
            VECTOR_25 & YES & \texttt{0} \\
            VECTOR_26 & YES & \texttt{0} \\
            VECTOR_27 & YES & \texttt{0} \\
            VECTOR_28 & YES & \texttt{0} \\
            VECTOR_29 & YES & \texttt{0} \\
            VECTOR_30 & YES & \texttt{0} \\
            VECTOR_31 & YES & \texttt{0} \\
            VECTOR_32 & YES & \texttt{0} \\
            VECTOR_33 & YES & \texttt{0} \\
            VECTOR_34 & YES & \texttt{0} \\
            VECTOR_35 & YES & \texttt{0} \\
            VECTOR_36 & YES & \texttt{0} \\
            VECTOR_37 & YES & \texttt{0} \\
            VECTOR_38 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
            VECTOR_7 & YES & \texttt{0} \\
            VECTOR_8 & YES & \texttt{0} \\
            VECTOR_9 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_cal_FluxCalibration } }
Based on \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam} python script.\\
Obtain the spectrum in contrast for the companion starting from its extracted spectrum (in counts). This is obtained dividing by the extracted spectrum of the host star. This is mandatory to be able to extract effective scientific information from the LSS data. Observe the spectrum of the host star with the star itself outside the occulting mask (but into the slit). Same dispersive element. First of all: apply an offset of 0.3arcsec using the internal DM tip-tilt, along the slit orientation, then acquire NDIT images with DIT int. time and eventually aplly the same offset but with opposite sign to bring back the star.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ IF LOOP IS CLOSED: MOVE CENTROID } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            SLOPE_Y & NO & \texttt{2} \\
            X_DISPLACEMENT_MAS & NO & \texttt{0} \\
            Y_DISPLACEMENT_MAS & NO & \texttt{-300} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_10 & YES & \texttt{0} \\
            VECTOR_11 & YES & \texttt{0} \\
            VECTOR_12 & YES & \texttt{0} \\
            VECTOR_13 & YES & \texttt{0} \\
            VECTOR_14 & YES & \texttt{0} \\
            VECTOR_15 & YES & \texttt{0} \\
            VECTOR_16 & YES & \texttt{0} \\
            VECTOR_17 & YES & \texttt{0} \\
            VECTOR_18 & YES & \texttt{0} \\
            VECTOR_19 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_20 & YES & \texttt{0} \\
            VECTOR_21 & YES & \texttt{0} \\
            VECTOR_22 & YES & \texttt{0} \\
            VECTOR_23 & YES & \texttt{0} \\
            VECTOR_24 & YES & \texttt{0} \\
            VECTOR_25 & YES & \texttt{0} \\
            VECTOR_26 & YES & \texttt{0} \\
            VECTOR_27 & YES & \texttt{0} \\
            VECTOR_28 & YES & \texttt{0} \\
            VECTOR_29 & YES & \texttt{0} \\
            VECTOR_3 & YES & \texttt{0} \\
            VECTOR_30 & YES & \texttt{0} \\
            VECTOR_31 & YES & \texttt{0} \\
            VECTOR_32 & YES & \texttt{0} \\
            VECTOR_33 & YES & \texttt{0} \\
            VECTOR_34 & YES & \texttt{0} \\
            VECTOR_35 & YES & \texttt{0} \\
            VECTOR_36 & YES & \texttt{0} \\
            VECTOR_37 & YES & \texttt{0} \\
            VECTOR_38 & YES & \texttt{0} \\
            VECTOR_4 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
            VECTOR_7 & YES & \texttt{0} \\
            VECTOR_8 & YES & \texttt{0} \\
            VECTOR_9 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_cal_RemoveTelluric } }
Based on \texttt{SHARKNIR_gen_tiptilt_offset_and_scicam} python script.\\
Atmospheric calibration to remove telluric atmospheric features from the stellar spectrum. On target, removal of telluric lines: same set-up as science observations but with the star outside from the occulting mask (but into the slit).\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ IF LOOP IS CLOSED: MOVE CENTROID } 
\item \texttt{ Retrieving RTC centroid origin } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM } 
\item \texttt{ SHOW RTC SETUP } 
\item \texttt{ SAVE MODES } 
\item \texttt{ APPLY THE DM DISPLACEMENT } 
\item \texttt{ Setup + image } 
\item \texttt{ IF LOOP IS CLOSED: PUT BACK CENTROID ORIGIN } 
\item \texttt{ Pass centroid to the RTC } 
\item \texttt{ IF LOOP IS OPEN: MOVE DM BACK } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            LYOT_GRISM_W & NO & \texttt{HOLE} \\
            ND_FILT_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            VECTOR_3 & NO & \texttt{0} \\
            VECTOR_4 & NO & \texttt{0} \\
          \midrule
            ABSOLUTE & YES & \texttt{false} \\
            VECTOR_1 & YES & \texttt{0} \\
            VECTOR_10 & YES & \texttt{0} \\
            VECTOR_11 & YES & \texttt{0} \\
            VECTOR_12 & YES & \texttt{0} \\
            VECTOR_13 & YES & \texttt{0} \\
            VECTOR_14 & YES & \texttt{0} \\
            VECTOR_15 & YES & \texttt{0} \\
            VECTOR_16 & YES & \texttt{0} \\
            VECTOR_17 & YES & \texttt{0} \\
            VECTOR_18 & YES & \texttt{0} \\
            VECTOR_19 & YES & \texttt{0} \\
            VECTOR_2 & YES & \texttt{0} \\
            VECTOR_20 & YES & \texttt{0} \\
            VECTOR_21 & YES & \texttt{0} \\
            VECTOR_22 & YES & \texttt{0} \\
            VECTOR_23 & YES & \texttt{0} \\
            VECTOR_24 & YES & \texttt{0} \\
            VECTOR_25 & YES & \texttt{0} \\
            VECTOR_26 & YES & \texttt{0} \\
            VECTOR_27 & YES & \texttt{0} \\
            VECTOR_28 & YES & \texttt{0} \\
            VECTOR_29 & YES & \texttt{0} \\
            VECTOR_30 & YES & \texttt{0} \\
            VECTOR_31 & YES & \texttt{0} \\
            VECTOR_32 & YES & \texttt{0} \\
            VECTOR_33 & YES & \texttt{0} \\
            VECTOR_34 & YES & \texttt{0} \\
            VECTOR_35 & YES & \texttt{0} \\
            VECTOR_36 & YES & \texttt{0} \\
            VECTOR_37 & YES & \texttt{0} \\
            VECTOR_38 & YES & \texttt{0} \\
            VECTOR_5 & YES & \texttt{0} \\
            VECTOR_6 & YES & \texttt{0} \\
            VECTOR_7 & YES & \texttt{0} \\
            VECTOR_8 & YES & \texttt{0} \\
            VECTOR_9 & YES & \texttt{0} \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_cal_Wavelength } }
Based on \texttt{SHARKNIR_lss_cal_Wavelength} python script.\\
FF lamp with 5lambda filter inserted + slit + grism/prism. A background with lamps switched off is required. Acquire 1 slit image + Acquire 1 background image, same DIT.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Setup + image with custom parameters } 
\item \texttt{  Switching off all lamps + DIT=3600 image } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CAL_FILTER_DEP & NO & \texttt{IN} \\
            DB_FILT_W & NO & \texttt{WINDOW} \\
            MaskComb & NO & \texttt{LSS_LR_Distant} \\
            ND_FILT_W & NO & \texttt{HOLE} \\
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            DROT_Mode & YES & \texttt{FIELD_FREE} \\
            InstrumentMode & YES & \texttt{LSS} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
          \midrule
            READOUT & YES & \texttt{Center} \\
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_mon_SpectraResolution } }
Based on \texttt{SHARKNIR_lss_mon_SpectraResolution} python script.\\
FF lamp with 5lambda filter inserted + slit + grism/prism. A background with lamps switched off is required. Acquire 1 slit image + Acquire 1 background image, same DIT.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ Setup + image with custom parameters } 
\item \texttt{ Switching off all lamps } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            MaskComb & NO & \texttt{LSS_LR_Distant} \\
            SCI_FILT_W1 & NO & \texttt{ND2} \\
            SCI_FILT_W2 & NO & \texttt{ND3} \\
          \midrule
            CAL_FF_LAMP & YES & \texttt{ON} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{IN} \\
            CAL_MIRROR_DEP & YES & \texttt{IN} \\
            DB_FILT_W & YES & \texttt{WINDOW} \\
            DROT_Mode & YES & \texttt{FIELD} \\
            InstrumentMode & YES & \texttt{LSS} \\
            ND_FILT_W & YES & \texttt{HOLE} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{IN} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            NCOADDS & NO & \texttt{1} \\
            NDROPS & NO & \texttt{0} \\
            NGROUPS & NO & \texttt{1} \\
            NREADS & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            OBJECT & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_obs } }
Based on \texttt{SHARKNIR_lss_obs} python script.\\
Template for acquiring images: choose the filters, the exposure time in min (DIT) of the single image, the number of images (NDIT) and the READOUT\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ CHECK IF LOOP IS CLOSED } 
\item \texttt{ INSTRUMENT AND SASHA SETUP } 
\item \texttt{ START FIELD-FIXED DEROTATION } 
\item \texttt{  PAUSE / RESUME } 
\item \texttt{ BEGIN EXPOSING SASHA } 
\item \texttt{ END EXPOSING SASHA } 
\item \texttt{ END FIELD-FIXED DEROTATION } 
\item \texttt{  PAUSE / RESUME } 
\item \texttt{ INSTRUMENT AND SASHA SETUP } 
\item \texttt{      GET CURRENT DROT } 
\item \texttt{ STOP FIELD-FIXED DEROTATION } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            CORO_SLIT_W & NO & \texttt{HOLE} \\
            DROT_Mode & NO & \texttt{FIELD_FIXED} \\
            LYOT_GRISM_W & NO & \texttt{HOLE} \\
            OBS_PosAng & NO & \texttt{0} \\
            SCI_FILT_W1 & NO & \texttt{HOLE} \\
            SCI_FILT_W2 & NO & \texttt{HOLE} \\
            STEPS & NO & \texttt{1} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{LSS} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            OBJECTNAME & NO & \texttt{test} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  \section{ \texttt{SHARKNIR_lss_obs_Speckles } }
Based on \texttt{SHARKNIR_lss_obs_Speckles} python script.\\
\textbf{Relevant script comments:}
\begin{itemize}
\item \texttt{ INSTRUMENT AND SASHA SETUP } 
\item \texttt{ GET CURRENT DROT } 
\end{itemize}

      \subsection{Parameters table}

        \subsubsection{InstrumentSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DROT_Mode & NO & \texttt{FIELD_FIXED} \\
          \midrule
            ADC_Mode & YES & \texttt{ON} \\
            CAL_FF_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEFOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FIBER_DEP & YES & \texttt{NO_FIBERS} \\
            CAL_FIBER_FOCUS_LAMP & YES & \texttt{OFF} \\
            CAL_FILTER_DEP & YES & \texttt{OUT} \\
            CAL_MIRROR_DEP & YES & \texttt{OUT} \\
            InstrumentMode & YES & \texttt{LSS} \\
            PUPIL_LENS_DEP & YES & \texttt{OUT} \\
            SHUTTER & YES & \texttt{OUT} \\
          \bottomrule
          \end{tabular}

        \subsubsection{DetectorSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            DIT & NO & \texttt{1} \\
            NCOADDS & NO & \texttt{1} \\
            NDIT & NO & \texttt{1} \\
            READOUT & NO & \texttt{Full_Image} \\
          \midrule
            SAVE & YES & \texttt{1} \\
          \bottomrule
          \end{tabular}

        \subsubsection{TelescopeSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{TipTiltCtrlSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \bottomrule
          \end{tabular}

        \subsubsection{InfoSetup}
          \begin{tabular}{p{6cm}lp{4cm}}
          \toprule
           Parameter & Hidden & Value \\
          \midrule
            COMMENT & NO & \texttt{None} \\
            OBJECT & NO & \texttt{None} \\
            OBSERVER & NO & \texttt{None} \\
            PARTNER & NO & \texttt{None} \\
            PI_COI & NO & \texttt{None} \\
            PROPID & NO & \texttt{None} \\
          \bottomrule
          \end{tabular}

% This file was generated using the python script ./export_manual.py
% include it into the main tex file,
% then pdflatex the main tex file
