TemplPath=/golem/GW/Experiments/BesidesMainStream/MWplasma/sessions/Template.vI shotnobase=184 shotseq="`seq 80 97`" shotseq_pos="`seq 88 97`" shotseq_neg="`seq 80 87`" ADDRESS="http://golem.fjfi.cvut.cz/wiki`echo $PWD|sed 's/\/home\/svoboda\/GW//g'|sed 's/\/home\/svoboda\/mnt\/buon\/GW//g'`" GWcommit="automated VA char report develeop" R=50000 timewindow=10 initframe=7500 finalframe=15000 shotstart=7600 shotend=15000 xrange=[4.5:15] #plasmarange=[7.5:12] diagn=v_bias param=param_1 Voltrange=[-30:30] Specf=Base Currentrange=[-10.*1000/$R*1.2:10.*1000/$R*1.4] Specf=Zoom Currentrange=[-0.015:0.1] Specf=Zoom.IonBrachCorrection Currentrange=[-0.015:0.1] #Test data #timewindow=10 #initframe=7500 #finalframe=8000 #shotstart=7700 #shotend=7900 #shotseq="`seq 80 81`" #shotseq_neg="`seq 44 52`" #shotseq_pos="`seq 53 59`" referenceshot=18480 analysis: mkdir -p Analysis.$(Specf) #cp -r $(TemplPath)/Analysis/* Analysis.$(Specf)/ cd Analysis.$(Specf); bash ScriptV1.page $(shotnobase) $(shotseq) $(shotseq_pos) $(shotseq_neg) $(R) $(Voltrange) $(Currentrange) $(referenceshot) $(initframe) $(timewindow) $(finalframe) $(shotstart) $(shotend) $(param) $(diagn) $(plasmarange) all: echo -ne "---\nformat: markdown\n...\n\n" >index.page echo -ne "# Experiment report on ..\n" >>index.page echo -ne "## Raw data presentation \n" >>index.page; make rawfigures #make commit rawfigures: mkdir -p Figures echo -ne "### \$$V_{bias}\$$ scan \n " >>index.page; make -i figure dir=StandardPlasmaV_bias_scan xrange=$(xrange) yrange=[-10:*] figure: #Generate figure cp -r $(TemplPath)/Figures/$(dir) Figures/ cd Figures/$(dir); sh script.page $(shotnobase) $(shotseq) $(xrange) $(yrange) $(diagn) $(param) $(referenceshot) $(shotseq_pos) $(shotseq_neg) #Generate wiki code for GW for i in full negativ positiv; do \ echo -ne "\n\n(\n[jpg](Figures/$(dir)/graph$$i.jpg), \n[svg](Figures/$(dir)/graph$$i.svg),\n[canvas](Figures/$(dir)/graph$$i.html),\n[script](Figures/$(dir)/script.page))\n\n">>index.page; \ done overfig: Time=7790;gnuplot -persist -e "set terminal x11 font 'Helvetica,30';set out 'image.eps';\ set size 1,1; set multiplot;set size 0.5,0.5;set origin 0.,0.5;plot 'Analysis/IndData/"$$Time"raw.dat','Analysis/IndData/"$$Time"fit.dat' w l;set origin 0.,0.;plot 'Analysis/IndData/"$$Time"d2f.dat';set origin 0.5,0.5;plot 'Analysis/IndData/"$$Time"d1f.dat';set origin 0.5,0.;plot 'Analysis/IndData/"$$Time"eedf.dat';unset multiplot;set out" commit: ssh -X buon "cd /GW;git add .;git commit -m '$(GWcommit)'" zombies: echo -ne "### \$$I_{p}\$$ scan - discharge reproducibility\n " >>index.page; make -i figure dir=StandardPlasmaI_p_scan xrange=[16:27] yrange=[0:*] echo -ne "### \$$V_{bias}\$$ scan - ion side\n " >>index.page; make -i figure dir=StandardPlasmaV_bias_scan_I_is xrange=[16:25] yrange=[0:0.5] echo -ne "### \$$V_{bias}\$$ scan - elektron side\n " >>index.page; make -i figure dir=StandardPlasmaV_bias_scan_I_es xrange=[16:25] yrange=[-10:0]