% ===========  Advanced LIGO .tex document
% -> needs ligodoc.cls
%
%
\documentclass{ligodoc}

\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{longtable}
\usepackage{rotating}
\usepackage[usenames,dvipsnames]{color}
\usepackage{fancyhdr}
\usepackage{easybmat}
\usepackage{epstopdf}
\usepackage{subfigure}
\usepackage{appendix}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
\providecommand{\hz}[1]{$#1\rm\,Hz$}
% Some PDFtex-specific options
\usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\oddsidemargin  0.0in
%\evensidemargin 0.0in
%\textwidth      6.5in
%\headheight     0.0in
%\topmargin      0.0in
%\textheight=9.0in
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Advanced interferometers strategy on earthquake perturbations }
\author{Sebastien Biscans, Michael Coughlin, Jan Harms}
\date{${}$Date:09 June 2015}
\ligodccnumber{T}{15}{00320}{v1} \ligodistribution{}
%\ligodraft

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\tableofcontents

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\section{Introduction}
\label{sec:intro}

Earthquakes are currently reducing the duty cycles of advanced interferometers due to the excess ground motion that they create. This document reports the different actions taken to understand, analyse and reduce the impact of earthquakes on interferometers, and especially on the LIGO interferometers. This work could be categorized in three main parallel actions. 
\begin{enumerate}

\item Analysing different data sets to understand the behaviour of the LIGO interferometers during events (Section \ref{sec:analysis} and \ref{sec:analysis2})
\item Implementing an earthquake monitor and warning system (Section \ref{sec:monitor})
\item Improving the interferometers behaviour during events (Section \ref{sec:strategy})
\end{enumerate}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{S5 and S6 data}
\label{sec:analysis}

A joint effort has been done to process and analyse the data from S5 and S6. The goal is to show the lock status of the interferometers during major earthquakes. 

The lock status was not actually recorded in the S5/S6 frames, but only the state vector of the interferometers (second bit of H1:IFO-SV\_STATE\_VECTOR and L1:IFO-SV\_STATE\_VECTOR channels), which gives the same information. The earthquake arrival time is estimated by the 'earthquake monitor' (see Section \ref{sec:monitor}), so we can correlate the lock losses with earthquakes.

\subsection{Time series of the ground}
\label{subsec:time}

During S5/S6, there was 191 major earthquakes (magnitude over 6). For each of them, we plotted the relative interferometers status for both LIGO sites \cite{JH_time}.

\begin{figure}[h!]
\hfill
\subfigure[Example for LLO]{\includegraphics[scale=0.4]{./../LLO_EQ/Quake77_LLO.png}}
\hfill
\subfigure[Example for LHO]{\includegraphics[scale=0.4]{./../LHO_EQ/Quake77_LHO.png}}
\hfill
\caption{These plots display the time series of the seismometers in the horizontal direction for LLO and LHO. The vertical red dot line represents the arrival time of the event. The color background indicates the status of the state vector. Green means that the interferometer is locked, red means that it is unlock. A similar plot is generated for each event.}
\label{fig:Fig1}
\end{figure}

These results allow us to do some rough statistics. In table \ref{table:table1}, we assume that all the lock losses happening less than 4000 seconds after the arrival of the event are due to the event itself. 41.88\% of the LLO data and 37.70\% of LHO data are not exploitable because the interferometers were not locked at that time, but by looking at the exploitable data, we see that around 75\% of the major earthquakes caused the interferometers to loose lock.

\begin{table}[h!]
\begin{center}
    \begin{tabular}{ | l | l | l |}
    \hline
     & LLO & LHO \\ \hline
    Lock losses due to earthquakes & 43.46 \% & 48.69 \% \\ \hline
    Unlock before the earthquakes arrival & 41.88 \% & 37.70 \%  \\ \hline
    No lock loss during the earthquake & 14.66 \% & 13.61 \% \\ \hline
    \end{tabular}
    \caption{Behaviour of the interferometers during earthquakes}
    \label{table:table1}
    \end{center}
\end{table}

Among the lock losses, we have 3 categories.

\begin{itemize}
\item If the lock loss happened right at the earthquake arrival, I assume that the lock loss is due to P-waves.
\item If the lock loss happened in less than 1500 seconds after the earthquake arrival, we assume that the lock loss is due to S-waves.
\item If the lock loss happened after 1500 seconds, we assume that the lock loss is due to Surface waves (Rayleigh waves).
\end{itemize}

\begin{table}[t]
\begin{center}
    \begin{tabular}{ | l | l | l |}
    \hline
     & LLO & LHO \\ \hline
    Lock losses due to P-waves & 15.66 \% & 73.12 \% \\ \hline
    Lock losses due to S-waves & 59.04 \% & 15.05 \%  \\ \hline
    Lock losses due to Rf-waves & 25.30 \% & 11.83 \% \\ \hline
    \end{tabular}
    \caption{Behaviour of the interferometers during earthquakes}
    \label{table:table2}
    \end{center}
\end{table}

As shown in Table \ref{table:table2}, the behaviour seen at LLO and LHO is quite different: LLO seems to have most issues because of the S-waves arrivals, while LHO has most trouble with the P-wave arrivals. This might be due at the geographical position of each site (LHO is very close to Alaska). This information is important to develop a warning earthquake system. It might be also worth to look at the vertical response of the ground to see if we observe the same behaviour.

\subsection{Velocity of the ground according to the location of the events}
\label{subsec:velocity}

Still based on S5/S6 data, we can calculate the maximum velocity of an earthquake when it arrives at the site. The calculation of the maximum amplitude is done by the earthquake monitor (see Section \ref{sec:monitor}).

Thus, for both sites LLO and LHO, we generated a world map indicating the location of the earthquakes and the relative velocities seen by each sites, as shown in the appendix \ref{subsec:map_vel}.

These plots give a sense of the regions we can break up the events into. Another way to present these results is shown on figure \ref{fig:Fig2} and \ref{fig:Fig3}. One plot displays the actual measurements, while the other shows the calculated estimation done with the earthquake monitor. Less events are shown on the first plot because of missing data. This lack of data limits the conclusion that can be made from these sets. We know that the earthquake monitor estimation is good 95\% of the time within a factor a 4 (see section \ref{sec:monitor}). Thus, to do a full analysis, we will concentrate our effort on the estimation results.  This allows us to separate the earthquakes into three categories.

\begin{enumerate}

\item Velocity above 70 \(\mu\)m/s. This usually corresponds to a large magnitude earthquake (7.5+), except when the earthquake is happening less than 4000 kilometres away.
\item Velocity between 30 \(\mu\)m/s and 70 \(\mu\)m/s.
\item Velocity below 30 \(\mu\)m/s. This category contains most of the earthquakes.
\end{enumerate}

Having categories will help us adapt our strategy regarding the interferometers. Tentatively we know that the first category earthquakes will be hard to act on. The second category is a "grey area" right now, and hopefully we will be able to do something about the third category (which regroups most of the events). 

As we just did for the ground, the next subsection will present the same work on the interferometers themselves, hoping to find some similar patterns.

\begin{figure}[h!]
\hfill
\subfigure[Measured peak ground velocity]{\includegraphics[scale=0.4]{./../Measured_Histo_ground_LHO.png}}
\hfill
\subfigure[Estimated peak ground velocity]{\includegraphics[scale=0.29]{./../curve_match_LLO.jpg}}
\hfill
\caption{Histogram of the earthquakes peak ground velocities at LLO, according to distance and magnitude.}
\label{fig:Fig2}
\end{figure}

\begin{figure}[h!]
\hfill
\subfigure[Measured peak ground velocity]{\includegraphics[scale=0.4]{./../Measured_Histo_ground_LHO.png}}
\hfill
\subfigure[Estimated peak ground velocity]{\includegraphics[scale=0.29]{./../curve_match_LHO.jpg}}
\hfill
\caption{Histogram of the earthquakes peak ground velocities at LHO, according to distance and magnitude.}
\label{fig:Fig3}
\end{figure}

\break
\subsection{Interferometers status according the location of the events}
\label{subsec:location}

The work that has been done in subsection \ref{subsec:velocity} on the ground velocity can now be done on the interferometer itself. This section tries to present the correlation between the interferometers status and the earthquakes location/magnitude.
Similarly to figures shown in appendix \ref{subsec:map_vel}, appendix \ref{subsec:map_loc} shows world maps with all the major events during S5 and S6. In these figures, the green color indicates that the interferometer stayed lock after the earthquake arrival. The red color indicates that the interferometer lost lock in the next 30 minutes after the earthquake arrival. And, similarly to figure \ref{fig:Fig4}, we can present the same data in a histogram form.



\begin{figure}[h!]
\hfill
\subfigure[LLO]{\includegraphics[scale=0.4]{./../mine_LLO.jpg}}
\hfill
\subfigure[LHO]{\includegraphics[scale=0.4]{./../mine_LHO.jpg}}
\hfill
\caption{Histogram of the interferometers status, according to distance and magnitude of the earthquakes. Blue indicates that the interferometer stayed lock after the event. Red means it lost lock because of the event.}
\label{fig:Fig4}
\end{figure}

Unlike the ground, we don't see any clear pattern in the interferometers behaviour. This could be explained by several reasons. The main reason is that we assumed that a lock loss that happened after an event is due to the event itself. This is a bold statement that cannot possibly be true all the time.

S5 and S6 data gave a good overview of the ground behaviour during earthquakes, but without having more information about each of these lock losses, it is hard to draw any conclusions in the interferometers themselves. 

\section{ER7 data}
\label{sec:analysis2}

The analysis during ER7 focuses on the seismic platforms behaviour at both LIGO sites.

\subsection{Seismic platform trip status}

The detector characterization group has done a complete analysis of the ER7 data (\cite{Jess}). From May 1, 2015 to June 15, 2015, 21 earthquakes have been observed. Earthquakes are defined as a spike in the 0.03-0.1 Hz LVEA STSB BLRMS above 500 nm/s in at least two degrees of freedom. Six of them made some seismic platforms trip at LLO, Eight at LHO. Figures \ref{fig:pie_LLO}, \ref{fig:pie_LHO} and \ref{fig:pie_LHO_HEPI} show the seismic platforms status during these specific events. 

\textit{Note:} The HEPI platforms at LLO were locked during ER7. Only HEPI status at LHO is shown in this document.

\begin{figure}[h!]
\centering
\includegraphics[scale=0.35]{./../LLO_ER7.png}
\caption{Status of the ISI platforms at LLO. The green color indicates that the platform didn't trip during the event. The red color indicates that it did trip. Only unique trips are listed (no trips due to other stages, including SUS)}
\label{fig:pie_LLO}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.35]{./../LHO_ER7.png}
\caption{Status of the ISI platforms at LHO. The green color indicates that the platform didn't trip during the event. The red color indicates that it did trip. Only unique trips are listed (no trips due to other stages, including SUS)}
\label{fig:pie_LHO}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.35]{./../LHO_ER7_HEPI.png}
\caption{Status of the HEPI platforms at LHO. The green color indicates that the platform didn't trip during the event. The red color indicates that it did trip. Only unique trips are listed (no trips due to other stages, including SUS)}
\label{fig:pie_LHO_HEPI}
\end{figure}

\subsection{Nature of the trips}
\label{subsec:trip}

The watchdogs status indicates the nature of each trip. Tables \ref{table:trip_LLO} and \ref{table:trip_LHO} display the nature of the platform trips for all the trips presented in the previous subsection.

\begin{table}[h!]
\begin{center}
    \begin{tabular}{ | c | c | c |}
    \hline
    & Stage 1 Actuators & Stage 1 CPS \\ \hline
    BSC-ISI & 100 \% & 0 \% \\ \hline
    HAM-ISI & 0 \% & 100 \%  \\ \hline
    \end{tabular}
    \caption{Nature of the trips during events at LLO}
    \label{table:trip_LLO}
    \end{center}
\end{table}

\begin{table}[h!]
\begin{center}
    \begin{tabular}{ | c | c | c | c |}
    \hline
    & Stage 1 Actuators & Stage 1 CPS & GS13 \\ \hline
    HEPI & 100 \% & 0 \% & 0 \% \\ \hline
    BSC-ISI & 100 \% & 0 \% & 0 \% \\ \hline
    HAM-ISI & 0 \% & 77.27 \% & 22.73 \% \\ \hline
    \end{tabular}
    \caption{Nature of the trips during events at LHO}
    \label{table:trip_LHO}
    \end{center}
\end{table}

\subsection{Origin of the trips}

Thanks to the Earthquake monitor (see section \ref{sec:monitor}), we know the arrival of the primary, secondary and surface waves. Table \ref{table:origin} shows the correlation these times and the time of the trips.


\begin{table}[h]
\begin{center}
    \begin{tabular}{ | l | l | l |}
    \hline
     & LLO & LHO \\ \hline
    Trips due to P-waves & 0 \% & 0 \% \\ \hline
    Trips due to S-waves & 0 \% & 0 \%  \\ \hline
    Trips due to Rf-waves & 100 \% & 100 \% \\ \hline
    \end{tabular}
    \caption{Behaviour of the seismic platforms during earthquakes}
    \label{table:origin}
    \end{center}
\end{table}

At both sites, all the trips observed during ER7 happened after the surface waves arrival. This is different form what we observed during S5 \& S6 (see section \ref{sec:analysis}), which reinforce the statement that we should focus on recent data to understand the interferometer behaviour.

\break
\subsection{Lock status}

Looking at the H1:DMT-UP and L1:DMT-UP segments, we can assess on the interferometer lock status during the 21 earthquakes that happened between May 1, 2015 and June 15, 2015. The results presented in table \ref{table:lock} have been made by using the Detector Characterization group Lock webpage (\url{https://ldas-jobs.ligo.caltech.edu/~detchar/summary/day/20150618/lock/segments/}).
We assume that all the lock losses that happened between 0 and 30 minutes after the earthquake arrival are due to the earthquake itself.

\begin{table}[h!]
\begin{tabular}{|c|c|c|}
\hline
		& \textbf{Event} & \textbf{Lock status} \\ \hline
\multirow{6}{*}{ISI trip} 
		& May 05 02:00 UTC	& No lock \\
		& May 07 07:30 UTC	& No lock \\
		& May 12 07:30 UTC	& No lock \\
		& May 12 22:00 UTC	& No lock \\
		& \textbf{May 29 07:00 UTC} 	& \textbf{Lock loss} \\
		& May 30 11:30 UTC 	& No lock \\ \hline
\multirow{13}{*}{No trip} 	
		& May 1 08:30 UTC 	& No lock \\
		& May 3 23:30 UTC 	& No lock \\
		& May 10 01:00 UTC	& No lock \\
		& May 10 22:30 UTC  	& No lock \\
		& May 14 19:35 UTC	& No lock \\
		& May 15 17:55 UTC 	& No lock \\
		& May 19 15:45 UTC 	& No lock \\
		& May 20 23:00 UTC 	& No lock \\
		& May 22 22:00 UTC 	& No lock \\
		& \textbf{May 24 05:00 UTC} 	& \textbf{Lock loss} \\
		& May 24 15:30 UTC 	& No lock \\
		& May 30 19:30 UTC 	& No lock \\
		& June 01 07:00 UTC 	& No lock \\
		& June 01 11:00 UTC 	& No lock \\
		& June 01 20:30 UTC 	& No lock \\
		& June 08 07:00 UTC 	& No lock \\
		& \textbf{June 10 09:30 UTC} & \textbf{Lock loss} \\
		& \textbf{June 11 05:30 UTC} 	& \textbf{Lock loss} \\ \hline
\end{tabular}
\begin{tabular}{|c|c|c|}
\hline
		& \textbf{Event} & \textbf{Lock status} \\ \hline
\multirow{8}{*}{ISI trip} 
		& May 05 02:00 UTC	& No lock \\ 
 		& May 07 07:30 UTC	& No lock \\
		& May 10 21:45 UTC 	& No lock \\
		& May 12 07:20 UTC	& No lock \\
		& May 20 23:00 UTC	& No lock \\
		& May 29 07:00 UTC 	& No lock \\
		& May 30 11:30 UTC 	& No lock \\
		& June 01 20:15 UTC 	& No lock \\ \hline
\multirow{13}{*}{No trip} 	
		& \textbf{May 01 08:20 UTC} 	& \textbf{Lock loss} \\
		& May 03 23:15 UTC	& No lock \\
		& May 10 01:05 UTC	& No lock \\
		& May 12 18:35 UTC	& No lock \\
		& May 12 21:25 UTC 	& No lock \\
		& May 13 16:00 UTC 	& No lock \\
		& May 14 15:25 UTC 	& No lock \\
		& May 22 22:00 UTC 	& No lock \\
		& May 24 15:00 UTC 	& No lock \\
		& May 30 19:00 UTC 	& No lock \\
		& June 1 06:55 UTC	& No lock \\ 
		& June 1 10:50 UTC 	& No lock \\
		& June 12 11:45 UTC 	& No lock \\ \hline
\end{tabular}
\caption{The left table summarizes the events seen at LLO and the right ine the events at LHO}
\label{table:lock}
\end{table}

As shown in table \ref{table:lock}, the interferometer was not lock for most of the events at both sites. But, from the few events that did happen while the interferometers were locked, we can sat two things:

\begin{enumerate}
\item The interferometer could loose lock even if no seismic isolation platform tripped.
\item Earthquakes made loose the lock on all the observed cases.
\end{enumerate}

The May 29 event is the only example where the seismic platforms trip and the interferometer lost lock LLO. We will study this specific case in the next subsection.

\subsection{Study of March 29 event at LLO}

This event correspond to a 6.7 Magnitude earthquake in Alaska (5771 kilometres away from LLO). Based on the categories established in subsection \ref{subsec:velocity}, this earthquake is a category 3.

Looking at seismic data around that period, we can make several observations. These comments are made by observing ITMX and HAM3 around that time. A more consistent study of all the platforms would be necessary to make a stronger statement.

\textit{Note:} All the time series presented in this subsection are band passed between 0.03 Hertz and 0.1 Hertz. 

\begin{enumerate}

\item Figure \ref{fig:May_29_ground} shows that the lock loss of the interferometer happened right at the P-wave arrival time, while the seismic platforms tripped around 30 minutes later.

\item As explained in subsection \ref{subsec:trip}, all the BSC-ISI trips are due to the actuators. We can go a step further by saying that it is due to horizontal actuators, as shown in figure \ref{fig:May_29_ACT}. For HAM3, the cause of the trip is CPS-H1, as shown on figure \ref{fig:May_29_HAM3_CPS} (the actuator amplitude signal is around 20,000 counts at that time).

\item The event amplifies the ground and the platforms motion by a factor of \textasciitilde 200 below 2 Hertz, as shown in figure \ref{fig:May_29_ASD} and \ref{fig:May_29_HAM3_ASD}.

\end{enumerate}


\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../May_29_ground.png}
\caption{Time series of a LLO ground seismometer. In this example, the interferometer looses lock at the P-wave arrival time while the seismic platforms tripped around 30 minutes later.}
\label{fig:May_29_ground}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../May_29_ACT.png}
\caption{Time series of the ITMX actuators in the local basis. For this event, the trip is due to the actuator H1.}
\label{fig:May_29_ACT}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../May_29_HAM3_CPS.png}
\caption{Time series of the HAM3 CPS in the local basis. For this event, the trip is due to the CPS H1.}
\label{fig:May_29_HAM3_CPS}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../May_29_ASD.png}
\caption{ASD of the ITMX sensors in the X direction. The ASDs of the same signals are shown during a quiet time as a reference: an amplification of \textasciitilde 200 below 2 Hertz is observed}
\label{fig:May_29_ASD}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.45]{./../May_29_HAM3_ASD.png}
\caption{ASD of the HAM3 sensors in the X direction. The ASDs of the same signals are shown during a quiet time as a reference: an amplification of \textasciitilde 200 below 2 Hertz is observed}
\label{fig:May_29_HAM3_ASD}
\end{figure}

\break
\subsection{Study of June 10 event at LLO}

This subsection presents a case where the interferometer lost lock but none of the seismic systems trip. The event is a 5.5 Magnitude earthquake in Japan (10444 kilometres away from LLO). Based on the categories established in subsection \ref{subsec:velocity}, this earthquake is a category 3.

Looking at seismic data around that period, we can make several observations. These comments are made by observing ITMX and HAM3 around that time. A more consistent study of all the platforms would be necessary to make a stronger statement.

\textit{Note:} All the time series presented in this subsection are band passed between 0.03 Hertz and 0.1 Hertz. 

\begin{enumerate}

\item Figure \ref{fig:June_10_ground} shows that the lock loss of the interferometer happened around the maximum amplitude of the event (surface waves).

\item In this example, despite the increase in the increase of motion, the actuators and sensors are far away from the trip point, as shown in figure \ref{fig:June_10_ACT} and \ref{fig:June_10_HAM3_CPS}. Most of the amplification is horizontal.

\item The event appears as a "bump" around 50 mHz. It amplifies the motion by a factor of \textasciitilde 100 around that frequency, as shown in figures \ref{fig:June_10_ASD} and \ref{fig:June_10_ASD_HAM3}.

\end{enumerate}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../June_10_ground.png}
\caption{Time series of a LLO ground seismometer. In this example, the interferometer looses lock at the surface wave arrival time.}
\label{fig:June_10_ground}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../June_10_ACT.png}
\caption{Time series of the ITMX actuators in the local basis.}
\label{fig:June_10_ACT}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../June_10_HAM3_CPS.png}
\caption{Time series of the HAM3 CPS in the local basis.}
\label{fig:June_10_HAM3_CPS}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../June_10_ASD.png}
\caption{ASD of the ITMX sensors in the X direction. The ASDs of the same signals are shown during a quiet time as a reference: an amplification of \textasciitilde 100 around 50 mHz is observed}
\label{fig:June_10_ASD}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.45]{./../June_10_ASD_HAM3.png}
\caption{ASD of the HAM3 sensors in the X direction. The ASDs of the same signals are shown during a quiet time as a reference: an amplification of \textasciitilde 100 around 50 mHz is observed}
\label{fig:June_10_ASD_HAM3}
\end{figure}

In both of the cases presented, we observed two very different ground behaviours, summarized in table \ref{table:sum}. This tells us that the categories defined in subsection \ref{subsec:velocity} are not viable. We need to re-assess this previous statement. 

\begin{table}[h]
\begin{center}
    \begin{tabular}{ |c|c|c|}
    \hline
     & EQ May 29 07:00 UTC & EQ June 10 09:30 UTC \\ \hline
    Magnitude and location & 6.7 in Alaska & 5.5 in Japan \\ \hline
    Ground velocity when lost lock & \textasciitilde 10 $\mu$/s & \textasciitilde 1.5 $\mu$/s \\ \hline
    Ground velocity when trip & \textasciitilde 30 $\mu$/s & no trip \\ \hline
    Corner frequency & 2 Hz & 100 mHz \\ \hline
    Category (according to section \ref{subsec:velocity}) & 3 & 3 \\ \hline
    \end{tabular}
    \caption{Summary of the informations gathered from the two earthquakes sudied in the previous subsections}
    \label{table:sum}
    \end{center}
\end{table}

\break
\subsection{Overview of all the events: redefining the earthquakes categories}

Based on the observations made before, we know that ISI trips and lock losses are not necessarily related. The goal of this session is to look at all the 24 events from LLO and their ground velocity. The plots are generated using \\
IFO:ISI-BS\_ST1\_SENSCOR\_GND\_STS\_X\_BLRMS\_30M\_100M.rms channel. 

\begin{figure}[h!]
\centering
\includegraphics[scale=0.31]{./../PEM_graph.png}
\caption{Band Limited RMS of a LVEA ground seismometer in the X direction. All the plots start 1 hour before the P-wave arrival time. Red represents all the events that made some ISI trip, green the event that didn't trip.}
\label{fig:PEM_graph}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.6]{./../PEM.png}
\caption{Maximum ground velocity per event.}
\label{fig:PEM}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[scale=0.4]{./../hist_num.png}
\caption{Relative Magnitude/Distance for the 24 events}
\label{fig:mag}
\end{figure}


As shown in figure \ref{fig:PEM}, the events 16, 23 and 24 made loose the lock of the interferometer even if the ground amplification was not that important (\textasciitilde 0.7  $\mu$/s). These events are charactized by creating an amplification around 50 mHz. Also, all the ISI trips happened for a ground velocity greater than 8 $\mu$/s (except for event 11).

Thus, there is no obvious pattern in the interferometer behaviour. But, it seems that there is a threshold around 8 $\mu$/s. I would re-asses the categories in this manner:

\begin{itemize}
\item 0$\mu$/s$\leq$EQ$\leq$0.6$\mu$/s: Very unlikely to trip the ISI or to loose lock.
\item 0.6$\mu$/s$\leq$EQ$\leq$8$\mu$/s: Very unlikely to trip the ISI, but the interferometer would probably loose lock.
\item 8$\mu$/s$\leq$EQ: Would probably trip the ISI and loose lock.
\end{itemize}

These categories are bold, but it is a start. I hope we will reajust this statement by having more and more data, mostly thank to the Earthquake webpage (see section \ref{subsec:webpage}).

\section{Seismon}
\label{sec:monitor}

This section describes the functions for Seismon, developed to mitigate the effects of teleseismic events on ground-based interferomic gravitational wave detectors. It uses event notices received from USGS and makes time of arrival and amplitude predictions are made for earthquake seismic wave phases at sites of current detectors. Using a combination of earthquake magnitude, distance, and depth information, a prediction of the likelihood of the earthquake causing data disruption at the sites is made.

Gravitational-wave detectors are susceptible to significant seismic motion near the detectors. Seismic motion from human activity near the sites, from wind and from ocean waves are among the most common sources of these disturbances. Earthquakes, due to the ground motion they induce, also effect $h(t)$. During the last LIGO science run, large amplitude earthquakes from around the world would typically cause the detectors to fall out of lock. Not only was the data around the time of the earthquake not useful for GW detection, but it would also take a significant amount of time for the detectors to return to the locked state. With knowledge that an earthquake of significant magnitude was about to arrive, scientists on site could take preventative measures to limit the amount of downtime the detectors experienced. To facilitate this, we have developed seismon, a software package designed for autonomous notification of teleseismic events likely to affect GW detectors.

In the following, we describe how Seismon works.

\begin{figure}[h!]
\centering
\includegraphics[scale=0.4]{./../Michael_graph.png}
\caption{A flow chart of the Seismon pipeline.}
\label{fig:seismon}
\end{figure}

\subsection{PDL Client}

There are three sources of event notifications which seismon uses for analysis. The first is public notifications distributed by USGS in GeoJSON format at \url{http://earthquake.usgs.gov/earthquakes/feed/geojson/all/hour}. This file is downloaded every 5s and parsed for new events. The second is events from the IRIS database.

The third are the type we concentrate on here. These are private notifications distributed for observatory use through USGS's Product Distribution Layer (PDL), which has been configured to receive all notifications of earthquakes worldwide. These messages are in the form of either EQXML or QuakeML Extensible Markup Language (XML) files.

Documentation can be found in \url{http://ehppdl1.cr.usgs.gov/index.html\#\#documentation}. The source code can be found in \url{http://ehppdl1.cr.usgs.gov/ProductClient/ProductClient.jar}. It can be called like the follows:

java -jar ProductClient.jar --receive --configFile=config.ini
ProductClient.jar can be attained from the link in the footnote. An example config.ini file can be obtained from the Seismon github at \url{https://github.com/gwpy/seismon/tree/master/} in the input directory. The only change necessary is modifying the XML output directory from the defaults to where you desire. What the various options mean can be found in the ProductClient documentation.

In the output directory specified, directories will be created and populated with the xml files. The directory will be named for the ID string assigned by the PDL. An example is ak10885303. The subdirectories will contain a UTC timestamp corresponding to when the notice was sent to the PDL (there can be multiple of these as magnitudes and locations are improved). An example xml file in this sub-directory is xml/ak10885303-1070469866\_eqxml.xml. It contains location, magnitude, time, and other information.

\subsection{PDL Client: What is required to run / who it communicates with}

As far as I can tell, java is the only requirement. It communicates with a server maintained by the USGS observatories. We are just listening in on the messages sent from the observatories, we do not send any information back.

\subsection{PDL Client: What it does / what it outputs}

The second step of the process is to convert event notifications to information about the time of arrival and amplitudes at the sites. The event notification pipelines produce earthquake information including time, latitude, longitude, depth, and magnitude. The first step is to make time-of-arrival predictions at the sites. Using the iaspei-tau package \cite{IaspeiTau} wrapped by Obspy \cite{ObsPy}, travel times for the P and S wave components are calculated. An approximate arrival time for the surface waves are calculated assuming a constant 3.5 km/s speed value.

The second step is to make amplitude predictions for each site. We estimate the amplitude of the surface waves, $Rf_{amp}$, at the sites using the equation

\begin{equation}
Rf_{amp} \propto \frac{M}{\sqrt{d}} * e^{-2*pi*h*f_{c}/c} \hspace{6pt} f_{c} = 10^{(5.3-M)/3}
\end{equation}

where M is the magnitude of the earthquake, d is the distance, h is the depth of the earthquake, c is the speed of the surface-waves, and $f_{c}$ is the corner frequency. This was developed as a fit to S5 and S6 earthquakes at LHO and LLO.

These are wrapped in Seismon in seismon\_traveltimes, which is in the bin directory in github. It takes a parameter file, in example of which is in the input/ directory, which directs the output of the code. The arguments it takes are start and end GPS times, the parameter file, and the type of XML file being analyzed. An example command is

The --doPrivate flag corresponds to the PDL client, --doPDL corresponds to the JSON files, and --doIRIS accesses the IRIS database. It outputs XML files with the above information for each current GW interferometer. In the output directory specified, the xml files will appear. The code loops through the XML files from the first step and finds those between the start and end GPS times specified. It creates XML files with the naming structure ID-GPS.xml. An example xml file in this sub-directory is xml/ak10885303-1070469866.xml. It contains location, magnitude, time, and other information provided by the original EQXML file, in addition to Rfamp, which is the predicted amplitude in m/s at the site in question, Distances, which corresponds to the distance between the earthquake and site in meters, Ptimes, which is the expected P-wave arrival, Stimes, which is the expected S-wave arrival, and RthreePointFivetimes, which is the expected surface wave arrival time assuming a surface wave velocity of 3.5 km/s.

\subsection{What is required to run}

The code is in python. I use version 2.6, which is on the clusters.

The packages that probably require installation are:
\begin{enumerate}
\item lxml: XML reading and writing.
\item GWpy: maintained by Duncan Macleod, seismon is based off of it
\item lal/glue: for segment manipulation and time-series analysis and the like (required for GWpy)
\item ObsPy: calculate travel times
\end{enumerate}

\subsection{Earthquake webpage}
\label{subsec:webpage}

Work in progress. In the meantime, please find some informations in S. Biscans DCC page \cite{SB_eq}.

\section{Earthquake Strategy}
\label{sec:strategy}

Work in progress. In the meantime, please find some informations in S. Biscans DCC page \cite{SB_eq}.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\appendix
\section{Appendices}
\subsection{World maps - Velocity}
\label{subsec:map_vel}

\begin{figure}[h!]
\centering
\includegraphics[width=1.3\textwidth, angle =90 ]{./../ampLLO.jpg}
\caption{This map indicates the location of all the earthquakes during S5/S6. The color scale corresponds to the linked maximum velocity seen at LLO }
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[width=1.3\textwidth, angle =90 ]{./../ampLHO.jpg}
\caption{This map indicates the location of all the earthquakes during S5/S6. The color scale corresponds to the linked maximum velocity seen at LHO }
\end{figure}

\subsection{World maps - Velocity}
\label{subsec:map_loc}

\begin{figure}[h!]
\centering
\includegraphics[width=1.3\textwidth, angle =90 ]{./../yesnoLLO.jpg}
\caption{LLO status compared to major earthquakes during S5/S6}
\label{fig:Fig5}
\end{figure}

\begin{figure}[h!]
\centering
\includegraphics[width=1.3\textwidth, angle =90 ]{./../yesnoLHO.jpg}
\caption{LHO status compared to major earthquakes during S5/S6}
\label{fig:Fig6}
\end{figure}

\newpage
\begin{thebibliography}{99}

\bibitem{JH_time}
Jan Harms,
T1500266-v1, earthquake lock loss during S5/S6.
28 May 2015,
\url{https://dcc.ligo.org/LIGO-T1500266}

\bibitem{Jess}
Jessica McIver,
G1500811-v1, ER7 report on DetChar SEI.
19 June 2015,
\url{https://dcc.ligo.org/G1500811}

\bibitem{MC_monitor}
Michael Coughlin,
G1400811-v3, earthquake monitoring for aLIGO.
25 Aug 2014,
\url{https://dcc.ligo.org/LIGO-G1400811}

\bibitem{SB_eq}
Sebastien Biscans,
G1500562-v2, LIGO/VIRGO earthquake studies and controls configurations.
25 Aug 2014,
\url{https://dcc.ligo.org/LIGO-G1500652}

\end{thebibliography}

\bibliography{references_michael}


\end{document}
