-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmap_comparison_config
More file actions
107 lines (98 loc) · 5.08 KB
/
Copy pathmap_comparison_config
File metadata and controls
107 lines (98 loc) · 5.08 KB
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
// released under Open Source GPL License Copyright © 2023 Ka Hei Chow
// ######################################### //
// ###### Config Params for Map ###### //
// ###### Comparison Tool ###### //
// ######################################### //
/**
* Configuration for Map Comparison Tool
*/
// import modules
var data = require('users/pinkychow1010/WB_IntraUrban:get_layer_func'); // customized basemap to enhance visuals
var app = require('users/pinkychow1010/WB_IntraUrban:map_comparison_interface'); // customized basemap to enhance visuals
var text = require('users/pinkychow1010/WB_IntraUrban:data_text'); // customized basemap to enhance visuals
var helper = require('users/pinkychow1010/WB_IntraUrban:helper'); // customized basemap to enhance visuals
var palettes = require('users/gena/packages:palettes');
// all available data layers imported from functions
exports.layer_dict = {
"EXPOSURE | Relative Wealth Index": data.get_rwi,
"EXPOSURE | Critical Infrastructure": data.get_cisi,
"EXPOSURE | Population (LandScan)": data.get_landscan_pop,
"EXPOSURE | Urban Density": data.get_urban_density,
"EXPOSURE | Cropland Density": data.get_cropland_density,
"VULNERABILITY | Forest Density": data.get_forest_density,
"VULNERABILITY | Urbanization Degree": data.get_urban_degree,
"HAZARD | Palmer Drought Severity Index": data.get_pdsi,
"HAZARD | Extreme Heat 100y return": data.get_heat_100y,
"HAZARD | Extreme Heat 20y return": data.get_heat_20y,
"HAZARD | Extreme Heat 5y return": data.get_heat_5y
};
// palettes for data layers
exports.color_dict = {
"EXPOSURE | Relative Wealth Index": palettes.colorbrewer.RdBu[6],
"EXPOSURE | Critical Infrastructure": palettes.colorbrewer.RdBu[6],
"EXPOSURE | Population (LandScan)": palettes.colorbrewer.YlOrBr[6],
"EXPOSURE | Urban Density": palettes.colorbrewer.YlOrBr[6],
"EXPOSURE | Cropland Density": palettes.colorbrewer.YlOrBr[6],
"VULNERABILITY | Forest Density": palettes.colorbrewer.YlGn[6],
"VULNERABILITY | Urbanization Degree": palettes.colorbrewer.YlOrBr[6],
"HAZARD | Palmer Drought Severity Index": palettes.colorbrewer.Reds[6],
"HAZARD | Extreme Heat 100y return": palettes.colorbrewer.Reds[6],
"HAZARD | Extreme Heat 20y return": palettes.colorbrewer.Reds[6],
"HAZARD | Extreme Heat 5y return": palettes.colorbrewer.Reds[6]
};
// descriptions for data layers
exports.info_dict = {
"EXPOSURE | Relative Wealth Index": text.rwi,
"EXPOSURE | Critical Infrastructure": text.cisi,
"EXPOSURE | Population (LandScan)": text.landscan,
"EXPOSURE | Urban Density": text.urban,
"EXPOSURE | Cropland Density": text.cropland,
"VULNERABILITY | Forest Density": text.forest,
"VULNERABILITY | Urbanization Degree": text.ghsl,
"HAZARD | Palmer Drought Severity Index": text.pdsi,
"HAZARD | Extreme Heat 100y return": text.heat_hazard,
"HAZARD | Extreme Heat 20y return": text.heat_hazard,
"HAZARD | Extreme Heat 5y return": text.heat_hazard
};
// project url link for data layers
exports.url_dict = {
"EXPOSURE | Relative Wealth Index": "https://gee-community-catalog.org/projects/rwi/",
"EXPOSURE | Critical Infrastructure": "https://gee-community-catalog.org/projects/cisi/",
"EXPOSURE | Population (LandScan)": "https://gee-community-catalog.org/projects/landscan/",
"EXPOSURE | Urban Density": "https://esa-worldcover.org/en",
"EXPOSURE | Cropland Density": "https://esa-worldcover.org/en",
"VULNERABILITY | Forest Density": "https://esa-worldcover.org/en",
"VULNERABILITY | Urbanization Degree": "https://ghsl.jrc.ec.europa.eu/",
"HAZARD | Palmer Drought Severity Index": "https://www.climatologylab.org/terraclimate.html",
"HAZARD | Extreme Heat 100y return": "https://gee-community-catalog.org/projects/heat-hazard/",
"HAZARD | Extreme Heat 20y return": "https://gee-community-catalog.org/projects/heat-hazard/",
"HAZARD | Extreme Heat 5y return": "https://gee-community-catalog.org/projects/heat-hazard/"
};
// options for log scale data visualization for different data layers
exports.log_dict = {
"EXPOSURE | Relative Wealth Index": 0,
"EXPOSURE | Critical Infrastructure": 0,
"EXPOSURE | Population (LandScan)": 1,
"EXPOSURE | Urban Density": 0,
"EXPOSURE | Cropland Density": 0,
"VULNERABILITY | Forest Density": 0,
"VULNERABILITY | Urbanization Degree": 0,
"HAZARD | Palmer Drought Severity Index": 0,
"HAZARD | Extreme Heat 100y return": 0,
"HAZARD | Extreme Heat 20y return": 0,
"HAZARD | Extreme Heat 5y return": 0
};
// data layer unit shown in legends
exports.legend_dict = {
"EXPOSURE | Relative Wealth Index": "No Unit",
"EXPOSURE | Critical Infrastructure": "No Unit",
"EXPOSURE | Population (LandScan)": "Count/km2",
"EXPOSURE | Urban Density": "%",
"EXPOSURE | Cropland Density": "%",
"VULNERABILITY | Forest Density": "%",
"VULNERABILITY | Urbanization Degree": "No Unit",
"HAZARD | Palmer Drought Severity Index": "No Unit",
"HAZARD | Extreme Heat 100y return": "°C",
"HAZARD | Extreme Heat 20y return": "°C",
"HAZARD | Extreme Heat 5y return": "°C"
};