Satellite_Imagery_Python icon indicating copy to clipboard operation
Satellite_Imagery_Python copied to clipboard

`center_frequency` yields negative frequency for extreme scale

Open scottfleming opened this issue 4 years ago • 1 comments

The following example returns wc = -3.1354 but according to the specs it should be nonnegative, unless I'm misunderstanding something.

from ssqueezepy import wavelets, Wavelet
wavelet = Wavelet(("morlet", {"mu":14.0}))
_ = wavelets.center_frequency(
    wavelet,  
    scale=np.array([1.0]),  
    kind='peak',
    N=1024,
    viz=1
)

scottfleming avatar Aug 11 '21 23:08 scottfleming