Created
November 29, 2020 21:15
-
-
Save cbassa/42463456ac7d2f4d9e24a734624b793b to your computer and use it in GitHub Desktop.
SatNOGS STRF pre-obs script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
echo $1 $2 $3 $4 $5 $6 | |
# Run strf | |
echo "Killing left over netcat" | |
ps aux | grep -e "nc" | grep -e "45360" | awk '{printf("kill -9 %s\n",$2)}' | sh | |
freq=`echo $3 | awk '{printf("%d\n",$1-100000)}'` | |
fmin=`echo $3 | awk '{printf("%d\n",$1-100000)}'` | |
fmax=`echo $3 | awk '{printf("%d\n",$1+100000)}'` | |
echo "Starting rffft" | |
rffft -i /home/bassa/satobs/uhf/fifo -p /home/bassa/satobs/uhf -o strf_${2} -f $freq -s 2.048e6 -q -c 50 -n 3600 -F float -R $fmin,$fmax & | |
echo "Starting netcat" | |
nc -l -p 45360 -u >/home/bassa/satobs/uhf/fifo & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment