-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.sh
65 lines (55 loc) · 1.43 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
set -e
# start in data directory
cd data
# setup test-data
echo "---------- Setting up GeoTIFF Test Data ----------"
cd geotiff-test-data
bash setup.sh
cd ..
echo "---------- Finished Setting up GeoTIFF Data ----------"
# setup test-data
echo "---------- Setting up GeoJSON Test Data ----------"
cd geojson-test-data
bash setup.sh
cd ..
echo "---------- Finished Setting up GeoJSON Data ----------"
# setup gadm
echo "---------- Setting up GADM Data ----------"
cd gadm
bash download_gadm.sh
node ./extract_countries.js
bash trim_gadm.sh
cd ..
echo "---------- Finished Setting up GADM Data ----------"
# setup ghsl
echo "---------- Setting up GHSL Data ----------"
cd ghsl
bash setup.sh
cd ..
echo "---------- Finished Setting up GHSL Data ----------"
# setup mapspam
echo "---------- Setting up MapSpam Data ----------"
cd mapspam
bash download_mapspam.sh
bash tile.sh
cd ..
echo "---------- Finished Setting up MapSpam Data ----------"
# setup rgb
echo "---------- Setting up RGB Raster ----------"
cd rgb
bash setup.sh
cd ..
echo "---------- Finished Setting up RGB Raster ----------"
# setup veneto
echo "---------- Setting up Veneto Raster ----------"
cd veneto
bash setup.sh
cd ..
echo "---------- Finished Setting up Veneto Raster ----------"
# generate truth data using rasterstats
pip install --upgrade pip
pip install pipenv
pipenv install fiona rasterio rasterstats
pipenv run python3 create_expected_truth_data.py
# go back to root
cd ..