stride_array

astroplan.stride_array(arr, window_width)[source]

Computes all possible sequential subarrays of arr with length = window_width

Parameters
arrarray-like (length = n)

Linearly-spaced sequence

window_widthint

Number of elements in each new sub-array

Returns
strided_arrarray (shape = (n-window_width, window_width))

Linearly-spaced sequence of times