You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default hazard.frequency value of 1 leads to excessive impact numbers when plotting impacts from 50 ensemble members (GloFAS Forecast). The _build_exp() function is used during plotting, which takes the eai_exp value at each centroid. Per centroid all 50 impact values (50 events) are summed up each with a frequency of 1. This leads to unexpected high impact values per centroid.
In the tutorial it is described like this: "The averaging function takes the frequency parameter of the hazard into account.
By default, all hazard events have a frequency of 1.
This may result in unexpected values for average impacts.
We therefore divide the frequency by the number of events before plotting."
The issue occurs when you follow the climada_hazard_glofas_rf tutorial but forget to add this line before the impact calculation: hazard.frequency = hazard.frequency / hazard.size
This is how my plots looked like: (the mean exposed population is calculated from impact.at_event values and therefore not affected by the frequency)
Would it be a better solution to divide the hazard.frequency by the hazard.size automatically during the hazard_series_from_dataset() computation?
Another solution would be to return a warning to the user as they may want to adjust the hazard.frequency.
The text was updated successfully, but these errors were encountered:
The default hazard.frequency value of 1 leads to excessive impact numbers when plotting impacts from 50 ensemble members (GloFAS Forecast). The _build_exp() function is used during plotting, which takes the eai_exp value at each centroid. Per centroid all 50 impact values (50 events) are summed up each with a frequency of 1. This leads to unexpected high impact values per centroid.
In the tutorial it is described like this:
"The averaging function takes the
frequency
parameter of the hazard into account.By default, all hazard events have a frequency of 1.
This may result in unexpected values for average impacts.
We therefore divide the frequency by the number of events before plotting."
The issue occurs when you follow the climada_hazard_glofas_rf tutorial but forget to add this line before the impact calculation:
hazard.frequency = hazard.frequency / hazard.size
The simplified calculation steps are as follows:
This is how my plots looked like: (the mean exposed population is calculated from impact.at_event values and therefore not affected by the frequency)
Would it be a better solution to divide the hazard.frequency by the hazard.size automatically during the hazard_series_from_dataset() computation?
Another solution would be to return a warning to the user as they may want to adjust the hazard.frequency.
The text was updated successfully, but these errors were encountered: