Skip to content

Instantly share code, notes, and snippets.

@sean0921
Last active April 29, 2022 08:40
Show Gist options
  • Save sean0921/2369d5222d144a4fbdefd3fad5bb6859 to your computer and use it in GitHub Desktop.
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)
#!/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
@joshisman12
Copy link

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment