
1) Cree le directory "torrento" dans /exp/bao
cd /exp/bao/torrento

2) dans ce directory cree le directory Abell85
cd Abell85
cp /exp/bao/campagne/Abell85-Raw.tgz
tar xzf Abell85-Raw.tgz
cd ..

3)Telecharge depuis svn dans /exp/bao/torrento
svn co https://svn.lal.in2p3.fr/Opera/Glob/BAORadio/AmasNancay/trunk .

4) Build applications
mkdir Objs
source /exp/opera/campagne/setup.csh (pour initier Sophya ou alors fait ce que Reza t'a dit)
make

5) run
./Objs/mergeRawOnOff -h (help/usage)

./Objs/mergeRawOnOff -ppfFile diffOnOffRaw (default compute mean of spectra on all cycles for Abell85)
./Objs/mergeRawOnOff -act medianDiffOnOff -ppfFile diffOnOffRaw (median filtering + image)

6) Interactive ploting default settings
Dans le .Xdefaults de ton home directory il faut ajouter
....................
PeidaInt*default*background:                 PeachPuff
PeidaInt*background:                         PeachPuff
PeidaInt*bottomShadowColor:                  Black
PeidaInt*default*bottomShadowColor:          Black
PeidaInt*Foreground:                         Black
PeidaInt*default*Foreground:                 Black
PeidaInt*topShadowColor:                     White
PeidaInt*default*topShadowColor:             White
PeidaInt*borderColor:                        Black

PeidaInt*fontList:           -*-helvetica-bold-r-normal-*-13-*-*-*-*-*-ISO8859-1
PeidaInt*default*fontList:    -*-helvetica-bold-r-normal-*-13-*-*-*-*-*-ISO8859-1
# Attention, ne pas mettre de blanc a la fin du nom de fonte
PeidaInt*fontFamilyName:   *-courier

PeidaInt*XmToggleButton*selectColor:                  Red
.........................

7) On lance spiapp
spiapp -term

8) execution d'un script .pic
Dans la fenetre X11 taper executer plotDiffOnOff.pic
> exec plotDiffOnOff abell85 574 32 mean 
1er arg: source en minuscule
2eme arg: le # de cycles processes
3eme arg: le # de bin de freq. regroupes pour calcucler moyenne & sigma
4eme arg: le type de plot

Les args 1,2,4 definissent le nommage du fichier a charge -(celui cree par mergeRawOnOff)
Le 3eme arg est un parametre utilise par mergeRawOnOff.
ou
> exec plotDiffOnOff abell85 500 32 median



