-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
186 lines (156 loc) · 5.03 KB
/
Makefile
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Start it up
up:
docker-compose up
# Get it prepared
initdb:
docker-compose exec jupyter datacube -v system init
# Some extra commands to help in managing things
# Rebuild the image
build:
docker-compose build
# Start an interactive shell
shell:
docker-compose exec jupyter bash
# Delete everything
clear:
docker-compose stop
docker-compose rm -fs
# Get example data
get-sample-data:
aws s3 cp s3://test.data.frontiersi.io/slim-odc-datasets/dlcd/DLCD_v2-1_MODIS_EVI_10_20110101-20121231_cut.tif data/
aws s3 cp s3://test.data.frontiersi.io/slim-odc-datasets/epi/EPIEnvironmentallySensitiveLand.shp_cut.tif data/
aws s3 cp s3://test.data.frontiersi.io/slim-odc-datasets/transport/railwaystation.shp_proximity_cut.tif data/
aws s3 cp s3://test.data.frontiersi.io/slim-odc-datasets/valuation/landValuation_2013.tif data/
create: initdb add-metadata add-products
add-metadata:
docker-compose exec jupyter \
datacube metadata add \
/opt/odc/scripts/slim-metadata.yaml
add-products:
docker-compose exec jupyter \
datacube product add \
/opt/odc/scripts/slim-products.yaml
index-dlcd:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/dlcd/ \
-e tif \
-t dlcd"
index-epi:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/epi \
-e EPIEnvironmentallySensitiveLand.shp_cut.tif \
-t esl"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/epi \
-e EPIFutureResidentialGrowthArea.shp_cut.tif \
-t frga"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/epi \
-e EPIHeritageHER.shp_cut.tif \
-t her"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/epi \
-e EPIFlood.shp_cut.tif \
-t flood"
index-soil:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilAcid.shp_cut.tif \
-t acid"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilMass_m.shp_cut.tif \
-t mass"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilLSC_OverMod.shp_cut.tif \
-t lsc_overmod"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilSalinity.shp_cut.tif \
-t salinity"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilShallowRock.shp_cut.tif \
-t shallow_rock"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilStructure.shp_cut.tif \
-t structure"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilWaterE.shp_cut.tif \
-t water"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilWaterlog.shp_cut.tif \
-t waterlog"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/soil \
-e SoilWindErosion.shp_cut.tif \
-t wind_erosion"
index-transport:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/transport \
-e railwaystation.shp_proximity_cut.tif \
-t rail"
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/transport \
-e roadsegment.shp_proximity_cut.tif \
-t road"
index-valuation:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/valuation/ \
-e tif \
-t valuation"
index-valuation-pa:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/valuation_pa/ \
-e tif \
-t valuation_pa"
index-dem:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-dem.py"
index-dlcdnsw:
docker-compose exec jupyter bash -c \
"cd /opt/odc/scripts && python3 index-cogs-live.py \
test.data.frontiersi.io \
-p slim-odc-datasets/dlcd-nsw \
-e tif \
-t dlcdnsw"