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
If I define an impact function with mdd or paa different from 0 at intensity 0, I get the following warnings from ImpactFunc.check():
climada.entity.impact_funcs.base - WARNING - For intensity = 0, mdd != 0 or paa != 0. Consider shifting the origin of the intensity scale. In impact.calc the impact is always null at intensity = 0.
To me this suggests that even if both mdd and paa are not 0 for intensity==0, impact.calc will return null to me. However, looking at the code, I do not see this condition applied anywhere. Am I overseeing something here?
Note that in my case, paa is set to 1 for all intensities, but mdd is actually 0 for intensity==0, so I actually expect 0 impact from intensity==0. However, this warning made me doubt whether I correctly understand the impact calculation for that case.
The text was updated successfully, but these errors were encountered:
My understanding is that this condition follows from the implementation of hazard.intensity as a sparse matrix.
In this line the impact function is only applied to nonzero elements. Meaning if mdd and paa would both be non-zero at intensity==0, this would not be recognized in the implementation as the calculation is never initiated for all elements where hazard.intensity==0.
That is why Sam and I introduced this warning at one point.
If I define an impact function with mdd or paa different from 0 at intensity 0, I get the following warnings from
ImpactFunc.check()
:To me this suggests that even if both mdd and paa are not 0 for intensity==0, impact.calc will return null to me. However, looking at the code, I do not see this condition applied anywhere. Am I overseeing something here?
Note that in my case, paa is set to 1 for all intensities, but mdd is actually 0 for intensity==0, so I actually expect 0 impact from intensity==0. However, this warning made me doubt whether I correctly understand the impact calculation for that case.
The text was updated successfully, but these errors were encountered: