Last active
December 6, 2016 23:55
-
-
Save c5e3/89fb90b0babe31026f24a574d9283ee7 to your computer and use it in GitHub Desktop.
Revisions
-
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/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 's/$/000/g' -e '/[0-9]\+;[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;[0-9]\+/!d' $1_positions.csv awk -F ';' '($5<=100000){print}' $1_positions.csv > $1_positions_spotbeams.csv awk -F ';' '($5>100000){print}' $1_positions.csv > $1_positions_satellites.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/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 's/$/000/g' -e '/[0-9]\+;[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;[0-9]\+/!d' $1_positions.csv awk -F ';' '($5<=100000){print}' $1_positions.csv > $1_positions_spotbeams.csv awk -F ';' '($5>100000){print}' $1_positions.csv > $1_positions_satellites.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/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 's/$/000/g' -e '/[0-9]\+;[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;\([0-9]\+\|-[0-9]\+\).[0-9]\+;[0-9]\+/!d' $1_positions.csv awk -F ';' '($5<=100000){print}' $1_positions.csv > $1_positions_spotbeams.csv awk -F ';' '($5>100000){print}' $1_positions.csv > $1_positions_satellites.csv sed -i '1 i\satellite;beam;latitude;longitude;altitude' $1_positions*.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/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 's/$/000/g' -e '/!\[0-9\]\+;\[0-9\]\+;\(\[0-9\]\+\|-\[0-9\]\+\).\[0-9\]\+;\(\[0-9\]\+\|-\[0-9\]\+\).\[0-9\]\+;\[0-9\]\+/d' $1_positions.csv awk -F ';' '($5<=100000){print}' $1_positions.csv >> $1_positions_spotbeams.csv awk -F ';' '($5>100000){print}' $1_positions.csv >> $1_positions_satellites.csv sed -i '1 i\satellite;beam;latitude;longitude;altitude' $1_positions*.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/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 's/$/000/g' $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 sed -i '1 i\satellite;beam;latitude;longitude;altitude' $1_positions*.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ #!/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' $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 sed -i '1 i\satellite;beam;latitude;longitude;altitude' $1_positions*.csv -
c5e3 revised this gist
Nov 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/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 -
c5e3 revised this gist
Nov 22, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/bin/bash cat $1 | grep IRA >> $1_positions.csv sed -i -e 's/^.\+sat:/sat:/' -e 's/ RAI\:.\+//' -e 's/sat://' -e 's/beam://' -e 's/pos=(//' -e 's%/%;%' -e 's/)//' -e 's/alt=//' -e 's/+//g' -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 -
c5e3 created this gist
Nov 22, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash cat $1 | grep IRA >> $1_positions.csv sed -i -e 's/\(.\{62\}\)//' -e 's/ RAI\:.\+//' -e 's/sat://' -e 's/beam://' -e 's/pos=(//' -e 's%/%;%' -e 's/)//' -e 's/alt=//' -e 's/+//g' -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