Skip to content
Browse files

Rename suburbs_wanted.csv to suburbs.txt because it is slightly less …

…stupid.
  • Loading branch information...
1 parent a6d5e79 commit 490be7b132e803579b27f1d43e792061d5856671 Schuyler Erle committed Aug 3, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 build_neighborhood.sh
View
8 build_neighborhood.sh
@@ -6,14 +6,14 @@ 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"
+if [ ! -r data/names.txt -o ! -r data/suburbs.txt ]; then
+ echo "data/names.txt (tab separated file mapping woe_id to name) is missing, or"
+ echo "data/suburbs.txt (tab separated file mapping parent_id, name, type, woe_id) 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
+ grep ^$WOEID data/suburbs.txt | cut -f4 | xargs python geocrawlr.py >data/photos_$WOEID.txt
fi
BBOX=`python outliers.py data/photos_$WOEID.txt`

0 comments on commit 490be7b

Please sign in to comment.
Something went wrong with that request. Please try again.