run.sh (441B)
1 #!/bin/bash 2 3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 4 cd "$DIR" 5 6 FILE="$1" 7 COUNTRY="$2" 8 CITY="$3" 9 NOISE="$4" 10 11 >&2 echo "computing trips" 12 ./compute_trips.py "$FILE" "$COUNTRY" "$CITY" > trips_with_dist 13 >&2 echo "adding noise" 14 ./addnoise.py "$NOISE" < trips_with_dist | sort -t',' -k2,2n | 15 cat <(echo 'mode,distance in meters') - > trips_anonymized.csv 16 python3 co2.py < trips_with_dist > trips_with_footprint 17