Skip to content

Commit

Permalink
Helpful note about names.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schuyler Erle committed Aug 3, 2011
1 parent 99eef7d commit 1279d1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build_neighborhood.sh
Expand Up @@ -6,6 +6,12 @@ DBPORT=5433
GRASS_LOCATION=/mnt/places/melissa/grass/Global/PERMANENT
export GRASS_BATCH_JOB=$GRASS_LOCATION/neighborhood.$$

mkdir -p data
if [ ! -r data/names.txt ]; then
echo "data/names.txt (tab separated file mapping woe_id to name) is missing"
exit 1
fi

if [ ! -r data/photos_$WOEID.txt ]; then
grep ^$WOEID data/suburbs_wanted.csv | cut -f4 | xargs python geocrawlr.py >data/photos_$WOEID.txt
fi
Expand Down

0 comments on commit 1279d1a

Please sign in to comment.