diff --git a/src/Airports/GenAirports/process.sh b/src/Airports/GenAirports/process.sh new file mode 100755 index 00000000..14021753 --- /dev/null +++ b/src/Airports/GenAirports/process.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +# Previously Skipped: EBPP +# Manually removed: NZSP (led to a runway around the world) +# Fixed: YSAR (was marked as land airport, but was a heliport) + +WORKDIR=$HOME/workdirs/world_scenery +#APTDAT="/home/martin/GIT/fgdata/Airports/apt.dat.gz" +#APTDAT="/home/rgerlich/rawdata/apt.dat.gz" +APTDAT="/home/rgerlich/rawdata/apt.helidat.gz" +SPAT="--nudge=20" + +exec /usr/bin/time genapts --input=$APTDAT --work=$WORKDIR $SPAT > genapts.log 2>&1 diff --git a/src/BuildTiles/Main/construct.sh b/src/BuildTiles/Main/construct.sh new file mode 100755 index 00000000..aeb7caae --- /dev/null +++ b/src/BuildTiles/Main/construct.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +./start_construct_server.sh + +# Start 4 clients +for f in 1 2; do + ./start_construct_client.sh $f +done \ No newline at end of file diff --git a/src/Prep/DemChop/chopsrtm1.sh b/src/Prep/DemChop/chopsrtm1.sh new file mode 100755 index 00000000..ee03a920 --- /dev/null +++ b/src/Prep/DemChop/chopsrtm1.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +DATADIR=/home/martin/archive/GIS/GISData/SRTM/version2_1/HGT/SRTM1/ +WORKDIR=$HOME/workdirs/world_scenery + +for file in "$DATADIR/"Region_*/*.hgt.zip; do + hgtchop 1 $file $WORKDIR/SRTM2-America-1 +done diff --git a/src/Prep/DemChop/chopsrtm3.sh b/src/Prep/DemChop/chopsrtm3.sh new file mode 100755 index 00000000..22a448e7 --- /dev/null +++ b/src/Prep/DemChop/chopsrtm3.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +echo "Available regions: Africa Australia Eurasia Islands North_America South_America" + +#DATADIR=/mnt/agami/custom_scenery/SRTM/version2/HGT +DARADIR=/home/martin/archive/GIS/GISData/SRTM/version2_1/HGT/SRTM3/ +WORKDIR=$HOME/workdirs/world_scenery + +for region in Africa Australia Eurasia Islands North_America South_America; do + for file in "$DATADIR/$region/"*.hgt.zip; do + hgtchop 3 $file $WORKDIR/SRTM2-$region-3 + done +done diff --git a/src/Prep/DemChop/process-DEM-30.sh b/src/Prep/DemChop/process-DEM-30.sh index b78224c8..2bbdf828 100755 --- a/src/Prep/DemChop/process-DEM-30.sh +++ b/src/Prep/DemChop/process-DEM-30.sh @@ -1,28 +1,7 @@ -#!/bin/sh -# +#! /bin/bash -TOOLPATH=`pwd` -SOURCE=/stage/fgfs01/curt/RawData/DEM-30-Ascii -SCRATCH=/tmp/Scratch -WORK=/stage/fgfs04/curt/Work/DEM-30-New +WORKDIR=$HOME/workdirs/world_scenery -if [ -z $1 ]; then - echo "usage: $0 base-dem-30-ascii-file" - exit -fi - -if [ ! -d $SCRATCH ]; then - mkdir -p $SCRATCH -fi - -cd ${SCRATCH} || exit -echo "cd to $SCRATCH successful" - -tar xzvf ${SOURCE}/${1}.tar.gz - -for i in ${SCRATCH}/$1/*.dem; do - ${TOOLPATH}/demchop $i $WORK >> ${TOOLPATH}/log-$1 2>&1 -done - -echo rm -rf ${SCRATCH} -rm -rf ${SCRATCH} +for f in $WORKDIR/SRTM-30-ASCII/*/*.dem; do + demchop $f $WORKDIR/SRTM-30 +done \ No newline at end of file diff --git a/src/Prep/DemRaw2ascii/process.sh b/src/Prep/DemRaw2ascii/process.sh index 0cad9821..a35d96df 100755 --- a/src/Prep/DemRaw2ascii/process.sh +++ b/src/Prep/DemRaw2ascii/process.sh @@ -1,39 +1,15 @@ -#!/bin/sh -# - -TOOLPATH=`pwd` -SOURCE=/stage/fgfs01/curt/RawData/DEM-30-Bin -OUTPUTBASE=/stage/fgfs01/curt/RawData/DEM-30-Ascii - -SCRATCH=${SOURCE}/Scratch - -# clean the scratch space -echo rm -rf ${SCRATCH}/* -rm -rf ${SCRATCH}/* - -cd ${SCRATCH} || exit -echo "cd to $SCRATCH successful" - -tar xzvf ${SOURCE}/${1}.tar.gz - -NAME=`echo *.DEM` - -BASE=`basename $NAME .DEM` -LOWBASE=`echo $BASE | tr A-Z a-z` - -OUTPUT=${OUTPUTBASE}/${LOWBASE} - -echo mkdir -p $OUTPUT -mkdir -p $OUTPUT - -${TOOLPATH}/raw2ascii ${SCRATCH}/${BASE} ${OUTPUT} - -cd ${OUTPUTBASE} || exit -echo "cd to $OUTPUTBASE successful" - -tar czvf ${LOWBASE}.tar.gz ${LOWBASE} - -echo rm -rf ${LOWBASE} -rm -rf ${LOWBASE} +#! /bin/bash +#DATADIR=/mnt/geothumper/data/custom_scenery/SRTM/srtm30/ +DATADIR=/home/martin/archive/GIS/GISData/SRTM/version2_1/HGT/SRTM30 +WORKDIR=$HOME/workdirs/world_scenery +for file in e020n90 e060n90 e100n90 e140n90 w020n90 w060n90 w100n90 w140n90 w180n90; do + unzip $DATADIR/$file/$file.dem.zip + unzip $DATADIR/$file/$file.hdr.zip + UPPERBASE=`echo $file | tr a-z A-Z` + OUTPUTDIR=$WORKDIR/SRTM-30-ASCII/$file + mkdir -p $OUTPUTDIR + raw2ascii $UPPERBASE $OUTPUTDIR + rm $UPPERBASE.{DEM,HDR} +done