Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-DAQ›Calibration #64664

BNS range drops look longer than the actual problem of ~25min glitches

Figure 1, when ~25min glitches occur the BNS range drops for one and a half minute, which is a bit surprising give than the glitch itself is less 100ms long

Figure 2, shows three 30s long spectra around that glitch, in blue at 01:13:20 (all the time before the glitch), in purple at 01:15:00 (glitch happens during these 30s) and in red at 01:15:20 (contained within the period when the BNS range is lower)

So h(t) itself doesn't look affected by the glitch for 90 seconds, just the BNS range channel. Is the BNS range channel an average over 1.5min long period which would explain why it is affected by the ~25min glitch for a longer time that the glitch itself?

3 comments

direnzo · 4 Jul 2024 · 17:34 #64665

This is a "known feature" of the VIM BNS range calculation (VIR-0590A-20), which in turn relies on PSD estimations with the welch method with 8 second long strides, 2 second FFTs and 50% of overlap. The result is smoothed with a 80 second long moving average, if I'm not mistaken. At least, it matches pretty well what is shown in the range time series.

This is not the only definition of BNS range that we have in Virgo. The same thing for LVK. For example, the BNS range estimated by gwistat is done by making median averages (instead of the means of the Welch's method) and smoothing with a geometric mean. The 25-minute glitches are completely absent there. In general, using medians makes the PSD estimation robust against these glitches: see this git issue.

For this reason, the last version of BruCO has an option to use median averages ( --medianpsdestimation ), which makes coherence estimates robust and suitable for durations longer than ~ 1500 sec (=25 minutes).

verkindt · 10 Jul 2024 · 15:14 #64690

It seems that my comment #elog64666 of 4th July has disappeared, so I put it again:

In Hrec, by default, the BNS range is computed with 21 FFTs of h(t) with one FFT every 4s (FFT time window = 8s).
Thus the result depends on 21x4 = 84 sec of data.
But what is used is not an average of the 21 FFTs, it is a median spectrum.
Here are the two lines of the code concerned:

if (Hrec.RangeMedianFlag > 0) rch->fft = FrvRFFTNewT("HNMO",dt, nAverage);
else                                           rch->fft = FrvRFFTNewT("HNAO",dt, nAverage);

The use of median should allow the recovery of the correct BNS range at most 4 seconds after the glitch.
Maybe, I do not use correctly FrvRFFTNewT or there is a fix to be done in FrvRFFTNewT.
Anyway, no problem on h(t), only a problem with BNS range computation.

mours · 11 Jul 2024 · 17:36 #64698

Didier is right, unlike Francesco suggested, we do use a median to compute the PSD used for the range calculation. Didier is using the right function call. But the origin of the effect is a bit more subtle.

When there is a 25 minutes glitch the PSD of time of the glitch is completely useless (and only this one). But when you take the median over 21 values with one value is completely off, instead of taking the value #10 (after ranking them), you always take value #9, which introduce a bias in the PSD and therefore a bias in the range. This bias is lasting as long as the “corrupted” PSD is used for the median computation, i.e; 21*8/2 = 84 seconds. To illustrate this effect, the first plot is comparing the online BNS range (blue line), with a computation of the range (red line) where the median value is actually the next value. You can see an offset between the two curve that correspond to the deep of the glitch.

Now, why we don’t see this glitch in the gwistat range? This is just a matter of choices made for the parameters used to compute the PSD, and especially for how long we average the PSD. If instead of 21 values we use 81 values with 4 seconds long FFTs, you get the red curve of the second plot where the deep of the glitch is more reduced. The average level is not exactly the same, since there is not a unique way to define a PSD. Obviously, the deep of the glitch could be further reduce, making it invisible by using more FFTs. But that is just sweeping the dust under the rug.

These glitches are indeed short (100 ms), but for a typical analysis, due to windowing, we are losing a bit more than 1 seconds of data. This is about what the range is showing: we are losing about 3% of the range for 84 seconds, or 0.03*84=2.5 s.

One additional comment: it would be also probably unsafe to change the parameters used to compute the range in the middle of the run to hide these glitches, since (beside hiding the issue) it could change slightly the range and bias comparison between different time of the run.