forked from ct6502/wavelets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
4,443 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<HTML> | ||
|
||
<HEAD> | ||
<TITLE>Wave:Data Analysis</TITLE> | ||
</HEAD> | ||
|
||
<BODY BGCOLOR="#FFFFFF"> | ||
|
||
<CENTER><H1>Geophysical Data Analysis</H1></CENTER> | ||
<P> | ||
<BLOCKQUOTE> | ||
<FONT SIZE=4> | ||
<UL> | ||
¤ To reduce a set of time series to a few parameters that | ||
capture a large variance percentage, and,<BR> | ||
¤ To use these dominant parameters to explain the | ||
behavior of the time series. | ||
</UL> | ||
</FONT> | ||
</BLOCKQUOTE> | ||
|
||
<TABLE ALIGN=center CELLPADDING=5> | ||
<TR ALIGN=center> | ||
<TD><TD><TD ALIGN=left><FONT SIZE=5><B>Method</B> | ||
<TD><FONT SIZE=5><B>Single Time Series</B> | ||
<TD><FONT SIZE=5><B>Multi-series</B> | ||
|
||
<TR VALIGN=top><TD ROWSPAN=5 ALIGN=left VALIGN=middle><FONT SIZE=5> | ||
<PRE> | ||
| | ||
| | ||
| | ||
Increasing | ||
Complexity | ||
(more | ||
variables) | ||
| | ||
| | ||
| | ||
| | ||
\|/ | ||
V | ||
</PRE> | ||
</TD> | ||
<TD> | ||
<TD><FONT SIZE=5><I><B>Statistics</B></I> | ||
<TD><FONT SIZE=5><UL><LI>mean, variance, skew, kurtosis | ||
<LI>curve-fitting | ||
<LI>autocorrelation | ||
</UL> | ||
<TD><FONT SIZE=5><UL><LI>multiple linear regression | ||
<LI>covariance, cross-correlation | ||
</UL> | ||
|
||
<TR VALIGN=top><TD> | ||
<TD><FONT SIZE=5><I><B>Spectrum</B></I> | ||
<TD><FONT SIZE=5><UL><LI>Fourier power spectrum (FFT) | ||
<LI>Maximum Entropy Method (MEM) | ||
<LI>Multi-Taper Method (MTM) | ||
</UL> | ||
<TD><FONT SIZE=5><UL><LI>Cross-spectrum, phase spectrum | ||
<LI>Coherency | ||
</UL> | ||
|
||
<TR BGCOLOR="#FFFF99" VALIGN=top><TD> | ||
<TD><FONT SIZE=5><I><B>Wavelet Transform</B></I> | ||
<TD><FONT SIZE=5><UL><LI>Wavelet power spectrum | ||
<LI>Sliding FFT; evolutionary spectra | ||
</UL> | ||
<TD><FONT SIZE=5><UL><LI>Cross-wavelet spectrum, phase | ||
<LI>Wavelet coherency | ||
</UL> | ||
|
||
<TR VALIGN=top><TD> | ||
<TD><FONT SIZE=5><I><B>Orthogonal Modes</B></I> | ||
<TD><FONT SIZE=5><UL><LI>Singular Spectrum Analysis (SSA) | ||
</UL> | ||
<TD><FONT SIZE=5><UL><LI>Empirical Orthogonal Functions (EOF) | ||
& Singular Value Decomposition (SVD) | ||
</UL> | ||
</TABLE> | ||
|
||
<!-- | ||
 <P> | ||
<HR> | ||
<A HREF="">back to Wavelet Home Page</A><BR> | ||
--> | ||
|
||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<HTML> | ||
|
||
<HEAD> | ||
<TITLE>Wave:Applications</TITLE> | ||
</HEAD> | ||
|
||
<BODY BGCOLOR="white"> | ||
|
||
<H1>Wavelet Applications</H1> | ||
|
||
 <P> | ||
<FONT SIZE=5> | ||
|
||
<UL> | ||
<LI> Image processing [Mallat (1988)] | ||
<P> | ||
<LI> Irregularly-spaced data (stellar activity) | ||
[Frick et al. (1997)] | ||
<P> | ||
|
||
<LI> 2D turbulence prediction; wavelet packet compression [Farge et al. (1992)] | ||
<P> | ||
|
||
<LI> Coherent structure detection [Farge (1992), Gamage (1990)] | ||
<P> | ||
|
||
<LI> Wave breaking & front detection [Liu (1994), Gamage & Blumen (1993)] | ||
<P> | ||
|
||
<LI> Wavelet bases for partial differential equations | ||
[Farge et al. (1992), Bacry et al. (1993)] | ||
<P> | ||
|
||
<LI> Paleoclimate [Bolton et al. (1995), Yiou et al. (1995)] | ||
</UL> | ||
</FONT> | ||
 <P> | ||
<H1>Summary</H1> | ||
 <P> | ||
<FONT SIZE=5> | ||
<DL COMPACT> | ||
<DT>¤<DD>Wavelet analysis is a useful addition to methods of | ||
geophysical data analysis.<BR> | ||
<DT>¤<DD>Most helpful in situations of locally-coherent signals, | ||
or non-stationary time series.<BR> | ||
<DT>¤<DD>More research is needed on the perils & pitfalls, | ||
choice of wavelet bases, and on statistical significance. | ||
</DL> | ||
</FONT> | ||
<P><!-- | ||
<HR> | ||
<A HREF="">back to Wavelet Home Page</A> | ||
--> | ||
|
||
</BODY> | ||
</HTML> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<HTML> | ||
|
||
<HEAD> | ||
<TITLE>Wave:History</TITLE> | ||
</HEAD> | ||
|
||
<BODY BGCOLOR="white"> | ||
<H1> | ||
Sketchy History of Wavelet Analysis | ||
</H1> | ||
|
||
<TABLE CELLPADDING=5> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1800's</FONT><TD><FONT SIZE=5>Joseph Fourier</FONT> | ||
<TD><FONT SIZE=5>Fourier transform & series; heat diffusion</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1909</FONT><TD><FONT SIZE=5>Alfred Haar</FONT> | ||
<TD><FONT SIZE=5>rectangular Haar basis functions</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1946</FONT><TD><FONT SIZE=5>Dennis Gabor</FONT> | ||
<TD><FONT SIZE=5>time-frequency Gabor wavelets; communication theory</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1947</FONT> | ||
<TD><FONT SIZE=5>Jean Ville & Hermann Wigner</FONT> | ||
<TD><FONT SIZE=5>Wigner-Ville transform; quantum mechanics</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1965</FONT><TD><FONT SIZE=5>Cooley & Tukey</FONT> | ||
<TD><FONT SIZE=5>Fast Fourier Transform (FFT)</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1984</FONT><TD><FONT SIZE=5>Grossman & Morlet</FONT> | ||
<TD><FONT SIZE=5>synthesis of theory; geophysics & earthquakes</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1985</FONT><TD><FONT SIZE=5>Yves Meyer</FONT> | ||
<TD><FONT SIZE=5>family of wavelets for complex phenomena</FONT> | ||
<TR VALIGN=top><TD> | ||
<TR VALIGN=top><TD><FONT SIZE=5>1988-89</FONT> | ||
<TD><FONT SIZE=5>Stephane Mallat & Ingrid Daubechies</FONT> | ||
<TD><FONT SIZE=5>discrete wavelet transform</FONT> | ||
</TABLE> | ||
 <P> | ||
<FONT SIZE=5> | ||
Adapted from ``Signal processing: A historical perspective''<BR> | ||
(<A HREF="http://www.monash.edu.au/cmcm/wavelet/whistory.htm">http://www.monash.edu.au/cmcm/wavelet/whistory.htm</A>) | ||
</FONT> | ||
|
||
<HR><!-----------------------------------------------------------------> | ||
<!--A HREF="">back to Wavelet Home Page</A> | ||
--> | ||
|
||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
FUNCTION psi,k,t,WAVE_PART=wave_part,AMP_PART=amp_part | ||
|
||
wave_part = COMPLEX(COS(k*t),SIN(k*t)) ; exp(ikt) = cos(kt) + i*sin(kt) | ||
amp_part = EXP( -ABS(t)^2/2.) ; exp(-|t|^2/2) | ||
RETURN,wave_part*amp_part ; morlet | ||
|
||
END | ||
|
||
|
||
k0 = 6.0 | ||
time = FINDGEN(401)/20. - 10. | ||
|
||
a = 2 | ||
b = 0 | ||
|
||
morlet = (1./SQRT(a))*PSI(k0,(time - b)/a,WAVE=wave,AMP=amp) | ||
|
||
WINDOW,0,COLOR=256,XSIZE=512,YSIZE=128 | ||
LOADCT,42 | ||
!P.BACKGROUND = 255 | ||
!P.COLOR = 0 | ||
!P.FONT = -1 | ||
!P.CHARSIZE = 1.5 | ||
!X.STYLE = 5 | ||
!Y.STYLE = 5 | ||
!P.MULTI = [0,2,1] | ||
!X.MARGIN = [2,2] | ||
!Y.MARGIN = [0,0] | ||
!Y.RANGE = [MIN(FLOAT(wave))*0.95, MAX(amp)*1.05] | ||
dy = (!Y.CRANGE(1) - !Y.CRANGE(0))/5. | ||
|
||
PLOT,time,FLOAT(morlet), $ | ||
THICK=2,COLOR=50 | ||
XYOUTS,!X.CRANGE(0),!Y.CRANGE(1) - dy,'(a)',CHARSIZE=1.2,ALIGN=0.5 | ||
|
||
PLOT,time,FLOAT(wave)/SQRT(2), $ | ||
COLOR=128,THICK=2 | ||
OPLOT,time,amp,COLOR=208,THICK=2 | ||
OPLOT,time,FLOAT(morlet),THICK=2,LINES=2,COLOR=50 | ||
XYOUTS,!X.CRANGE(0),!Y.CRANGE(1) - dy,'(b)',CHARSIZE=1.2,ALIGN=0.5 | ||
|
||
|
||
|
||
END |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
dt = 1 | ||
n = 128 | ||
t = FINDGEN(n)*dt | ||
t1 = 8 | ||
t2 = 32 | ||
x = SIN(2*!PI*t/t1) + SIN(2*!PI*t/t2) | ||
; x = RANDOMN(s,n) | ||
|
||
f = SPECTRUM(x,dt,PERIOD=fperiod) | ||
w = WAVELET(x,dt,PERIOD=wperiod,DJ=0.125) | ||
gws = TOTAL(ABS(w)^2,1)/n^2 | ||
|
||
WINDOW,XSIZE=240,YSIZE=350 | ||
LOADCT,39 | ||
!P.COLOR = 192 | ||
!P.MULTI = [0,1,3] | ||
!X.STYLE = 9 | ||
!Y.STYLE = 9 | ||
!X.MARGIN = [8,2] | ||
!Y.MARGIN = [4,3] | ||
!Y.MINOR = 1 | ||
!X.TICKLEN = -0.04 | ||
!P.CHARSIZE = 1.75 | ||
xticks = FIX(ALOG(n)/ALOG(2))-1 | ||
xtickv = 2L^(LINDGEN(xticks+1)+1) | ||
xrange = [MAX(xtickv),MIN(xtickv)] | ||
|
||
PLOT,t,x, $ | ||
XRANGE=[0,n], $ | ||
XMINOR=1,XTICKS=xticks-2, $ | ||
XTITLE='Time (days)', $ | ||
TITLE='Time series with two sine waves' | ||
OPLOT,t,x,COLOR=254 | ||
|
||
PLOT,fperiod,f,/XTYPE, $ | ||
XRANGE=xrange,YRANGE=[0,0.5],YTICKS=2, $ | ||
XTICKS=xticks,XTICKV=xtickv, $ | ||
XTITLE='Period (days)',YTITLE='Power', $ | ||
TITLE='Fourier power spectrum' | ||
OPLOT,fperiod,f,PSYM=-4,/NOCLIP,COLOR=254,SYMSIZE=0.75 | ||
|
||
PLOT,wperiod,gws,/XTYPE, $ | ||
XRANGE=xrange,YRANGE=[0,0.25],YTICKS=2, $ | ||
XTICKS=xticks,XTICKV=xtickv, $ | ||
XTITLE='Period (days)',YTITLE='Power', $ | ||
TITLE='Global wavelet spectrum' | ||
OPLOT,wperiod,gws,PSYM=-4,/NOCLIP,COLOR=254,SYMSIZE=0.75 | ||
|
||
TVLCT,r,g,b,/GET | ||
WRITE_GIF,'wave_bias_faq.gif',TVRD(),r,g,b | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.