Discussion:
Using Haar wavelet with wv_cwt
(too old to reply)
o***@gmail.com
2016-12-18 19:32:18 UTC
Permalink
Hi all,
I've been trying to use wv_cwt to perform the wavelet transform on a 1d time series. It works fine with the morlet and paul wavelets but I cannot use it with the Haar wavelet. All I get in the console is "Keyword parameters not allowed in call."

Any thoughts?

Many thanks,
Owen
b***@gmail.com
2017-10-13 17:12:44 UTC
Permalink
Post by o***@gmail.com
Hi all,
I've been trying to use wv_cwt to perform the wavelet transform on a 1d time series. It works fine with the morlet and paul wavelets but I cannot use it with the Haar wavelet. All I get in the console is "Keyword parameters not allowed in call."
Any thoughts?
Many thanks,
Owen
I apologize that our wavelet documentation is a little "light" and confusing. The issue is that the Haar wavelet family is of type discrete. WV_CWT is for continuous wavelets only. You will want to use WV_DWT (for discrete).

You need to run WV_FN_HAAR separately first to create your coefficients based on the order you define.
Then you input all that information into WV_DWT to develop create wavelet transform.


============
Example:

coefficents_parameters = wv_fn_haar(1,scaling,wavelet,ioff,joff)
data = randomu(1,64)
part_wv = wv_dwt(data, wavelet,scaling,ioff,joff, N_LEVELS=3)

Does this make sense? For continuous families, you can use WV_CWT directly. For discrete families, you must wave the WV_FN_FAMILYNAME function first, then WV_DWT.

============

Hope this helps.

P.S. I will look into making this more clear in the IDL Documentation Center.


Ben Castellani
IDL Team
Harris Geospatial Solutions
o***@gmail.com
2017-12-13 13:14:25 UTC
Permalink
Hi Ben,

Thanks for your reply. That helps somewhat but I still cannot achieve what I want to do. I want to be able to plot a power scaleogram, but the output here is an array with the same dimensions as the input data and not as a function of data point and scale. I can get a plot of a scaleogram with the haar wavelet in the WV_APPLET but I want to be able to manipulate the scaleogram array myself which I cannot do in the applet (or at least I haven't figured out how to do it yet).

Cheers,
Owen

Continue reading on narkive:
Loading...