rpirena/hour_rate.gpt
stephan 51a5e5cf54 rpirena: scripts
git-svn-id: svn+ssh://asterix.ieap.uni-kiel.de/home/subversion/stephan/solo/eda/cospi/host@6123 bc5caf13-1734-44f8-af43-603852e9ee25
2017-06-18 21:32:20 +00:00

22 lines
541 B
Text

# -*- gnuplot -*-
set ylabel "[counts/hour]"
set yrange [ 0:100 ]
set locale "de_DE.UTF-8"
t0 = `date +%s -d 0`
t(x) = (x-t0)/3600.0
U=""
if (ARG1 eq "MDDM") { U="-v U=MDDM"; ARG1=ARG2; ARG2=ARG3; ARG3=ARG4 }
if (ARG1 ne "") { fn=ARG1 }
T=3600
if (ARG2 ne "") { T=ARG2 }
S = 3600
if (ARG3 ne "") { S=ARG3 }
plot "<./hour_rate.awk ".U." T=".T." ".fn \
u (t($1)):($2*S):($3*S) tit "Center cm^2" w errorl pt 7, \
"" u (t($1)):($4*S):($5*S) tit "Vertical" w errorl pt 7, \
"" u (t($1)):($6*S):($7*S) tit "Horizontal"w errorl pt 7