Sunday, March 30, 2008

Script to convert .??o.Z file to .??d.Z


#!/bin/sh
# sh_o2d
# convert all RINEX (.??o) files to compressed RINEX format (*.??d)

if [ $# -gt 0 ]; then
cd $1
fi
curdir=`pwd`

echo "*.??o -> *.??d"
echo " working in $curdir"

files=`find ${curdir} -name "????????.??o*"`
for file in $files
do
echo " converting.. $file"
cd `dirname ${file}`
#pwd
sh_rnx2crx -c y -d y -f ${file}
done

No comments: