Toggle whether bad ACS lags should be fixed, if possible.
Synopsis
setfixlags(fixlags)
Arguments
fixlags
When true, bad ACS lags are fixed, if possible.
Allowed:
boolean
Default:
False
Returns
boolean
Description
The ACS some times suffers from bad 1024-lag segments where the entire segment
is obviously offset and possibly scaled differently from the surrounding lags.
If this toggle is true and that bad-lag segment is not the first 1024 lags, then
the filler will "fix" the bad lags. This fix is done by first subtracting the
median of those bad lags from the bad lags. Then the bad lags are scaled so
that their standard deviation matches the standard deviation of the 512 lags
on either side of the bad lags. Finally, a constant is added to the bad
lags so that the median of the bad lags matches the median of the 512 lags on
either side of the bad lags. If this toggle is false, the data are flagged
as bad.