Skip to content

Commit e32a9ba

Browse files
committed
Add explicit impact model to ISIMIP
Closes #55
1 parent 5bb379b commit e32a9ba

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/config/hazards/domains.ts

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export const HAZARD_DOMAINS_CONFIG: Record<HazardType, HazardDomainConfig> = {
7272
epoch: 'baseline',
7373
rcp: 'baseline',
7474
gcm: 'gfdl-esm2m',
75+
impact_model: 'hwmid-humidex',
7576
},
7677
dependencies: {
7778
rcp: ['epoch'],
@@ -91,6 +92,7 @@ export const HAZARD_DOMAINS_CONFIG: Record<HazardType, HazardDomainConfig> = {
9192
epoch: 'baseline',
9293
rcp: 'baseline',
9394
gcm: 'gfdl-esm2m',
95+
impact_model: 'watergap2',
9496
},
9597
dependencies: {
9698
rcp: ['epoch'],

src/config/hazards/metadata.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export const HAZARDS_METADATA: Record<HazardType, HazardMetadata> = {
9696
formatValue: makeValueFormat('_', { maximumFractionDigits: 1, style: 'percent' }),
9797
legendAnnotation: 'Annual probability of extreme event',
9898
getPath: (hazardParams, metric) => {
99-
const { rcp, epoch, gcm } = hazardParams;
100-
return `isimip/extreme_heat/${metric}/${rcp}/${epoch}/${gcm}`;
99+
const { rcp, epoch, gcm, impact_model } = hazardParams;
100+
return `isimip/extreme_heat/${metric}/${rcp}/${epoch}/${gcm}/${impact_model}`;
101101
},
102102
},
103103
earthquake: {
@@ -116,8 +116,8 @@ export const HAZARDS_METADATA: Record<HazardType, HazardMetadata> = {
116116
formatValue: makeValueFormat('_', { maximumFractionDigits: 1, style: 'percent' }),
117117
legendAnnotation: 'Annual probability of extreme event',
118118
getPath: (hazardParams, metric) => {
119-
const { rcp, epoch, gcm } = hazardParams;
120-
return `isimip/drought/${metric}/${rcp}/${epoch}/${gcm}`;
119+
const { rcp, epoch, gcm, impact_model } = hazardParams;
120+
return `isimip/drought/${metric}/${rcp}/${epoch}/${gcm}/${impact_model}`;
121121
},
122122
},
123123
};

src/sidebar/sections/hazards/HazardsControl.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ export const DroughtControl = () => {
157157
<DataNoticeTextBlock>
158158
Map shows annual probability of a "drought event", defined by Lange et al (2020) as
159159
monthly soil moisture falling below the 2.5th percentile of the preindustrial baseline
160-
distribution for at least seven consecutive months.
160+
distribution for at least seven consecutive months. Multiple impact models are available,
161+
currently showing "WaterGAP2".
161162
</DataNoticeTextBlock>
162163
</DataNotice>
163164
<InputRow>

0 commit comments

Comments
 (0)