HELP for wavelet.m

 

Preferences explained
Running wavelet.m
Palettes
View angles
Customizations

 

PREFERENCES EXPLAINED :

Before running wavelet.m, check the computing preference values in wavelet.m (lines 28-54):

%--------------------------------------------------------------------
% USER PREFERENCES : CHECK THESE BEFORE RUNNING SCRIPT
% mode : 1 for computation+plot 2 for plot only (an already computed .m file)
mode = 1 ;
% Cauchy order (recommended for standard analysis: 200)       best k/R-spaces decomposition
n = 200 ;
% minimum R-space distance Å (recommended: 0.2; 0 is forbidden)
ri = 0.2 ;
% maximum R-space distance Å (recommended: 6.0)               higher values increases computing time
rf = 6.0 ;
% number of R-space intervals (recommended: 200)                controls image definition (pixels)
na = 200 ;
%palette for the 2D CCWT : 0 (no 2D display) 1 (color) 2 (grays)
palette1 = 1 ;                                                                           see (1)
%palette for the 3D CCWT : 0 (no 3D display) 1 (color) 2 (grays) 3 (grays/satin look)
palette2 = 1 ;                                                                           see (1)
%viewing angle for the 3D : 0 (defaut view) 1 OR 2 OR 3 (various other angles: view(-45,65), view(-125,55) OR view(44,44))
vieww = 3 ;                                                                             see (2)
%--------------------------------------------------------------------

 

• If you selected mode = 1, make sure you have a normalized (k-weighted and/or apodized if needed) ready,
            as an ASCII, file with no headers but 2 columns (k,chi). See example here.

  If you selected mode = 2, then you want to just plot an already computed *.mat file.
  WARNING : **.mat files are platform dependant.

 

 

RUNNING "wavelet.m"

• Now, in Matlab, you are preparing to run the script "wavelet.m"

• The script is asking to input a file :
                    if mode=1 : a normalized EXAFS file
                    if mode=2 : a already computed MAT file (*.mat)
• Note : *.mat files are cross-platform compatible, which means that you can plot on a Mac a *.mat file previously computed on Win.

 

PALETTES FOR PLOTTING :

• Plotting modes (parameters palette1 and palette2 - lines 47 and 50 of wavelet.m) :

values
palette1
plalette2
0
does not plot
does not plot
1
16-bit colors
16-bit colors (+)
2
256 levels of pseudo-grays (*)
256 levels of pseudo-grays (*)(+)
3
no effect
256 levels of grays as "satin"(+)

Notes: (*) pseudo-grays and blueish levels, that converts into grays if you use a picture program.
We used these pseudo-grays because they provide a more cosmetic way to plot gray scales than reals grays.

For Matlab afficionados: we use the (1-pink) colormap. Try (1-gray) to see how these are less productive
         (see line 232 of wavelet.m).

          (+) the colorbar can be removed by neutralizing line 264 of wavelet.m with an %:
                       % affiche la legende des couleurs
                       % colorbar

 

 

VIEW ANGLES for the 3D CCWT (parameter vieww on line 53 of wavelet.m)


Wavelet.m can plot your data in 3D from 3 vista points: 1, 2 or 3

0
default
pseudo-2D [ i.e., seen from above ]
1
(-45,65)
from the (kmin;Rmin) corner to the (kmax;Rmax) corner
2
(-125,55)
from the (kmin;Rmax) corner to the (kmax;Rmin) corner
3
(44,44)
from the (kmax;Rmin) corner to the (kmin;Rmin) corner

 

 

 

3D CUSTOMIZATIONS:

In wavelet.m, you can customize your 3D outputs :

- adding/removing grids :       grid off / grid on    on line 241

- adding/removing colorbar : colorbar / %colorbar on line 264

 


Back to the Main page

 

(c) François Farges, 2003