Skip to content

Commit

Permalink
Draw precipitation 1h graph
Browse files Browse the repository at this point in the history
  • Loading branch information
mountaineerbr committed Dec 20, 2024
1 parent 896fd89 commit bdef66f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wf.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# wf.sh -- weather forecast from the norway meteorological institute
# v0.7 dec/2024 by mountaineerbr
# v0.7.1 dec/2024 by mountaineerbr

# Favourite Locations (globs)
# name:latitude:longitude:altitude;
Expand Down Expand Up @@ -412,7 +412,7 @@ mainf()
#next_1_hours and next_6_hours may have additional data for some locations.

header_long="Date,Temp,RelHumidity,DewPoint,FogAreaFrac,UVIndex,AirPressureAtSeaLevel,WindSpeed,WindDir,CloudAreaFraction,CloudHighFraction,CloudMediumFraction,CloudLowFraction,Precipitation1h,Precipitation6h,AirMaxTemp6h,AirMinTemp6h"
header=Date,Temp,RelHum,DewP,FogAFrac,UV,AirPSea,WinSp,WinDir,ClArea,ClHigh,ClMed,ClLow,Pcpn1h,Pcpn6h,AirMax6h,AirMin6h
header=Date,Temp,RelHum,DewP,FogFrac,UV,AirPSea,WinSp,WinDir,ClArea,ClHigh,ClMed,ClLow,Pcpn1h,Pcpn6h,AirMax6h,AirMin6h
#1:Date 2:Temp 3:RelHum 4:DewP 5:FogA 6:UV
#7:AirPSea 8:WinSp 9:WinDir 10:ClArea 11:ClHigh 12:ClMed
#13:ClLow 14:Pcpn1h 15:Pcpn6h 16:AirMax6h 17:AirMin6h
Expand All @@ -432,6 +432,7 @@ mainf()
colcutf 3 <<<"$jqout" | _plotf Humidity date % &&
colcutf 8 <<<"$jqout" | _plotf WindSpeed date m/s &&
colcutf 7 <<<"$jqout" | _plotf PressureAtSeaLevel date hPa &&
colcutf 14 <<<"$jqout" | _plotf 'Precipitation(1h)' date mm &&
colcutf 15 <<<"$jqout" | _plotf 'Precipitation(6h)' date mm &&
colcutf 2 <<<"$jqout" | _plotf Temperature date ºC
fi 2>/dev/null || ! echo "$SN: err: GNUPlot" >&2;
Expand Down

0 comments on commit bdef66f

Please sign in to comment.