Jetzt mit Gnuplot Skript für Schnee

This commit is contained in:
dewomser 2024-11-11 00:01:28 +01:00
parent 416e29c08a
commit c785fee4b8
No known key found for this signature in database
GPG key ID: 3A312467A034D190
2 changed files with 26 additions and 1 deletions

View file

@ -15,7 +15,10 @@ paste -d ',' temp.csv regen1.csv regen10.csv tempe.csv > wetter.csv
sleep 2 sleep 2
gnuplot wetter2.gp #Sommer
#gnuplot wetter2.gp
#Winter
gnuplot wetter2_mit_schnee.gp
#sleep 2 #sleep 2

22
wetter2_mit_schnee.gp Normal file
View file

@ -0,0 +1,22 @@
set title "Wettervorhersage für Worms. Erstellt: " .strftime("%d.%b %Y %H:%M", time(0)+7200)
set datafile separator ','
set xdata time
set timefmt "%Y-%m-%dT%H:%M"
set format x "%d.%b %H:%M" # otherwise it will show only MM:SS
set key autotitle columnhead
set ylabel "Temperatur °Celsius"
set xlabel 'Zeitachse UTC'
set xtics rotate
set y2range[0:100]
set y2tics # enable second axis
set ytics nomirror # dont show the tics on that side
set y2label "Regenwahrscheinlichkeit in %" # label for second axis
#set terminal wxt size 800,600 enhanced font 'Verdana,10' persist
set terminal pngcairo size 800,600 enhanced font 'Verdana,10'
set output 'wetter2.png'
Shadecolor = "#80E0A080"
plot 'wetter.csv' using 4:(($5-273)+$23):(($5-273)-$23) with filledcurve fc rgb Shadecolor title "Absoluter Temperaturfehler",''using 4:($5-273) title 'Temperatur in 2 Meter Höhe' with lines lc "red",'' using 4:11 with lines axis x1y2 title 'Regen 0.1 mm/h','' using 4:17 with lines lc "violet" axis x1y2 title 'Regen 1.0 mm/h','' using 4:29 with lines lc "green"axis x1y2 title 'Schnee'
#// 4=date 5=temp 11= 0.1mm 17=10mm 23 0terror