Add gain and hostname to script image

spacecruft
Jeff Moe 2023-01-19 10:55:50 -07:00
parent ec2706053d
commit a4e912f769
1 changed files with 6 additions and 7 deletions

View File

@ -19,28 +19,27 @@ set -x
cd ~/devel/spacecruft/CygnusRFI
source env/bin/activate
GAIN=`grep "self.RTL820T.set_gain(" top_block.py | cut -f 2 -d "(" | cut -f 1 -d ","`
spacecruft-greenctld-cmd "P 1 45"
sleep 84
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "1 Azimuth, 45 Elevation `date -uR`" rfi_plot.png rfi_plot-01-1-45.png
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "`hostname` ; 1 Azimuth, 45 Elevation ; Gain $GAIN ; `date -uR`" rfi_plot.png rfi_plot-01-1-45.png
spacecruft-greenctld-cmd "P 90 45"
sleep 30
echo "do somesuch test"
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "90 Azimuth, 45 Elevation `date -uR`" rfi_plot.png rfi_plot-02-90-45.png
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "`hostname` ; 90 Azimuth, 45 Elevation ; Gain $GAIN ; `date -uR`" rfi_plot.png rfi_plot-02-90-45.png
spacecruft-greenctld-cmd "P 180 45"
sleep 30
echo "do somesuch test"
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "180 Azimuth, 45 Elevation `date -uR`" rfi_plot.png rfi_plot-03-180-45.png
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "`hostname` ; 180 Azimuth, 45 Elevation ; Gain $GAIN ; `date -uR`" rfi_plot.png rfi_plot-03-180-45.png
spacecruft-greenctld-cmd "P 270 45"
sleep 30
echo "do somesuch test"
PYTHONPATH=/usr/lib/python3/dist-packages:/usr/lib/python3/site-packages:$PYTHONPATH python CygnusRFI.py -b 2400000 -c 2048 -t 0.5 -d 5 -f 400000000 -F 430000000
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "270 Azimuth, 45 Elevation `date -uR`" rfi_plot.png rfi_plot-04-270-45.png
convert -font Helvetica -pointsize 72 -annotate 0x0+100+100 "`hostname` ; 270 Azimuth, 45 Elevation ; Gain $GAIN ; `date -uR`" rfi_plot.png rfi_plot-04-270-45.png
convert -append rfi_plot-01-1-45.png rfi_plot-02-90-45.png rfi_plot-03-180-45.png rfi_plot-04-270-45.png rfi_plots.png