Update render.sh

This commit is contained in:
va7eex 2017-02-04 21:53:10 -08:00 committed by GitHub
parent e7a5a1b4d7
commit 83debb0491

View File

@ -5,20 +5,18 @@ render_options=("ZA" "HVCT" "NO")
f=$1 f=$1
direction=${f:(-7):(-6)} echo $f
echo $f f1="${f:0:(-4)}"
f1="${f:0:(-4)}" f2="${f1#'/tmp/'}"
f2="${f1#'/tmp/'}"
echo $f2 echo $f2
echo Direction is $direction-bound
wxmap -T "NOAA-15" -T "NOAA-18" -T "NOAA-19" -n "Spuzzum,Canada" -H ~/sat_tle.txt -o "${2}" /tmp/passmap.png wxmap -T "NOAA-15" -T "NOAA-18" -T "NOAA-19" -n "Spuzzum,Canada" -H ~/sat_tle.txt -o "${2}" /tmp/passmap.png
for r in "${render_options[@]}" for r in "${render_options[@]}"
do do
echo "Now rendering option: ${r}" echo "Now rendering option: ${r}"
wxtoimg -e $r -ocK -m /tmp/passmap.png /tmp/$f2.wav /tmp/$f2"_${r}".png wxtoimg -e $r -ocK -m /tmp/passmap.png /tmp/$f2.wav /tmp/$f2"_${r}".png
bash ~/ftp.sh /tmp/$f2"_${r}".png bash ~/ftp.sh /tmp/$f2"_${r}".png
done done