-Mattia, Sheila
We have written a python script to compute the full matrix of power spectral densities and cross-power spectral densities between a given channel, i.e., DARM, and a set of auxiliary channels. The code can be find at this repository https://git.ligo.org/mattia.emma/cross_psd which includes a README file describing how to run it.
The main arguments the user has to pass are the start time (in GPS time) and length of the data to retrieve from gwpy, a list of channel names and the starting frequency for the strain plots.
The code creates five different types of plots using the coherence and cross-power spectral density matrix. The final result of the code is a coefficient for each frequency value expressing the algebraic sum of the contributions of all the auxiliary channels to DARM considering the cross-power spectral density terms. It also computes the coherence between the single auxiliary channels and the DARM channel, which are the diagonal terms in the cross-power spectral density matrix.
The five kinds of plots are:
All of these plots can also be created using as a main channel any auxiliary channel instead of DARM, e.g., if one would like to study the correlation between auxiliary channels. Each plot name also includes the start and end GPS time of the data used for them.
Comments are welcome. As a next step we would like to implement interactive plots to allow the user to include/exclude lines from the plots.
We have now added a code and instructions to the GitLab to obtain an interactive plot on one's local server.
The webpage displays two plots as shown in the attached screenshots (third and fourth image) and allows the user to select which lines to show through a checklist. It is possible to save a screenshot of each plot, zoom-in and out, and hover over the data.
The two included plots are (1) a plot of the normalized residuals between the DARM noise and the cumulative strain contribution of the auxiliary channels , and (2) "Plot 2" from the above aLog, showing the cumulative contribution of the selected channels to the DARM noise.
The code is publicly accessible on GitLab at Cross_psd .