-
Notifications
You must be signed in to change notification settings - Fork 1
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
RFC: InaSAFE Keyword Creation Wizard #3
Comments
Hi @ekaakurniawan , I just finished the RFC of InaSAFE Keyword Creation Wizard. This steps is pre-definition before DaLA calculation conducted. Hi @jj0hns0n , Kindly to put some comments and suggestion on this RFC. |
Hi @ismailsunni , |
hi @mf4dl1 It seems the part that you want to enhance is https://github.com/AIFDR/inasafe/blob/develop/safe/gui/tools/wizard_dialog.py and the metadata of the impact function that you want to add. I recommend you to switch to the latest version of InaSAFE (in develop now, will be released as 3.2 in the end of this July). Some changes are made in this wizard and the metadata things. We introduce many things related to metadata and wizard., it's up to you if you want to stay with 3.1 For step to choose DaLA classes in hazard layer, you just need to add the definition of DaLa classess in safe/definiitons.py and add it to the metadata in you Impact Function. InaSAFE will automatically add it to the wizard. For the exposure layer, choosing For aggregation layer, you need to add new steps in the keyword wizard. Updating the wizard will be little complex, since it's a very long class. And it's easy to break the wizard, especially if we set the wrong wizard's step. You can run the test if you want to see if you break something or not. Although, there are some possibility that there is a case that is not covered by tests. |
Dear @ismailsunni , Thanx for the quick response of these. Tomorrow we will discuss this with @ekaakurniawan , @fariskhi and @jj0hns0n . You are welcome if you want to join us at 9.00am (14/07/2015). Dear @ekaakurniawan , Please have a look at the code what @ismailsunni 's suggestion. Do not hesitate to throw some question in this RFC if there's something that not clear. |
Status
This RFC is in draft
Problem
Before DaLA calculation conducted, we need to setup several input file using InaSAFE Keyword Creation Wizard feature that already exist in the latest version of InaSAFE. This RFC define how InaSAFE Keyword Creation Wizard should be enhanced.
User Interface
Hazard
After user succeed download the Hazard layer using Flood Hazard Compiler, Pick Hazard Layer in canvas,
and then choose InaSAFE Keyword Creation Wizard button at Plugin > InaSAFE > InaSAFE Keyword Creation Wizard
choose hazard,
choose flood,
choose DaLA classes,
pick attribute that consist of DaLA class information (see Flow Process). Example below using "KELAS" attribute.
Set Metadata,
then put a title,
InaSAFE will create the following keyword file, in the same folder with the physical hazard file.
content of the file is:
Exposure
Pick layer in canvas which consider as an Exposure,
Click InaSAFE Keyword Creation Wizard button at Plugin > InaSAFE > InaSAFE Keyword Creation Wizard and then choose exposure
pick unit asset,
Select the attribute that represents Sector, Sub-Sector, Asset and Coefficient,
select damage matrix, loss matrix and asset impact tables in the csv format, these files will be used as lookup matrix related to exposure information.
Set Metadata,
then put a title,
InaSAFE will create the following keyword file, in the same folder with the physical exposure file.
content of the file is:
Aggregate
Pick layer in canvas which is consider as an Aggregate,
Click InaSAFE Keyword Creation Wizard button at Plugin > InaSAFE > InaSAFE Keyword Creation Wizard and then choose aggregation
Choose DaLA aggregation. DaLA aggregation means an aggregation layer will be used as a reference for aggregated information. For example: population aggregated by City, insurance penetration ratio, aggregated asset information, etc.
Select the attribute in this layer that represents hierarchy level of the aggregation area.
define the following matrix aggregated assumptions:
Set Metadata and then put a title,
InaSAFE will create the following keyword file, in the same folder with the aggregation file.
Content example:
Data
Hazard layer
Hazard layer (in the form of shapefile) is generated by Flood Hazard Compiler process consists of polygon of flood hazard in the level of RW or RT.
The type of attribute are:
CLASS attribute (can be change to any label such as: KELAS, CATEGORY, etc.) define following flood category:
Exposure layer
Type: ESRI Shapefile
Example of the polygon form:
Exposure layer is an exposure polygon data that consist of the following mandatory attributes:
Damage Matrix
Type: CSV Comma Delimited
Data Definition Language:
Example data:
Loss Matrix
similar with Damage Matrix.
Asset Impact Matrix
Type: Textfile
Example data:
Example above means Pasar Tradisional also affected damage and loss of Usaha Mikro and Usaha Kecil assets. The relation (logic calculation) between those assets will be define in separate RFC.
Insurance Assumption Matrix
Type: Text File
This file consist of following insurance variable:
Example file:
Insurance Penetration Matrix
This file consist of insurance penetration index each aggregate level.
Example file:
The text was updated successfully, but these errors were encountered: