{"action":"opened","issue":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/3193","repository_url":"https://api.github.com/repos/inasafe/inasafe","labels_url":"https://api.github.com/repos/inasafe/inasafe/issues/3193/labels{/name}","comments_url":"https://api.github.com/repos/inasafe/inasafe/issues/3193/comments","events_url":"https://api.github.com/repos/inasafe/inasafe/issues/3193/events","html_url":"https://github.com/inasafe/inasafe/issues/3193","id":174545175,"number":3193,"title":"Create Age Post Processor for New Impact Function","user":{"login":"ismailsunni","id":1421861,"avatar_url":"https://avatars.githubusercontent.com/u/1421861?v=3","gravatar_id":"","url":"https://api.github.com/users/ismailsunni","html_url":"https://github.com/ismailsunni","followers_url":"https://api.github.com/users/ismailsunni/followers","following_url":"https://api.github.com/users/ismailsunni/following{/other_user}","gists_url":"https://api.github.com/users/ismailsunni/gists{/gist_id}","starred_url":"https://api.github.com/users/ismailsunni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismailsunni/subscriptions","organizations_url":"https://api.github.com/users/ismailsunni/orgs","repos_url":"https://api.github.com/users/ismailsunni/repos","events_url":"https://api.github.com/users/ismailsunni/events{/privacy}","received_events_url":"https://api.github.com/users/ismailsunni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/inasafe/inasafe/milestones/36","html_url":"https://github.com/inasafe/inasafe/milestones/Version%204.0","labels_url":"https://api.github.com/repos/inasafe/inasafe/milestones/36/labels","id":1512191,"number":36,"title":"Version 4.0","description":"01 October 2016 = Freeze\r\n\r\n14 October 2016 = Release\r\n\r\n[Scrum board](https://waffle.io/inasafe/inasafe?milestone=Version%203.6)\r\n- [ ] Implement 7 IF base classes and stop using interpolation and old style IF's.\r\n- [ ] People in buildings - remain experimental until further notice - feedback from GA\r\n- [ ] Wizard review of text and words - Libby / Etienne https://github.com/inasafe/inasafe/issues/2674 \r\n- [ ] Move PDF generation to IF https://github.com/inasafe/inasafe/issues/2670  - Rizky\r\n- [ ] Export map data to InaWARE -Rizky\r\n- [ ] Interoperability with PetaJakarta, InaWARE, JakSAFE (integration when available)?\r\n- [ ] Investigate deprecation of safe_layer, Raster and Vector Layer class -https://github.com/inasafe/inasafe/issues/2672 -  Ismail https://github.com/inasafe/inasafe/issues/2672 \r\n- [ ] IF Writing tutorial - WB Funded do\r\n- [ ] Post-processors integrated into IF's - shallow integration - call from IF - Etienne\r\n- [ ] Flood evacuation - hive out as a separate plugin - DMI to review - discuss with BPBD DKI\r\n\r\n**New features etc:**\r\n\r\n- [ ] User input to action lists (user can select which types of actions should be used when calculating impact report)\r\n- [ ] Capacity and vulnerability attributes\r\n- [ ] Damage and loss calcs","creator":{"login":"timlinux","id":178003,"avatar_url":"https://avatars.githubusercontent.com/u/178003?v=3","gravatar_id":"","url":"https://api.github.com/users/timlinux","html_url":"https://github.com/timlinux","followers_url":"https://api.github.com/users/timlinux/followers","following_url":"https://api.github.com/users/timlinux/following{/other_user}","gists_url":"https://api.github.com/users/timlinux/gists{/gist_id}","starred_url":"https://api.github.com/users/timlinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timlinux/subscriptions","organizations_url":"https://api.github.com/users/timlinux/orgs","repos_url":"https://api.github.com/users/timlinux/repos","events_url":"https://api.github.com/users/timlinux/events{/privacy}","received_events_url":"https://api.github.com/users/timlinux/received_events","type":"User","site_admin":false},"open_issues":113,"closed_issues":3,"state":"open","created_at":"2016-01-18T10:25:25Z","updated_at":"2016-09-01T14:54:54Z","due_on":"2016-10-14T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-09-01T14:54:54Z","updated_at":"2016-09-01T14:54:54Z","closed_at":null,"body":"### Problem\r\nWe need a age post processor for impact layer in the new impact function. Steps:\r\n\r\n1. Check if the impact layer has `population` field to do the age post processor\r\n2. Get `population` field from the impact layer by using the keyword\r\n3. For each age (young, adult, elderly), create new field to put the total number of each age category\r\n4. Get the ratio from the aggregation layer's attribute for each aggregation polygon. We get the field name from the aggregation layer's keyword. We assume aggregation layer has those ratio, because we already prepare it.\r\n5. Calculate the total population for each age and put the number on the field in step 3.\r\n\r\nSee image below:\r\n<img width=\"1077\" alt=\"screen shot 2016-09-01 at 21 53 42\" src=\"https://cloud.githubusercontent.com/assets/1421861/18172186/af26ab60-708e-11e6-8787-f74b69357130.png\">\r\n\r\n\r\n### Expected Behaviour\r\n\r\n### Environment\r\n* InaSAFE : \r\n* QGIS : \r\n* OS : \r\n* Data used :\r\n  * Exposure : \r\n  * Hazard : \r\n  * Aggregation :\r\n\r\n### Proposed Solution\r\n"}}
{"actor":{"display_login":"ismailsunni"}}