running_MAD_2D¶
- tayph.running_MAD_2D(z, w, verbose=False, parallel=False)[source] [edit on github]¶
Computers a running standard deviation of a 2-dimensional array z. The stddev is evaluated over the vertical block with width w pixels. The output is a 1D array with length equal to the width of z. This is very slow on arrays that are wide in x (hundreds of thousands of points).
In the case that z is a very wide array (e.g. a stitched 1D spectrum with ~1e5 points, the speedup by setting parallel=True on my laptop with 8 cores is a factor of 2).