Closed tclements closed 4 years ago
Hmm.... you could call DSP.resample
, sure, but this appears to be an oversight on my part. I definitely intended to allow upsampling. I'm guessing that I need an explicit array resize check when S.fs > fs
.
Ok, I wasn't sure if resample
was intended to do upsampling too. DSP.resample
not the best option then.
Fixed on dev, will merge into master if tests pass.
resample!(S,fs=fs
throws aBoundsError
when trying to upsample data wherefs > S.fs
.MWE:
DSP.jl's version of
resample
has no problem upsampling data wherefs > S.fs
.I see that SeisIO's version of downsampling is much faster than DSP version:
Does it make sense to call
DSP.resample
whenS.fs > fs
? Happy to submit a PR on this which calls out toDSP.resample
when upscaling is needed.