pylops.signalprocessing.sliding1d.sliding1d_pad_to_next

pylops.signalprocessing.sliding1d.sliding1d_pad_to_next(inpt, nwin, nover, nop)[source]

Pad input to next slice

Pad inpt to the next slice such that the padded input is completely filled by overlapping slices.

Parameters:
inptnumpy.ndarray

1-dimensional input data.

nwintuple

Number of samples of window.

noverint

Number of samples of overlapping part of window.

nopint

Size of model in the transformed domain.

Returns:
inpt_padnumpy.ndarray

1-dimensional input data after padding

nwinsint

Number of windows of padded input.

dimint

Shape of the 1-dimensional model of padded input.

mwins_inendstuple

Start and end indices for model patches of padded input.

dwins_inendstuple

Start and end indices for data patches of padded input.