@climateriskcommons/crc-framework 0.5.4 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,367 @@
1
+ {
2
+ "$id": "https://climateriskcommons.org/schemas/impact-context-1.0.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "oneOf": [
5
+ {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "kind": {
9
+ "const": "empty_context"
10
+ }
11
+ },
12
+ "required": [
13
+ "kind"
14
+ ],
15
+ "type": "object"
16
+ },
17
+ {
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "cell": {
21
+ "oneOf": [
22
+ {
23
+ "maximum": 18446744073709551615,
24
+ "minimum": 1,
25
+ "type": "integer"
26
+ },
27
+ {
28
+ "additionalProperties": false,
29
+ "properties": {
30
+ "column": {
31
+ "minLength": 1,
32
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
33
+ "type": "string"
34
+ }
35
+ },
36
+ "required": [
37
+ "column"
38
+ ],
39
+ "type": "object"
40
+ }
41
+ ]
42
+ },
43
+ "kind": {
44
+ "const": "cell_context"
45
+ }
46
+ },
47
+ "required": [
48
+ "kind",
49
+ "cell"
50
+ ],
51
+ "type": "object"
52
+ },
53
+ {
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "country": {
57
+ "oneOf": [
58
+ {
59
+ "minLength": 1,
60
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "column": {
67
+ "minLength": 1,
68
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "column"
74
+ ],
75
+ "type": "object"
76
+ }
77
+ ]
78
+ },
79
+ "kind": {
80
+ "const": "country_context"
81
+ }
82
+ },
83
+ "required": [
84
+ "kind",
85
+ "country"
86
+ ],
87
+ "type": "object"
88
+ },
89
+ {
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "asset_type": {
93
+ "oneOf": [
94
+ {
95
+ "enum": [
96
+ "residential",
97
+ "commercial",
98
+ "industrial",
99
+ "transport",
100
+ "roads",
101
+ "agricultural_land"
102
+ ]
103
+ },
104
+ {
105
+ "additionalProperties": false,
106
+ "properties": {
107
+ "column": {
108
+ "minLength": 1,
109
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
110
+ "type": "string"
111
+ }
112
+ },
113
+ "required": [
114
+ "column"
115
+ ],
116
+ "type": "object"
117
+ }
118
+ ]
119
+ },
120
+ "kind": {
121
+ "const": "inundation_context"
122
+ },
123
+ "region": {
124
+ "oneOf": [
125
+ {
126
+ "enum": [
127
+ "africa",
128
+ "asia",
129
+ "europe",
130
+ "north_america",
131
+ "south_america",
132
+ "oceania",
133
+ "global"
134
+ ],
135
+ "type": "string"
136
+ },
137
+ {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "column": {
141
+ "minLength": 1,
142
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
143
+ "type": "string"
144
+ }
145
+ },
146
+ "required": [
147
+ "column"
148
+ ],
149
+ "type": "object"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "required": [
155
+ "kind",
156
+ "region",
157
+ "asset_type"
158
+ ],
159
+ "type": "object"
160
+ },
161
+ {
162
+ "additionalProperties": false,
163
+ "properties": {
164
+ "asset_type": {
165
+ "oneOf": [
166
+ {
167
+ "enum": [
168
+ "residential",
169
+ "commercial",
170
+ "industrial"
171
+ ]
172
+ },
173
+ {
174
+ "additionalProperties": false,
175
+ "properties": {
176
+ "column": {
177
+ "minLength": 1,
178
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
179
+ "type": "string"
180
+ }
181
+ },
182
+ "required": [
183
+ "column"
184
+ ],
185
+ "type": "object"
186
+ }
187
+ ]
188
+ },
189
+ "country": {
190
+ "oneOf": [
191
+ {
192
+ "minLength": 1,
193
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
194
+ "type": "string"
195
+ },
196
+ {
197
+ "additionalProperties": false,
198
+ "properties": {
199
+ "column": {
200
+ "minLength": 1,
201
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
202
+ "type": "string"
203
+ }
204
+ },
205
+ "required": [
206
+ "column"
207
+ ],
208
+ "type": "object"
209
+ }
210
+ ]
211
+ },
212
+ "kind": {
213
+ "const": "water_cost_context"
214
+ }
215
+ },
216
+ "required": [
217
+ "kind",
218
+ "country",
219
+ "asset_type"
220
+ ],
221
+ "type": "object"
222
+ },
223
+ {
224
+ "additionalProperties": false,
225
+ "properties": {
226
+ "asset_type": {
227
+ "oneOf": [
228
+ {
229
+ "enum": [
230
+ "residential",
231
+ "commercial",
232
+ "industrial"
233
+ ]
234
+ },
235
+ {
236
+ "additionalProperties": false,
237
+ "properties": {
238
+ "column": {
239
+ "minLength": 1,
240
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
241
+ "type": "string"
242
+ }
243
+ },
244
+ "required": [
245
+ "column"
246
+ ],
247
+ "type": "object"
248
+ }
249
+ ]
250
+ },
251
+ "country": {
252
+ "oneOf": [
253
+ {
254
+ "minLength": 1,
255
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
256
+ "type": "string"
257
+ },
258
+ {
259
+ "additionalProperties": false,
260
+ "properties": {
261
+ "column": {
262
+ "minLength": 1,
263
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
264
+ "type": "string"
265
+ }
266
+ },
267
+ "required": [
268
+ "column"
269
+ ],
270
+ "type": "object"
271
+ }
272
+ ]
273
+ },
274
+ "historic_mean": {
275
+ "oneOf": [
276
+ {
277
+ "type": "number"
278
+ },
279
+ {
280
+ "additionalProperties": false,
281
+ "properties": {
282
+ "column": {
283
+ "minLength": 1,
284
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
285
+ "type": "string"
286
+ }
287
+ },
288
+ "required": [
289
+ "column"
290
+ ],
291
+ "type": "object"
292
+ }
293
+ ]
294
+ },
295
+ "kind": {
296
+ "const": "cooling_cost_context"
297
+ }
298
+ },
299
+ "required": [
300
+ "kind",
301
+ "country",
302
+ "asset_type",
303
+ "historic_mean"
304
+ ],
305
+ "type": "object"
306
+ },
307
+ {
308
+ "additionalProperties": false,
309
+ "properties": {
310
+ "country": {
311
+ "oneOf": [
312
+ {
313
+ "minLength": 1,
314
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
315
+ "type": "string"
316
+ },
317
+ {
318
+ "additionalProperties": false,
319
+ "properties": {
320
+ "column": {
321
+ "minLength": 1,
322
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
323
+ "type": "string"
324
+ }
325
+ },
326
+ "required": [
327
+ "column"
328
+ ],
329
+ "type": "object"
330
+ }
331
+ ]
332
+ },
333
+ "historic_mean": {
334
+ "oneOf": [
335
+ {
336
+ "type": "number"
337
+ },
338
+ {
339
+ "additionalProperties": false,
340
+ "properties": {
341
+ "column": {
342
+ "minLength": 1,
343
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
344
+ "type": "string"
345
+ }
346
+ },
347
+ "required": [
348
+ "column"
349
+ ],
350
+ "type": "object"
351
+ }
352
+ ]
353
+ },
354
+ "kind": {
355
+ "const": "crop_context"
356
+ }
357
+ },
358
+ "required": [
359
+ "kind",
360
+ "country",
361
+ "historic_mean"
362
+ ],
363
+ "type": "object"
364
+ }
365
+ ],
366
+ "title": "ImpactContext"
367
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$id": "https://climateriskcommons.org/schemas/impact-reference-2.0.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "id": {
7
+ "enum": [
8
+ "crc:freeze_thaw_cycles",
9
+ "crc:frost_days",
10
+ "crc:maximum_daily_precipitation",
11
+ "crc:cyclone",
12
+ "crc:maximum_daily_wind_speed",
13
+ "crc:fire_weather_index",
14
+ "crc:hot_days",
15
+ "crc:coastal_flood",
16
+ "crc:river_flood",
17
+ "crc:inundation",
18
+ "crc:standardized_precipitation_evapotranspiration_index",
19
+ "crc:cooling_degree_days",
20
+ "crc:cooling_degree_days_crop_yield",
21
+ "crc:consecutive_dry_days"
22
+ ]
23
+ },
24
+ "manifest_sha256": {
25
+ "pattern": "^sha256:[0-9a-f]{64}$",
26
+ "type": "string"
27
+ },
28
+ "schema_version": {
29
+ "const": "2.0"
30
+ },
31
+ "version": {
32
+ "minLength": 1,
33
+ "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
34
+ "type": "string"
35
+ }
36
+ },
37
+ "required": [
38
+ "schema_version",
39
+ "id",
40
+ "version",
41
+ "manifest_sha256"
42
+ ],
43
+ "title": "ImpactReference",
44
+ "type": "object"
45
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "asset_types": {
3
+ "agricultural_building": "Agricultural buildings",
4
+ "agricultural_land": "Agriculture",
5
+ "commercial": "Commercial buildings",
6
+ "industrial": "Industrial buildings",
7
+ "residential": "Residential buildings",
8
+ "roads": "Infrastructure - roads",
9
+ "transport": "Transport"
10
+ },
11
+ "fixed_context": {
12
+ "crc:consecutive_dry_days": {
13
+ "asset_type": "agricultural_building"
14
+ },
15
+ "crc:cooling_degree_days_crop_yield": {
16
+ "asset_type": "agricultural_building"
17
+ }
18
+ },
19
+ "models": {
20
+ "crc:coastal_flood": "cflood",
21
+ "crc:consecutive_dry_days": "maximum_consecutive_dry_days",
22
+ "crc:cooling_degree_days": "cooling_degree_days",
23
+ "crc:cooling_degree_days_crop_yield": "cooling_degree_days",
24
+ "crc:cyclone": "cyclone",
25
+ "crc:fire_weather_index": "fwi",
26
+ "crc:freeze_thaw_cycles": "daily_freezethaw_cycles",
27
+ "crc:frost_days": "frost_days",
28
+ "crc:hot_days": "hot_days",
29
+ "crc:inundation": "inundation",
30
+ "crc:maximum_daily_precipitation": "rx1day",
31
+ "crc:maximum_daily_wind_speed": "wind_max_daily_max",
32
+ "crc:river_flood": "rflood",
33
+ "crc:standardized_precipitation_evapotranspiration_index": "spei"
34
+ },
35
+ "regions": {
36
+ "africa": "Africa",
37
+ "asia": "Asia",
38
+ "europe": "Europe",
39
+ "global": "Global",
40
+ "north_america": "North America",
41
+ "oceania": "Oceania",
42
+ "south_america": "South America"
43
+ }
44
+ }