A couple minor changes to this helper script.
This commit is contained in:
parent
e6c1dc4c0c
commit
e7d08d90d1
1 changed files with 3 additions and 6 deletions
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
TOOLPATH=`pwd`
|
TOOLPATH=`pwd`
|
||||||
SOURCE=/stage/fgfs01/curt/RawData/DEM-30-Ascii
|
SOURCE=/stage/fgfs01/curt/RawData/DEM-30-Ascii
|
||||||
SCRATCH=${SOURCE}/Scratch
|
SCRATCH=/tmp/Scratch
|
||||||
WORK=/stage/fgfs01/curt/Work/DEM-30
|
WORK=/stage/fgfs04/curt/Work/DEM-30-New
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "usage: $0 base-dem-30-ascii-file"
|
echo "usage: $0 base-dem-30-ascii-file"
|
||||||
|
@ -21,11 +21,8 @@ echo "cd to $SCRATCH successful"
|
||||||
tar xzvf ${SOURCE}/${1}.tar.gz
|
tar xzvf ${SOURCE}/${1}.tar.gz
|
||||||
|
|
||||||
for i in ${SCRATCH}/$1/*.dem; do
|
for i in ${SCRATCH}/$1/*.dem; do
|
||||||
${TOOLPATH}/demchop $i $WORK > ${TOOLPATH}/log 2>&1
|
${TOOLPATH}/demchop $i $WORK >> ${TOOLPATH}/log-$1 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
echo rm -rf ${SCRATCH}
|
echo rm -rf ${SCRATCH}
|
||||||
rm -rf ${SCRATCH}
|
rm -rf ${SCRATCH}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue