import dascore as dc
= dc.get_example_patch()
patch # Resample time axis such that there are 50 samples total
= patch.iresample(time=50) new
iresample
iresample(
patch: Patch ,
window = None,
**kwargs ,
)-> ‘PatchType’
Resample a patch along a single dimension using Fourier Method.
Unlike resample this function requires the number of samples for the selected dimension.
Parameters
Parameter | Description |
---|---|
patch | The patch to resample. |
window | The Fourier-domain window that tapers the Fourier spectrum. See scipy.signal.resample for details. |
**kwargs | keyword arguments to specify dimension. |
Note
Simply uses scipy.signal.resample.