Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Population Vector IF Improvements #2551

Merged
merged 51 commits into from Feb 22, 2016
Merged

Conversation

Samweli
Copy link
Contributor

@Samweli Samweli commented Jan 8, 2016

This Pull Request addresses #2543

The following are the changes are made

  1. Changed exposure type from exposure area to exposure population.
  2. Added action list and notes for the IF.
  3. Changed exposure layer mode from classified to continuous.
  4. Showing area name in impact_report instead of area_id
  5. Added new table for showing number of population in each hazard level
  6. Using the right value for population field in the impact layer

@@ -772,18 +763,18 @@
'type': 'field',
'description': tr('Attribute for the area name ')
}
area_type = {
area_type_field = {
'key': 'area_type_field',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe area_name_field would make more sense here?

@timlinux
Copy link
Contributor

timlinux commented Jan 9, 2016

@Samweli thanks for this patch. I have some mostly minor comments in the PR review above. If we can address these we can merge!

@Samweli
Copy link
Contributor Author

Samweli commented Jan 9, 2016

Thanks @timlinux, i will look into them :).

@ismailsunni
Copy link
Member

Thanks @Samweli

@samnawi can you try this PR?

@samnawi
Copy link

samnawi commented Jan 11, 2016

I've tried in my PC, both of Win7 64bit and Ubuntu 14.04 64bit.
I got some error message when I run vector population VS vector flood.
selection_047

@Samweli I've a question for the vector population keyword wizard, What is the meaning of "Attribute for the type of the area"? Is the geomerty type or population type or what?
selection_046

Thank you.

@Samweli
Copy link
Contributor Author

Samweli commented Jan 11, 2016

Hi @samnawi, the type attribute stands for the area type(ward or district or sub-ward) and from the exposure data you have used, is the population values of type range? The IF expects integer type population values, this can be one of the reason it is raising an exception.

@ismailsunni
Copy link
Member

Ouch, write long comment, and it's gone. Accidentally click back button.

@Charlotte-Morgan
Copy link
Member

Hi @ismailsunni - as requested more info on point 4 above.
a) the output layer is called "populations affected by each hazard zone" . This is then in the map legend. Please change the name of the default impact layer to "people affected by each hazard zone"
NOTE: this should be consistent with all hazard zone on people impact functions

b) the results in the output layer are displayed by the attribute safe_ag which is coded to mean yes or no. I think the results would be more meaningful if the label was the number of people in the hazard zone. No might be 0 and yes should be greater than 0.
image

c) The map title should also be "affected people" - with capitalisation as per standards.

image

@Charlotte-Morgan
Copy link
Member

re PR #2600 & point 5 above - results still look dodgy to me. We now have negative unaffected people ?? The total numbers also look incorrect to me.

image

The notes and assumptions also need to be updated to use the same standard wording and changes made by @timlinux - i'm pretty sure we removed the human fractions statement previously

image

@Samweli
Copy link
Contributor Author

Samweli commented Feb 3, 2016

Hi @Charlotte-Morgan thanks for your comments, i'm looking at the problems you have highlighted. Will get back once i have fix them.

@Charlotte-Morgan
Copy link
Member

hi @ismailsunni @Samweli - I see that some of the issues above are addressed but the results are still confusing for me. I do not understand what you are trying to present with the results. I'm assuming that you are reporting on affected people. The number of people affected in the no zone is still HUGE.

Suggestion: Would it be possible to style the top of the report in a similar way to the flood vector on raster population and just show the number of people in the flood affected area (yes hazard zone)
image
This solves the HUGE value at no :)
@Samweli - if this works, you may want to think about what you want to show on the map; maybe its the number of people in the flood affected (yes) area? not just where the flooded area is?

Another issue I just noticed: is this IF calculating the min needs for all affected people or only a certain percentage? ie in flood vector on raster population we use the 1% rule but we also state this in the impact report and notes.
It would be useful to use similar notes if they are relevant:
image
@timlinux did a lot of work tidying up reports and notes & it would be great to get that work to persist in all impact reports (please).
Just leave out the second dot if you are not using a percentage. If there is a percentage state what it is.

Sorry - I think this gives you more things to tweak, but its getting there and it runs, even on data with NULL values so you have made great progress. :) And this IF will be so useful next week when it floods in Jakarta.

@timlinux timlinux self-assigned this Feb 18, 2016
@timlinux timlinux added this to the Version 3.3 milestone Feb 18, 2016
ismailsunni added a commit that referenced this pull request Feb 22, 2016
Generic Population Vector IF Improvements
Merging this now, @timlinux will address the reporting things after merging...
@ismailsunni ismailsunni merged commit 6c30014 into inasafe:develop Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants