Last active
April 29, 2022 08:40
-
-
Save sean0921/2369d5222d144a4fbdefd3fad5bb6859 to your computer and use it in GitHub Desktop.
move igs sp3 data to calender format folder (for msys2 python3 gnsscal modules)
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/sh | |
#set -eux | |
#python3 -m gnsscal -gpswd 1877 2|grep 'Gregorian'|awk '{printf $3}'|cut -b 3-4,6-7,9-10 | |
#151229 | |
#for i in $(ls *.sp3);do python3 -m gnsscal -gpswd "$(ls "$i"|cut -b 4-7)" "$(ls "$i"|cut -b 8)";done | |
#1877 2 | |
for i in $(ls igs?????.sp3) | |
do | |
j=`python3 -m gnsscal -gpswd "$(ls "$i"|cut -b 4-7)" "$(ls "$i"|cut -b 8)"|grep 'Gregorian'|awk '{printf $3}'|cut -b 3-4,6-7,9-10` | |
cp `#--attributes-only` -v "$i" ../../GPSD/"$j"A/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good