comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Using Haar wavelet with wv_cwt
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Using Haar wavelet with wv_cwt [message #94000] Sun, 18 December 2016 11:32 Go to next message
owentrefonwys is currently offline  owentrefonwys
Messages: 4
Registered: November 2012
Junior Member
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
Re: Using Haar wavelet with wv_cwt [message #94789 is a reply to message #94000] Fri, 13 October 2017 10:12 Go to previous messageGo to next message
benjamin.castellani is currently offline  benjamin.castellani
Messages: 7
Registered: October 2017
Junior Member
On Sunday, December 18, 2016 at 12:32:21 PM UTC-7, owentr...@gmail.com wrote:
> 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
Re: Using Haar wavelet with wv_cwt [message #94929 is a reply to message #94789] Wed, 13 December 2017 05:14 Go to previous message
o.wyn.roberts is currently offline  o.wyn.roberts
Messages: 2
Registered: December 2017
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: function graphics curiosity? bug?
Next Topic: GEMI vegetation index

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:07:44 PDT 2025

Total time taken to generate the page: 0.03223 seconds