inasafe / inasafe

InaSAFE - QGIS plugin for estimating impact from natural disasters
www.inasafe.org
GNU General Public License v3.0
258 stars 134 forks source link

InaSAFE Realtime EQ: Failed to process non intersected hazard and exposure #2652

Closed lucernae closed 8 years ago

lucernae commented 8 years ago

Problem

samnawi commented 8 years ago

@lucernae So, the problem is because the epicenter in the middle of the ocean? The shakemap is not intersecting with population data, because there is no population in there. But, if I see the latest aftershock, the location is farther than the first earthquake (that not appear in the realtime)

image

My question :

  1. How wide the coverage of BMKG shakemap? Is it different from one EQ to the other?
  2. About the exposure data, should we prepare the population data with 0 (zero) value at the ocean, not just NULL?
lucernae commented 8 years ago

Yes, after looking at the latest shakemap it appears to be much farther. I'm not sure then. Maybe the problem actually in the clipper. I should take a look then.

timlinux commented 8 years ago

@lucernae Can you give an update on this? We should treat it as high priority please.

lucernae commented 8 years ago

I found the problem! I misunderstood some numpy functions. So it appears all value becomes NaN, because it was being added by NaN. So, we should filter NaN first and replace it with 0.

@samnawi the current population should be fine, the impact function is expected to be able to handle NaN values.

samnawi commented 8 years ago

OK @lucernae. It sounds good.