\section{APERO errors}
\label{sec:apero_errors}

\subsection{Overview}
\label{sec:apero_errors:overview}

After the manual trigger has run you must check on any errors encountered by APERO. 

The dates given are the date the manual trigger was run NOT the observation directory or night. 

The following sections list where to find the errors for all profiles (NIRPS HE/HA and online/offline) but the two most important sections are:

\begin{itemize}
    \item \hyperref[sec:apero_errors:nirps_he]{NIRPS HE errors found on ARI}
    \item \hyperref[sec:apero_errors:nirps_ha]{NIRPS HA errors found on ARI} 
\end{itemize}


\subsection{Known Errors}
\label{sec:apero_errors:known_errors}

There is a \href{https://docs.google.com/spreadsheets/d/15Gu_aY6h9Esw1uTF8Y5JCHl6m7191AviJNTPkbeTiQE/edit?gid=1844191498\#gid=1844191498}{list of known errors here}

If an error is known it will have an action for you to do (report, check, ignore) 

If an error is not known please add it and report it to the following people: 

\begin{contacttable}
    \ccNeil{1} & \eeNeil \\
    \ccEtienne{} & \eeEtienne \\
    \ccLison{} & \eeLison \\
    \hline
\end{contacttable}


\subsection{Common LBL Error}
\label{sec:apero_errors:lbl_errors}

There is a common LBL Error when running in online mode.

If you get an LBL error please first check the object name in \hyperref[sec:nightly_debug:ari_spectrum_sec]{ARI and look at the BERV coverage plot}. If there are only a few valid telluric points and/or the BERV coverage is low less than $\sim 10~ km~ s^{-1}$ there may be no template, which in turn means LBL will give an error at all steps, the error in the recipe table should read something similar to:

\begin{bcodebox}[]{Bash}
\begin{lstlisting}[style=nonumbering]
Template_s1dv_{OBJNAME}_sc1d_v_file_A.fits cannot be found
\end{lstlisting}
\end{bcodebox}

where OBJNAME is the ARI name for this object.

If this is the case you can report this when filling out the \href{https://forms.gle/PxKL8BerBu1XNoRr7}{the babysitter form}. But no other action is necessary.



\subsection{NIRPS-HE online errors}
\label{sec:apero_errors:nirps_he}

Online errors \href{http://apero.exoplanets.ca/ari/nirps/nirps_he_online_udem/recipe_pages/recipe_table.html}{can be found here} (you must log on to ARI to see this page) 

From this page, navigate to the recipe table and check \lstcode{num_fail} 

Click the link for a given day and filter failures with \lstcode{ended = False} 

\important{In general ignore any errors with CRUNFILE not equal to \lstcode{online_run}}

\subsubsection{Check for actions}

\href{https://docs.google.com/spreadsheets/d/15Gu_aY6h9Esw1uTF8Y5JCHl6m7191AviJNTPkbeTiQE/edit\#gid=0}{Check for actions here}

If any error is “None” you can look up the log file (displayed in the \lstcode{LOGFILE} column).



\subsection{NIRPS-HA online errors}
\label{sec:apero_errors:nirps_ha}

Online errors \href{http://apero.exoplanets.ca/ari/nirps/nirps_ha_online_udem/recipe_pages/recipe_table.html}{can be found here} (you must log on to ARI to see this page) 

From this page, navigate to the recipe table and check \lstcode{num_fail} 

Click the link for a given day and filter failures with \lstcode{ended = False} 

\important{In general ignore any errors with CRUNFILE not equal to \lstcode{online_run}}

\subsubsection{Check for actions}

\href{https://docs.google.com/spreadsheets/d/15Gu_aY6h9Esw1uTF8Y5JCHl6m7191AviJNTPkbeTiQE/edit\#gid=0}{Check for actions here}

If any error is “None” you can look up the log file (displayed in the \lstcode{LOGFILE} column).