-
-
Save gyaresu/dd3d6ef7e2cfbe57896dc5aae3f0cc8b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
cat $1 | grep IRA >> $1_positions.csv | |
sed -i -e 's/^.\+sat:/sat:/' -e 's/\( RAI\:.\+\)\|\(sat:\)\|\(beam:\)\|\(pos=(\)\|\()\)\|\(alt=\)\|\(+\)//g' -e 's%/%;%' -e 's/ /;/g' -e '/^00;00/d' -e '1 i\satellite;beam;latitude;longitude;altitude' $1_positions.csv | |
awk -F ';' '($5<=100){print}' $1_positions.csv >> $1_positions_spotbeams.csv | |
awk -F ';' '($5>100){print}' $1_positions.csv >> $1_positions_satellites.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment