\section{Important Information}
\label{sec:important_info}

% ----------------------------------------------------------------
\subsection{Useful links}
\label{sec:important_info:links}

% ----------------------------------------------------------------
\begin{enumerate}
    \item \href{https://www.overleaf.com/9565552353bsgzsfzbvpcw#252fab}{Online version of this document}

    \item \href{http://206.12.93.77/ari/data/docs/nirps_babysitting/NIRPS_babysitters.pdf}{PDF version of this document}
    
    \item \href{https://github.com/njcuk9999/apero-drs/wiki/udem}{APERO UdeM Wiki}
    \item \href{https://docs.google.com/spreadsheets/d/1zvU_XFA1ZOJE111qZKiav7v6ptYveWpDkMHjdhiN06M/edit#gid=2059069236}{Raw data + red checks google sheet}
    \item \href{https://docs.google.com/spreadsheets/d/15Gu_aY6h9Esw1uTF8Y5JCHl6m7191AviJNTPkbeTiQE/edit?usp=sharing}{Known errors}
    
    \item \href{https://docs.google.com/spreadsheets/d/1Ea_WEFTlTCbthR24aaQm4KaleIteLuXLgn4RiNBnEqs/edit?usp=sharing}{User reported errors}
    
    \item \href{https://docs.google.com/spreadsheets/d/1s116aabnMH0zJ5YbXrGBWIVP17lmYXl6tYzLteoSEAc/edit?gid=1764593584#gid=1764593584}{NIRPS babysitter allocation  + what to do}
    
    \item \href{https://forms.gle/PxKL8BerBu1XNoRr7}{Complete babysitter task form }
    
    \item \href{https://docs.google.com/document/d/1PuxsI05V2LVM9YyJnUVPvxfdsKNpxE_awTcPctX9S0k/edit?usp=sharing}{NIRPS babysitter meeting notes}
    \item \href{https://docs.google.com/spreadsheets/d/1dOogfEwC7wAagjVFdouB1Y1JdF9Eva4uDW6CTZ8x2FM/edit?usp=sharing}{APERO object google sheet (read only)}
    
    \item \href{https://docs.google.com/spreadsheets/d/1gvMp1nHmEcKCUpxsTxkx-5m115mLuQIGHhxJCyVoZCM/edit?usp=sharing}{APERO reject google sheet (read only)}
    
    \item \href{https://udemontreal-my.sharepoint.com/:x:/g/personal/lison_malo_umontreal_ca/EVPwS0vVe39AqV6smaZIQKkBISmbZH3IscF20HYfRuG20A?e=nU5eSm}{NIRPS instrument events}
    \item \href{https://docs.google.com/spreadsheets/d/1J_vAlWSPODs4GkxnjDmlD6kF6rAwO304mK7EOvsyDYo/edit?gid=1813284249#gid=1813284249}{NIRPS targets list}
    
    \item \href{https://udemontreal-my.sharepoint.com/:p:/g/personal/lison_malo_umontreal_ca/EdNvmqZlVrJNqTEc_RtzYKsBI-JWiTPIrkOuMdLv7F0LzQ?e=cjZSed}{NIRPS header key definition}
    
    \item \href{https://unigech.sharepoint.com/teams/NIRPS}{Geneva sharepoint}

\end{enumerate}

% ----------------------------------------------------------------
\newpage
\subsection{Step by step guide - flow diagram}
\label{sec:step_by_step_flow}
% ----------------------------------------------------------------

\href{https://drive.google.com/file/d/1-DW_SmO6Zry1B0lQdDQN5VfZScTrZYFu/view?usp=drive_link}{Link to a larger (pdf) version} show in figure \ref{fig:nirps_babysitter_flow}.

\begin{figure}[!htbp]
    \centering
    \includegraphics[width=0.8\textwidth]{images/nirps_babysitter_flow.png}
    \caption{The step-by-step NIRPS Babysitter flow diagram}
    \label{fig:nirps_babysitter_flow}
\end{figure}

% ----------------------------------------------------------------
\newpage 
\subsection{Step by step guide - In writing}
\label{sec:step_by_step_written}
% ----------------------------------------------------------------

\note{Step 1/10}

Every weekday (on Mondays you’ll have to check the previous Saturday and Sunday).

Start somewhere between 1200 and 1400 Montreal time, you need to do this twice once for NIRPS-HE (online) and one for NIRPS-HA (online), these can be done in parallel so you don’t need to wait for one to be completed to do the other, in many cases the errors will be linked to both.

\note{Step 2/10}

Open the \href{https://docs.google.com/spreadsheets/d/1zvU_XFA1ZOJE111qZKiav7v6ptYveWpDkMHjdhiN06M/edit?gid=2059069236#gid=2059069236}{Raw data + red checks google sheet}

Identify any FALSEs in the raw checks that do not have comments.

\note{Step 3/10}

If there are FALSEs \hyperref[sec:how_to:re_run]{run the full check again}, if there are still FALSEs \hyperref[sec:how_to:re_run]{run the check for a specific check} (i.e. use –test).

If an error has been found, check the \hyperref[sec:raw_checks]{raw checks section of this manual} for a fix or who to contact, fix the problem or email these people. Wait a maximum of 3 hours for a reply and email them again and/or add more people to the email until someone replies. Once you have a response, fix the problem, or if you are told the problem was fixed or can be ignored move to the next step. Make sure to fill out comment section on the check google sheet for any ignored problems (or while waiting for a reply).

\note{Step 4/10}

If there are no FALSEs in the raw check that do not have comments you can \hyperref[sec:manual_trigger]{run the manual trigger}.

\note{Step 5/10}

Wait for the manual trigger to complete (max 6 hours) if it did not complete \hyperref[sec:manual_trigger:contact]{find the people in this document to contact}.


\note{Step 6/10}

Identify any FALSEs in the red checks that do not have comments.

\note{Step 7/10}

If there are FALSEs \hyperref[sec:red_checks]{run the full check again}, if there are still FALSEs \hyperref[sec:red_checks]{run the check for a specific check} (i.e. use –test).

If an error has been found, check the \hyperref[sec:red_checks]{reduced checks section of this manual} for a fix or who to contact, fix the problem or email these people. Wait a maximum of 3 hours for a reply and email them again and/or add more people to the email until someone replies. Once you have a response, fix the problem, or if you are told the problem was fixed or can be ignored move to the next step.


\note{Step 8/10}

Once this is done \hyperref[sec:apero_errors]{check the errors on ARI}, if there are errors on ARI \hyperref[sec:apero_errors]{follow the steps in this section}.


\note{Step 9/10}

Check the Calibration page on ARI. Look for any inconsistencies between the latest points and the previous trends. Note the yellow plots are for the lifetime of the instrument, the blue plots are the most recent points.

\begin{itemize}
    \item \href{http://apero.exoplanets.ca/ari/nirps/nirps_he_online_udem/profile.html}{NIRPS HE Calibration page}
    \item \href{http://apero.exoplanets.ca/ari/nirps/nirps_ha_online_udem/profile.html}{NIRPS HA Calibration page}
\end{itemize}

\note{Step 10/10}

Finally, fill in \href{https://forms.gle/PxKL8BerBu1XNoRr7}{the babysitter form}. 


% ----------------------------------------------------------------
\subsection{At the end of your week}
\label{sec:important_info:end_of_week}
% ----------------------------------------------------------------

At the end of your week, you are required to do a few final things:
\begin{enumerate}
    \item \hyperref[sec:important_info:end_of_week:reporting]{Report on your week}
    \item \hyperref[sec:important_info:end_of_week:next_babysitter]{Inform the next babysitter}
    \item Fill out an estimate for the number of hours (\href{https://docs.google.com/spreadsheets/d/1s116aabnMH0zJ5YbXrGBWIVP17lmYXl6tYzLteoSEAc/edit?gid=0#gid=0}{on this page}) - a minimum of 2 hours should be added.
\end{enumerate}

\subsubsection{Reporting on your week}
\label{sec:important_info:end_of_week:reporting}

You should create a summary of your week for the babysitting meeting (and if possible attend that weeks meeting to report on your week.

This can be done in one of two places:
\begin{itemize}
    \item In the \href{https://docs.google.com/document/d/1PuxsI05V2LVM9YyJnUVPvxfdsKNpxE_awTcPctX9S0k/edit?tab=t.0}{NIRPS Montreal Data Team meeting notes} (preferred)
    \item In the \lstcode{#nirps_squad} slack channel
\end{itemize}

This can be as simple as the comments you entered in the babysitter form (\href{https://docs.google.com/spreadsheets/d/1s116aabnMH0zJ5YbXrGBWIVP17lmYXl6tYzLteoSEAc/edit?gid=722325246#gid=722325246}{All entries can be found here}).

\subsubsection{The next babysitter}
\label{sec:important_info:end_of_week:next_babysitter}

\important{You are responsible} for letting the next babysitter know:
\begin{itemize}
    \item that they are responsible for babysitting this week
    \item that your week is complete
    \item if there are any ongoing problems
\end{itemize}

\href{https://docs.google.com/spreadsheets/d/1s116aabnMH0zJ5YbXrGBWIVP17lmYXl6tYzLteoSEAc/edit?gid=0#gid=0}{The next babysitter can be found here}.

You can use the following text to copy-and-paste to the next babysitter

\begin{bcodebox}[]{Bash}
\begin{lstlisting}[style=nonumbering]
Just a note you are responsible for the NIRPS checks this week:

- Instructions (latex):
https://www.overleaf.com/9565552353bsgzsfzbvpcw#252fab

- Instructions (pdf): 
http://206.12.93.77/ari/data/docs/nirps_babysitting/NIRPS_babysitters.pdf

\end{lstlisting}
\end{bcodebox}

\newpage 

% ----------------------------------------------------------------
\subsection{What days am I responsible for?}
\label{sec:important_info:what_days}
% ----------------------------------------------------------------

You are responsible for Monday - through to the following Sunday. As reduced checks and reductions are done for `yesterday' this means you are responsible for reduced checks and reductions Sunday through to the following Saturday. 

Note that we do not expect you to work on weekends, but you can choose to do the Saturday and Sunday steps on a weekend or on the following Monday. 

Please make sure you inform the next babysitter that they should not do anything until you have finished your week. Obviously you can also choose to do the weekend steps on the weekend if you prefer.

e.g. Assuming Monday is the 2nd of the Month

\begin{itemize}
    \item raw checks for Monday 2nd (checked on Monday 2nd), Tuesday 3rd, ..., Sunday 8th (checked at latest on Monday 9th)
    \item reduced checks and running the manual trigger for Sunday 1st, ..., Saturday 7th (run at latest on Monday 9th)
\end{itemize}



% ----------------------------------------------------------------
\newpage
\subsection{Need help? Ask!}
\label{sec:important_info:need_help}
% ----------------------------------------------------------------

If in doubt ask! 

Who to go to for help:
\begin{enumerate}
    \item The contact names for a specific check
    \item The \href{https://docs.google.com/spreadsheets/d/1s116aabnMH0zJ5YbXrGBWIVP17lmYXl6tYzLteoSEAc/edit?gid=1764593584#gid=1764593584}{previous babysitters} (or any in the last few weeks)
    \item The core people (listed in the table below)
    \item The nirps\_squad slack channel
\end{enumerate}

\begin{contacttable}
    \ccNeil{1} & \eeNeil \\
    \ccLison{} & \eeLison \\
    \ccFred{} & \eeFred \\
    \ccEtienne{} & \eeEtienne \\
    \ccCharles{} & \eeCharles \\
    \ccThomas{} & \eeThomas \\
    \ccUMail{} & \eeUMail \\
    \hline
\end{contacttable}

\note{Note about emailing people}

It is your responsibility to make sure people are replying to you. It is important you find someone to reply to you, please do not wait more than 12 hours for a reply. 

In some cases you should see a `\largestar' by the name, this indicates the most likely person you need a reply from (for example it may be hard to get a reply during a weekend or holiday period). 

If no one answers please email more people (e.g. the core people above). 

\note{Note about reporting problems}

If you report a problem and share the output of your terminal or the content of a file, please copy/paste the text \important{do not send a screenshot}. 

This helps us a lot with debugging! 
