Permalink
Browse files

update volcano impact functions

  • Loading branch information...
1 parent 5f73a0f commit 4a21d9ed99991bc2159dd50d8527ff7ed35accc0 @ismailsunni ismailsunni committed Mar 21, 2013
@@ -23,7 +23,7 @@ To assess the impacts of volcano eruption on building.
Provide details about how many building would likely be affected by each hazard zones.
**Hazard Input**:
-A hazard vector layer can be polygon or point. If polygon, it must have "KRB" attribute and the valuefor it are "Kawasan Rawan Bencana I", "Kawasan Rawan Bencana II", or "Kawasan Rawan Bencana III."
+A hazard vector layer can be polygon or point. If polygon, it must have "KRB" attribute and the valuefor it are "Kawasan Rawan Bencana I", "Kawasan Rawan Bencana II", or "Kawasan Rawan Bencana III." If youwant to see the name of the volcano in the result, you need to add "NAME" attribute for point data or "GUNUNG" attribute for polygon data.
**Exposure Input**:
Vector polygon layer extracted from OSM where each polygon represents the footprint of a building.
@@ -23,7 +23,7 @@ To assess the impacts of volcano eruption on population.
Provide details about how many population would likely be affected by each hazard zones.
**Hazard Input**:
-A hazard vector layer can be polygon or point. If polygon, it must have "KRB" attribute and the valuefor it are "Kawasan Rawan Bencana I", "Kawasan Rawan Bencana II", or "Kawasan Rawan Bencana III."
+A hazard vector layer can be polygon or point. If polygon, it must have "KRB" attribute and the valuefor it are "Kawasan Rawan Bencana I", "Kawasan Rawan Bencana II", or "Kawasan Rawan Bencana III."If youwant to see the name of the volcano in the result, you need to add "NAME" attribute for point data or "GUNUNG" attribute for polygon data.
**Exposure Input**:
An exposure raster layer where each cell represent population count.
@@ -37,7 +37,10 @@ class VolcanoBuildingImpact(FunctionProvider):
hazard_input = tr('A hazard vector layer can be polygon or point. '
'If polygon, it must have "KRB" attribute and the value'
'for it are "Kawasan Rawan Bencana I", "Kawasan Rawan '
- 'Bencana II", or "Kawasan Rawan Bencana III."')
+ 'Bencana II", or "Kawasan Rawan Bencana III." If you'
+ 'want to see the name of the volcano in the result, '
+ 'you need to add "NAME" attribute for point data or '
+ '"GUNUNG" attribute for polygon data.')
exposure_input = tr('Vector polygon layer extracted from OSM '
'where each polygon represents the footprint of '
'a building.')
@@ -52,8 +55,9 @@ def run(self, layers):
Input
layers: List of layers expected to contain
- H: Hazard layer of volcano
- P: Vector layer of structure data on the same grid as H
+ my_hazard: Hazard layer of volcano
+ my_exposure: Vector layer of structure data on
+ the same grid as my_hazard
Counts number of building exposed to each volcano hazard zones.
@@ -100,7 +104,6 @@ def run(self, layers):
category_title = 'Radius'
my_hazard = Z
- #category_names = ['%s m' % x for x in radii]
category_names = rad_m
name_attribute = 'NAME' # As in e.g. the Smithsonian dataset
else:
@@ -35,7 +35,10 @@ class VolcanoPolygonHazardPopulation(FunctionProvider):
hazard_input = tr('A hazard vector layer can be polygon or point. '
'If polygon, it must have "KRB" attribute and the value'
'for it are "Kawasan Rawan Bencana I", "Kawasan Rawan '
- 'Bencana II", or "Kawasan Rawan Bencana III."')
+ 'Bencana II", or "Kawasan Rawan Bencana III."If you'
+ 'want to see the name of the volcano in the result, '
+ 'you need to add "NAME" attribute for point data or '
+ '"GUNUNG" attribute for polygon data.')
exposure_input = tr('An exposure raster layer where each '
'cell represent population count.')
output = tr('Vector layer contains population affected and the minimum'

0 comments on commit 4a21d9e

Please sign in to comment.