Question relating to IDL wavelet methods [message #64804] |
Fri, 16 January 2009 11:01 |
Hu
Messages: 35 Registered: January 2009
|
Member |
|
|
Hi, there
I got an array X which having 152 elements, and I want to use some
wavelet methods to remove noise (abnormal elements), Here is my code
in IDL
;;////////////////////////////////////////////////////////// //////
;;generate array X with 152 elements
X=[....]
;;get information of specific wavelet (DAUBECHIES)
infomation=WV_FN_DAUBECHIES(8,scaling,wavelet,ioff,joff)
;;define stop level
nl=3
;;perform wavelet transformation
xdwt = wv_dwt(X,scaling,wavelet,ioff,joff,n_levels=nl) ;;-------
here is the error source
;; denoise
newdwt=wv_denoise(xdwt,'DAUBECHIES',3)
;;inverse wavelet transform
idwt = wv_dwt(newdwt,scaling,wvx,ioff,joff,N_LEVELS=nl,INVERSE=1)
help,idwt
print,'idwt is',idwt
;;////////////////////////////////////////////////////////// ////
The error information is:
WV_DWT: Input array dimensions must be less than 4 or a power of 2.
Can anybody here tell me the reason why this happened? and how can it
be solved?
Thanks
Hu
|
|
|