-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_pop.py
526 lines (516 loc) · 28.2 KB
/
config_pop.py
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
import os
# Define root path
root_paths = ["/home/john.vargas/data/pomelo_input_data/",
"/scratch/Nando/HAC2/pomelo_input_data/",
"/cluster/work/igp_psr/metzgern/HAC/pomelo_input_data/",
"/scratch2/metzgern/HAC/pomelo_input_data/",
"/scratch2/metzgern/HAC/data/pomelo_input_data/"]
for dir in root_paths:
if os.path.isdir(dir):
root_path = dir
# Input file definition
input_paths = {
"tza": {
"buildings_google": f"{root_path}TZA/covariates/TZA_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}TZA/covariates/TZA_mbp_BCB_v3_count.tif",
"buildings_google_mean_area": f"{root_path}TZA/covariates/TZA_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}TZA/covariates/TZA_mbp_BCB_v3_mean_area.tif",
"tza_tt50k_100m_2000": f"{root_path}TZA/covariates/tza_tt50k_100m_2000.tif",
"tza_dst_bsgme_100m_2015": f"{root_path}TZA/covariates/tza_dst_bsgme_100m_2015.tif",
"tza_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}TZA/covariates/tza_dst_ghslesaccilcgufghsll_100m_2014.tif",
"tza_dst_coastline_100m_2000_2020": f"{root_path}TZA/covariates/tza_dst_coastline_100m_2000_2020.tif",
"tza_dmsp_100m_2011": f"{root_path}TZA/covariates/tza_dmsp_100m_2011.tif",
"tza_esaccilc_dst_water_100m_2000_2012": f"{root_path}TZA/covariates/tza_esaccilc_dst_water_100m_2000_2012.tif",
"tza_osm_dst_roadintersec_100m_2016": f"{root_path}TZA/covariates/tza_osm_dst_roadintersec_100m_2016.tif",
"tza_osm_dst_waterway_100m_2016": f"{root_path}TZA/covariates/tza_osm_dst_waterway_100m_2016.tif",
"tza_osm_dst_road_100m_2016": f"{root_path}TZA/covariates/tza_osm_dst_road_100m_2016.tif",
"tza_srtm_slope_100m": f"{root_path}TZA/covariates/tza_srtm_slope_100m.tif",
"tza_srtm_topo_100m": f"{root_path}TZA/covariates/tza_srtm_topo_100m.tif",
"tza_viirs_100m_2015": f"{root_path}TZA/covariates/tza_viirs_100m_2015.tif",
"tza_wdpa_dst_cat1_100m_2015": f"{root_path}TZA/covariates/tza_wdpa_dst_cat1_100m_2015.tif"
},
"uga": {
"buildings_google": f"{root_path}UGA/covariates/UGA_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}UGA/covariates/UGA_mbp_BCB_v3_count.tif",
"buildings_google_mean_area": f"{root_path}UGA/covariates/UGA_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}UGA/covariates/UGA_mbp_BCB_v3_mean_area.tif",
"uga_tt50k_100m_2000": f"{root_path}UGA/covariates/uga_tt50k_100m_2000.tif",
"uga_dst_bsgme_100m_2015": f"{root_path}UGA/covariates/uga_dst_bsgme_100m_2015.tif",
"uga_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}UGA/covariates/uga_dst_ghslesaccilcgufghsll_100m_2014.tif",
"uga_dst_coastline_100m_2000_2020": f"{root_path}UGA/covariates/uga_dst_coastline_100m_2000_2020.tif",
"uga_dmsp_100m_2011": f"{root_path}UGA/covariates/uga_dmsp_100m_2011.tif",
"uga_esaccilc_dst_water_100m_2000_2012": f"{root_path}UGA/covariates/uga_esaccilc_dst_water_100m_2000_2012.tif",
"uga_osm_dst_roadintersec_100m_2016": f"{root_path}UGA/covariates/uga_osm_dst_roadintersec_100m_2016.tif",
"uga_osm_dst_waterway_100m_2016": f"{root_path}UGA/covariates/uga_osm_dst_waterway_100m_2016.tif",
"uga_osm_dst_road_100m_2016": f"{root_path}UGA/covariates/uga_osm_dst_road_100m_2016.tif",
"uga_srtm_slope_100m": f"{root_path}UGA/covariates/uga_srtm_slope_100m.tif",
"uga_srtm_topo_100m": f"{root_path}UGA/covariates/uga_srtm_topo_100m.tif",
"uga_viirs_100m_2015": f"{root_path}UGA/covariates/uga_viirs_100m_2015.tif",
"uga_wdpa_dst_cat1_100m_2015": f"{root_path}UGA/covariates/uga_wdpa_dst_cat1_100m_2015.tif",
},
"cod": {
"buildings_google": f"{root_path}COD/covariates/COD_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}COD/covariates/COD_mbp_BCB_v3_count.tif",
"buildings_google_mean_area": f"{root_path}COD/covariates/COD_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}COD/covariates/COD_mbp_BCB_v3_mean_area.tif",
"cod_tt50k_100m_2000": f"{root_path}COD/covariates/cod_tt50k_100m_2000.tif",
"cod_dst_bsgme_100m_2015": f"{root_path}COD/covariates/cod_dst_bsgme_100m_2015.tif",
"cod_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}COD/covariates/cod_dst_ghslesaccilcgufghsll_100m_2014.tif",
"cod_dst_coastline_100m_2000_2020": f"{root_path}COD/covariates/cod_dst_coastline_100m_2000_2020.tif",
"cod_dmsp_100m_2011": f"{root_path}COD/covariates/cod_dmsp_100m_2011.tif",
"cod_esaccilc_dst_water_100m_2000_2012": f"{root_path}COD/covariates/cod_esaccilc_dst_water_100m_2000_2012.tif",
"cod_osm_dst_roadintersec_100m_2016": f"{root_path}COD/covariates/cod_osm_dst_roadintersec_100m_2016.tif",
"cod_osm_dst_waterway_100m_2016": f"{root_path}COD/covariates/cod_osm_dst_waterway_100m_2016.tif",
"cod_osm_dst_road_100m_2016": f"{root_path}COD/covariates/cod_osm_dst_road_100m_2016.tif",
"cod_srtm_slope_100m": f"{root_path}COD/covariates/cod_srtm_slope_100m.tif",
"cod_srtm_topo_100m": f"{root_path}COD/covariates/cod_srtm_topo_100m.tif",
"cod_viirs_100m_2015": f"{root_path}COD/covariates/cod_viirs_100m_2015.tif",
"cod_wdpa_dst_cat1_100m_2015": f"{root_path}COD/covariates/cod_wdpa_dst_cat1_100m_2015.tif"
},
"rwa": {
"buildings_google": f"{root_path}RWA/covariates/RWA_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}RWA/covariates/RWA_mbp_BCB_v3_count.tif",
"buildings_google_mean_area": f"{root_path}RWA/covariates/RWA_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}RWA/covariates/RWA_mbp_BCB_v3_mean_area.tif",
"rwa_tt50k_100m_2000": f"{root_path}RWA/covariates/rwa_tt50k_100m_2000.tif",
"rwa_dst_bsgme_100m_2015": f"{root_path}RWA/covariates/rwa_dst_bsgme_100m_2015.tif",
"rwa_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}RWA/covariates/rwa_dst_ghslesaccilcgufghsll_100m_2014.tif",
"rwa_dst_coastline_100m_2000_2020": f"{root_path}RWA/covariates/rwa_dst_coastline_100m_2000_2020.tif",
"rwa_dmsp_100m_2011": f"{root_path}RWA/covariates/rwa_dmsp_100m_2011.tif",
"rwa_esaccilc_dst_water_100m_2000_2012": f"{root_path}RWA/covariates/rwa_esaccilc_dst_water_100m_2000_2012.tif",
"rwa_osm_dst_roadintersec_100m_2016": f"{root_path}RWA/covariates/rwa_osm_dst_roadintersec_100m_2016.tif",
"rwa_osm_dst_waterway_100m_2016": f"{root_path}RWA/covariates/rwa_osm_dst_waterway_100m_2016.tif",
"rwa_osm_dst_road_100m_2016": f"{root_path}RWA/covariates/rwa_osm_dst_road_100m_2016.tif",
"rwa_srtm_slope_100m": f"{root_path}RWA/covariates/rwa_srtm_slope_100m.tif",
"rwa_srtm_topo_100m": f"{root_path}RWA/covariates/rwa_srtm_topo_100m.tif",
"rwa_viirs_100m_2015": f"{root_path}RWA/covariates/rwa_viirs_100m_2015.tif",
"rwa_wdpa_dst_cat1_100m_2015": f"{root_path}RWA/covariates/rwa_wdpa_dst_cat1_100m_2015.tif"
},
"moz": {
"buildings_google": f"{root_path}MOZ/covariates/MOZ_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}MOZ/covariates/MOZ_mbp_BCB_v3_count.tif",
"buildings_google_mean_area": f"{root_path}MOZ/covariates/MOZ_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}MOZ/covariates/MOZ_mbp_BCB_v3_mean_area.tif",
"moz_tt50k_100m_2000": f"{root_path}MOZ/covariates/moz_tt50k_100m_2000.tif",
"moz_dst_bsgme_100m_2015": f"{root_path}MOZ/covariates/moz_dst_bsgme_100m_2015.tif",
"moz_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}MOZ/covariates/moz_dst_ghslesaccilcgufghsll_100m_2014.tif",
"moz_dst_coastline_100m_2000_2020": f"{root_path}MOZ/covariates/moz_dst_coastline_100m_2000_2020.tif",
"moz_dmsp_100m_2011": f"{root_path}MOZ/covariates/moz_dmsp_100m_2011.tif",
"moz_esaccilc_dst_water_100m_2000_2012": f"{root_path}MOZ/covariates/moz_esaccilc_dst_water_100m_2000_2012.tif",
"moz_osm_dst_roadintersec_100m_2016": f"{root_path}MOZ/covariates/moz_osm_dst_roadintersec_100m_2016.tif",
"moz_osm_dst_waterway_100m_2016": f"{root_path}MOZ/covariates/moz_osm_dst_waterway_100m_2016.tif",
"moz_osm_dst_road_100m_2016": f"{root_path}MOZ/covariates/moz_osm_dst_road_100m_2016.tif",
"moz_srtm_slope_100m": f"{root_path}MOZ/covariates/moz_srtm_slope_100m.tif",
"moz_srtm_topo_100m": f"{root_path}MOZ/covariates/moz_srtm_topo_100m.tif",
"moz_viirs_100m_2015": f"{root_path}MOZ/covariates/moz_viirs_100m_2015.tif",
"moz_wdpa_dst_cat1_100m_2015": f"{root_path}MOZ/covariates/moz_wdpa_dst_cat1_100m_2015.tif"
},
"zmb" : {
"buildings_google": f"{root_path}ZMB/covariates/ZMB_gbp_BCB_v1_count.tif",
"buildings_maxar": f"{root_path}ZMB/covariates/ZMB_buildings_v2_0_count.tif",
"buildings_google_mean_area": f"{root_path}ZMB/covariates/ZMB_gbp_BCB_v1_mean_area.tif",
"buildings_maxar_mean_area": f"{root_path}ZMB/covariates/ZMB_buildings_v2_0_mean_area.tif",
"zmb_tt50k_100m_2000": f"{root_path}ZMB/covariates/zmb_tt50k_100m_2000.tif",
"zmb_dst_bsgme_100m_2015": f"{root_path}ZMB/covariates/zmb_dst_bsgme_100m_2015.tif",
"zmb_dst_ghslesaccilcgufghsll_100m_2014": f"{root_path}ZMB/covariates/zmb_dst_ghslesaccilcgufghsll_100m_2014.tif",
"zmb_dst_coastline_100m_2000_2020": f"{root_path}ZMB/covariates/zmb_dst_coastline_100m_2000_2020.tif",
"zmb_dmsp_100m_2011": f"{root_path}ZMB/covariates/zmb_dmsp_100m_2011.tif",
"zmb_esaccilc_dst_water_100m_2000_2012": f"{root_path}ZMB/covariates/zmb_esaccilc_dst_water_100m_2000_2012.tif",
"zmb_osm_dst_roadintersec_100m_2016": f"{root_path}ZMB/covariates/zmb_osm_dst_roadintersec_100m_2016.tif",
"zmb_osm_dst_waterway_100m_2016": f"{root_path}ZMB/covariates/zmb_osm_dst_waterway_100m_2016.tif",
"zmb_osm_dst_road_100m_2016": f"{root_path}ZMB/covariates/zmb_osm_dst_road_100m_2016.tif",
"zmb_srtm_slope_100m": f"{root_path}ZMB/covariates/zmb_srtm_slope_100m.tif",
"zmb_srtm_topo_100m": f"{root_path}ZMB/covariates/zmb_srtm_topo_100m.tif",
"zmb_viirs_100m_2015": f"{root_path}ZMB/covariates/zmb_viirs_100m_2015.tif",
"zmb_wdpa_dst_cat1_100m_2015": f"{root_path}ZMB/covariates/zmb_wdpa_dst_cat1_100m_2015.tif"
}
}
no_data_values = {
"tza": {
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"tza_tt50k_100m_2000": -99999,
"tza_dst_bsgme_100m_2015": -99999,
"tza_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"tza_dst_coastline_100m_2000_2020": -99999,
"tza_dmsp_100m_2011": 32767.,
"tza_esaccilc_dst_water_100m_2000_2012":-99999,
"tza_osm_dst_roadintersec_100m_2016":-99999,
"tza_osm_dst_waterway_100m_2016": -99999,
"tza_osm_dst_road_100m_2016": -99999,
"tza_srtm_slope_100m": 255,
"tza_srtm_topo_100m": 32767.,
"tza_viirs_100m_2015": 3.4028e+38,
"tza_wdpa_dst_cat1_100m_2015": -99999,
},
"uga":{
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"uga_tt50k_100m_2000": -99999,
"uga_dst_bsgme_100m_2015": -99999,
"uga_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"uga_dst_coastline_100m_2000_2020": -99999,
"uga_dmsp_100m_2011": 32767.,
"uga_esaccilc_dst_water_100m_2000_2012":-99999,
"uga_osm_dst_roadintersec_100m_2016":-99999,
"uga_osm_dst_waterway_100m_2016": -99999,
"uga_osm_dst_road_100m_2016": -99999,
"uga_srtm_slope_100m": 255.,
"uga_srtm_topo_100m": 32767.,
"uga_viirs_100m_2015": 3.4028e+38,
"uga_wdpa_dst_cat1_100m_2015": -99999,
},
"cod":{
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"cod_tt50k_100m_2000": -99999,
"cod_dst_bsgme_100m_2015": -99999,
"cod_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"cod_dst_coastline_100m_2000_2020": -99999,
"cod_dmsp_100m_2011": 32767.,
"cod_esaccilc_dst_water_100m_2000_2012":-99999,
"cod_osm_dst_roadintersec_100m_2016":-99999,
"cod_osm_dst_waterway_100m_2016": -99999,
"cod_osm_dst_road_100m_2016": -99999,
"cod_srtm_slope_100m": 255.,
"cod_srtm_topo_100m": 32767.,
"cod_viirs_100m_2015": 3.4028e+38,
"cod_wdpa_dst_cat1_100m_2015": -99999,
},
"rwa":{
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"rwa_tt50k_100m_2000": -99999,
"rwa_dst_bsgme_100m_2015": -99999,
"rwa_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"rwa_dst_coastline_100m_2000_2020": -99999,
"rwa_dmsp_100m_2011": 32767.,
"rwa_esaccilc_dst_water_100m_2000_2012":-99999,
"rwa_osm_dst_roadintersec_100m_2016":-99999,
"rwa_osm_dst_waterway_100m_2016": -99999,
"rwa_osm_dst_road_100m_2016": -99999,
"rwa_srtm_slope_100m": 255.,
"rwa_srtm_topo_100m": 32767.,
"rwa_viirs_100m_2015": 3.4028e+38,
"rwa_wdpa_dst_cat1_100m_2015": -99999,
},
"moz":{
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"moz_tt50k_100m_2000": -99999,
"moz_dst_bsgme_100m_2015": -99999,
"moz_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"moz_dst_coastline_100m_2000_2020": -99999,
"moz_dmsp_100m_2011": 32767.,
"moz_esaccilc_dst_water_100m_2000_2012":-99999,
"moz_osm_dst_roadintersec_100m_2016":-99999,
"moz_osm_dst_waterway_100m_2016": -99999,
"moz_osm_dst_road_100m_2016": -99999,
"moz_srtm_slope_100m": 255.,
"moz_srtm_topo_100m": 32767.,
"moz_viirs_100m_2015": 3.4028e+38,
"moz_wdpa_dst_cat1_100m_2015": -99999,
},
"zmb":{
"buildings_j": None,
"buildings_google": -99999,
"buildings_maxar": -99999,
"buildings_google_mean_area": -99999,
"buildings_merge_mean_area": -99999,
"buildings_maxar_mean_area": -99999,
"esaccilc_dst011_100m_2000": -99999,
"esaccilc_dst040_100m_2000": -99999,
"esaccilc_dst130_100m_2000": -99999,
"esaccilc_dst140_100m_2000": -99999,
"esaccilc_dst150_100m_2000": -99999,
"esaccilc_dst160_100m_2000": -99999,
"esaccilc_dst190_100m_2000": -99999,
"esaccilc_dst200_100m_2000": -99999,
"zmb_tt50k_100m_2000": -99999,
"zmb_dst_bsgme_100m_2015": -99999,
"zmb_dst_ghslesaccilcgufghsll_100m_2014": -99999,
"zmb_dst_coastline_100m_2000_2020": -99999,
"zmb_dmsp_100m_2011": 32767.,
"zmb_esaccilc_dst_water_100m_2000_2012":-99999,
"zmb_osm_dst_roadintersec_100m_2016":-99999,
"zmb_osm_dst_waterway_100m_2016": -99999,
"zmb_osm_dst_road_100m_2016": -99999,
"zmb_srtm_slope_100m": 255.,
"zmb_srtm_topo_100m": 32767.,
"zmb_viirs_100m_2015": 3.4028235e+38,
"zmb_wdpa_dst_cat1_100m_2015": -99999,
}
}
norms = {
"tza": {
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"tza_tt50k_100m_2000": (209.1351, 188.1936),
"tza_dst_bsgme_100m_2015": (3.2670, 4.2283),
"tza_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"tza_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"tza_dmsp_100m_2011": (71.8836 , 399.8602 ),
"tza_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"tza_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"tza_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"tza_osm_dst_road_100m_2016": (3.7082, 5.6608),
"tza_srtm_slope_100m": (3.2089 , 3.8157),
"tza_srtm_topo_100m": (1143.9080 , 402.7680),
"tza_viirs_100m_2015": (0.2205 , 1.0825),
"tza_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
},
"uga":{
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"uga_tt50k_100m_2000": (209.1351, 188.1936),
"uga_dst_bsgme_100m_2015": (3.2670, 4.2283),
"uga_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"uga_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"uga_dmsp_100m_2011": (71.8836 , 399.8602 ),
"uga_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"uga_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"uga_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"uga_osm_dst_road_100m_2016": (3.7082, 5.6608),
"uga_srtm_slope_100m": (3.2089 , 3.8157),
"uga_srtm_topo_100m": (1143.9080 , 402.7680),
"uga_viirs_100m_2015": (0.2205 , 1.0825),
"uga_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
},
"cod":{
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"cod_tt50k_100m_2000": (209.1351, 188.1936),
"cod_dst_bsgme_100m_2015": (3.2670, 4.2283),
"cod_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"cod_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"cod_dmsp_100m_2011": (71.8836 , 399.8602 ),
"cod_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"cod_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"cod_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"cod_osm_dst_road_100m_2016": (3.7082, 5.6608),
"cod_srtm_slope_100m": (3.2089 , 3.8157),
"cod_srtm_topo_100m": (1143.9080 , 402.7680),
"cod_viirs_100m_2015": (0.2205 , 1.0825),
"cod_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
},
"rwa":{
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"rwa_tt50k_100m_2000": (209.1351, 188.1936),
"rwa_dst_bsgme_100m_2015": (3.2670, 4.2283),
"rwa_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"rwa_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"rwa_dmsp_100m_2011": (71.8836 , 399.8602 ),
"rwa_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"rwa_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"rwa_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"rwa_osm_dst_road_100m_2016": (3.7082, 5.6608),
"rwa_srtm_slope_100m": (3.2089 , 3.8157),
"rwa_srtm_topo_100m": (1143.9080 , 402.7680),
"rwa_viirs_100m_2015": (0.2205 , 1.0825),
"rwa_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
},
"moz":{
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"moz_tt50k_100m_2000": (209.1351, 188.1936),
"moz_dst_bsgme_100m_2015": (3.2670, 4.2283),
"moz_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"moz_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"moz_dmsp_100m_2011": (71.8836 , 399.8602 ),
"moz_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"moz_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"moz_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"moz_osm_dst_road_100m_2016": (3.7082, 5.6608),
"moz_srtm_slope_100m": (3.2089 , 3.8157),
"moz_srtm_topo_100m": (1143.9080 , 402.7680),
"moz_viirs_100m_2015": (0.2205 , 1.0825),
"moz_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
},
"zmb":{
"buildings_j": (0.00089380914, 8.41622997e-03),
"esaccilc_dst011_100m_2000": (2.81727052, 5.69885715e+00),
"esaccilc_dst040_100m_2000": (0.44520899, 2.72345595e+00),
"esaccilc_dst130_100m_2000": (3.09648584, 4.70480562e+00),
"esaccilc_dst140_100m_2000": (9.18009012, 9.85124076e+00),
"esaccilc_dst150_100m_2000": (108.52330299, 8.17261502e+01),
"esaccilc_dst160_100m_2000": (8.65616757, 9.26884634e+00),
"esaccilc_dst190_100m_2000": (37.38046272, 3.10730075e+01),
"esaccilc_dst200_100m_2000": (64.73759992, 4.46013049e+01),
"zmb_tt50k_100m_2000": (209.1351, 188.1936),
"zmb_dst_bsgme_100m_2015": (3.2670, 4.2283),
"zmb_dst_ghslesaccilcgufghsll_100m_2014": (3.3381, 4.2542),
"zmb_dst_coastline_100m_2000_2020": (698.8104, 326.6751),
"zmb_dmsp_100m_2011": (71.8836 , 399.8602 ),
"zmb_esaccilc_dst_water_100m_2000_2012":(18.1815, 14.8920),
"zmb_osm_dst_roadintersec_100m_2016":(19.8096, 29.5883),
"zmb_osm_dst_waterway_100m_2016": (15.2655, 15.4519),
"zmb_osm_dst_road_100m_2016": (3.7082, 5.6608),
"zmb_srtm_slope_100m": (3.2089 , 3.8157),
"zmb_srtm_topo_100m": (1143.9080 , 402.7680),
"zmb_viirs_100m_2015": (0.2205 , 1.0825),
"zmb_wdpa_dst_cat1_100m_2015": (388.8701 , 221.6834),
'buildings_merge_mean_area': (26.3673, 48.1988)
}
}
metadata = {
"tza": {
"wp_no_data": [0, 1],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}TZA/preprocessed_census_data_tza.pkl',
"rst_wp_regions_path": f'{root_path}TZA/admin_regions/tza_subnational_2000_2020_sid.tif'
},
"uga":{
"wp_no_data": [0, 1],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}UGA/preprocessed_census_data_uga.pkl',
"rst_wp_regions_path": f'{root_path}UGA/admin_regions/uga_wpop_regions.tif'
},
"cod":{
"wp_no_data": [0, 1],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}COD/preprocessed_census_data_cod.pkl',
"rst_wp_regions_path": f'{root_path}COD/admin_regions/cod_wpop_regions.tif'
},
"rwa":{
"wp_no_data": [0, 1],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}RWA/preprocessed_census_data_rwa.pkl',
"rst_wp_regions_path": f'{root_path}RWA/admin_regions/rwa_wpop_regions.tif'
},
"moz":{
"wp_no_data": [0, 1],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}MOZ/preprocessed_census_data_moz.pkl',
"rst_wp_regions_path": f'{root_path}MOZ/admin_regions/moz_wpop_regions.tif'
},
"zmb":{
"wp_no_data": [0],
"wp_covariates_no_data": -9999,
"hd_no_data": [0],
"scale_maxar_to_google": None,
"preproc_data_path": f'{root_path}ZMB/preprocessed_census_data_zmb.pkl',
"rst_wp_regions_path": f'{root_path}ZMB/admin_regions/zmb_adm4_sid.tif'
}
}
input_paths["tza_f3"] = {
"buildings_google": input_paths["tza"]["buildings_google"],
"buildings_maxar": input_paths["tza"]["buildings_maxar"],
"buildings_google_mean_area": input_paths["tza"]["buildings_google_mean_area"],
"buildings_maxar_mean_area": input_paths["tza"]["buildings_maxar_mean_area"],
"tza_viirs_100m_2015" : input_paths["tza"]["tza_viirs_100m_2015"]
}
metadata["tza_f3"] = metadata["tza"]
# Columns of shapefiles
col_coarse_level_seq_id = "GR_SID"
col_finest_level_seq_id = "SID"