inasafe/inasafe

View on GitHub
docs/reporting-standards.md

Summary

Maintainability
Test Coverage
# InaSAFE reporting standards

This document is based on discussions at #2920 and subsequent discussions. 
 Please only modify this document via pull requests so that we can discuss
 and approve changes to our standards before implementing them.

# Status of document

This document is currently in draft form. Some sections of this document are
ready for implementation. The status of these sections is as follows:

| Section | Status |
| ------------------------- | --------------------------- |
| General rules | draft |
| Map title | ready for implementation |
| Map legend | ready for implementation |
| Marginalia | ready for implementation |
| Analysis question | ready for implementation |
| General report | draft |
| Detailed report | draft |
| Minimum needs report | draft |
| Action checklist | ready for implementation |
| Notes and assumptions | ready for implementation |
| Analysis details | draft |
| Aggregation report | draft |
| Overall examples | draft |
| Other guidelines | ready for implementation |

## How this document is structured

We have broken up this document into sections based on the different reporting
 elements used on map reports, tabular reports, web outputs and so on. Please
 use screenshots and examples liberally so that the norms described here
 are accessible in both a textual and graphical form.

# General rules

* In line with InaSAFE's human interface guidelines, all titles should
  capitalise only the first letter of the first word in labels and titles.
* Titles, body text, table text, table text row heading and table text column
  headings for text content left aligned.
* Numbers and table text column headings for number content right aligned.

# Maps

## Map title

### Description:

The map title appears at the top of each map product and describes the map
 content. Every map should have a title. Using the table below as a reference,
 the title on maps for analyses supported by hazard specific impact functions
 should use the following syntax:

 <**exposure**> <**affected by**> <**hazard**> <**event/hazard**>

 The title on maps for analyses that are supported through generic impact
 functions should be shorter and use the following syntax:

 <**exposure**> affected

![image](https://cloud.githubusercontent.com/assets/16660099/17202979/c7f2533a-54c6-11e6-8f42-97c324f2ff58.png)

### Notes:

**Exposure** identifies which exposure element is present in the analysis
 area, that is subject to potential losses, is being focused on in this report.
 Examples of exposure elements include: people (population), buildings
 (building and infrastructure), roads, and land cover. **Affected by** is the
 influence or effect from an external factor, i.e. affected by a hazard. We
 use the word 'affected' as the default describer for all hazards. Words such
 as inundated, flooded, impacted should not be used. Please note that for
 Indonesian reports we use the word 'terdampak' even though it is not directly
 translated from 'affected'. **Hazard** is the type of hazard that has
 been chosen for analysis out of the hazards that are supported by InaSAFE.
 **Event/hazard** shows whether the analysis is from a single
 event (**event**) or multiple events (**hazard**).

### Examples of map titles:

**For flood event**:

- People affected by flood event
- Buildings affected by flood event
- Roads affected by flood event
- Land cover affected by flood event

**Indonesian example**: use the word terdampak and don't translate “affected”

- Orang terdampak kejadian banjir
- Bangunan terdampak kejadian banjir
- Jalan terdampak kejadian banjir
- Penutup lahan terdampak kejadian banjir

**For earthquake hazard**:

- People affected by earthquake hazard
- Buildings affected by earthquake hazard
- Roads affected by earthquake hazard
- Land cover affected by earthquake hazard

**Indonesian example**:

- Orang terdampak ancaman gempabumi
- Bangunan terdampak ancaman gempabumi
- Jalan terdampak ancaman gempabumi
- Penutup lahan terdampak ancaman gempabumi

**For generic event / hazard**:

- People affected 
- Buildings affected 
- Roads affected 
- Land cover affected

**Indonesian example**:

- Orang terdampak 
- Bangunan terdampak 
- Jalan terdampak 
- Penutup lahan terdampak

## Map legend

### Description

The map legend appears on each map product and identifies and  describes the
 impact layer. Every map should have a legend. Every legend  should have a
 title. Using the below table as a reference, the legend titles  should use
 the following syntax:

  <**exposure measure**> <**exposure**>

![image](https://cloud.githubusercontent.com/assets/16660099/17202993/efdb8cd6-54c6-11e6-9112-c96ce3652a57.png)

**Exposure measure**, refers to the way the exposure element is measured,
 i.e. length, area or number of. **Exposure**, is as described in the map
 title, i.e. the elements at risk. The label **affected** should not be
 included in the legend title as thresholds for the definition of affected
 vary from impact function to impact function.

### Examples of map legend titles

**For different exposures**: 
- Number of people 
- Number of buildings
- Length of roads
- Area of land cover

**Indonesian example**:
- Perkiraan jumlah penduduk 
- Perkiraan jumlah bangunan
- Perkiraan panjang jalan
- Perkiraan luas penutup lahan

The map legend is used to display the exposure elements in the impact
layer. The number of classes in the legend should reflect the number of
classes in the hazard data.  The colours in the legend should reflect the
severity of the hazard. The same colour should be used to represent high
hazard in all map legends regardless of whether there are two or five classes
in the legend.

The table below lists the colour definitions and the number of classes to be
used in map legends depending on the hazard / exposure combination. Note: The
number of classes may vary for different exposure types. e.g., there are only
two classes shown for population exposed to tsunami and flood hazard.

![image](https://cloud.githubusercontent.com/assets/5743135/17542495/6b968a16-5ef3-11e6-8622-af1cab2e0a5f.png)

The order of elements in the legend is from high to low; top to bottom. ie the
high hazard zone is above the medium hazard zone, above the low hazard zone.

Map legend classes will have labels. The label should complement the
legend title and should use the following syntax:

<**label**> <**threshold**> <**count**> <**unit**>

**Label**, refers to the class in the table above, i.e. affected, not affected,
high hazard zone etc. **threshold** is the dynamic value which defines the
class boundary i.e. the value of 0.7m for people affected by tsunami. **count**
is the number of exposure elements in each class. Counts will be included in the
legend label in brackets. These values will be rounded according to the legend
label rounding principles. In some cases count will
include a **unit**. The table below lists the units for each exposure type.

![image](https://cloud.githubusercontent.com/assets/5743135/17543942/5a0a51b4-5efe-11e6-98ca-112abb2403cd.png)

### Legend label rounding
* legend values are rounded to 1000 for values > 100 000
* legend values are rounded to 100 for values < 100 000
* legend values are rounded to 10 for values < 1000

### Examples of map legends

The **"People affected by tsunami event"** map legend might look like:

![image](https://cloud.githubusercontent.com/assets/5743135/22411312/11e08764-e6d5-11e6-8b4d-2c04bad8b067.png)

The **"People affected by volcanic ash event"** map legend might look like:

![image](https://cloud.githubusercontent.com/assets/5743135/22411319/2c0895c8-e6d5-11e6-8d33-0859f45ab779.png)

The **"Buildings affected by tsunami event"** map legend might look like:

![image](https://cloud.githubusercontent.com/assets/5743135/22411322/437501b0-e6d5-11e6-8aa0-0e39bc6ca2d8.png)

Note: the dry legend class is only used for building and road exposures  with
flood or tsunami hazards.

The **"Landcover affected by tsunami hazard"** map legend might look like:

![image](https://cloud.githubusercontent.com/assets/5743135/22411332/531b7266-e6d5-11e6-97db-291f24a827e7.png)

The **"Roads affected by tsunami hazard"** map legend might look like:

![image](https://cloud.githubusercontent.com/assets/5743135/22411335/5f33f780-e6d5-11e6-8b91-cbbd98dc39df.png)

Note: thresholds are not included in the legend label for multiple event hazard
 data.



## Marginalia

 _Analysis information:_

- **Analysis Information**: which impact function was used
- **Time**: time of analysis
- **Note**: recommendation to ground truth
- **Version**: version of InaSAFE used
- BNPB logo, Australian Government Crest, WB GFDRR logos

_Disclaimer_: InaSAFE has been jointly developed by the Indonesian
Government-BNPB, the Australian Government, the World Bank-GFDRR and
independent contributors. These agencies and the individual software
developers of InaSAFE take no responsibility for the correctness of outputs
from InaSAFE or decisions derived as a consequence.

# Reports (draft)

## Analysis question

### Description

The analysis question appears at the beginning of each report and identifies
 and describes the purpose of the analysis. Each report should have an analysis
 question. It should add more detail to the map title. The question  should
 reflect the terminology used in the title. Using the table below as a
 reference, the question on reports for analyses supported by hazard specific
 impact functions should use the following syntax:

 In the event of a <**hazard**>, <**exposure measure**> <**exposure**>
 might be affected?

![image](https://cloud.githubusercontent.com/assets/5743135/21974815/9f647e90-dbfb-11e6-99e7-54eb14d1fb86.png)

The question on reports for analyses that are supported through generic impact
functions should use the following syntax:

 In each of the hazard zones <**exposure measure**> <**exposure**> might be
 affected?

Questions should always have a question mark at the end of the sentence.

### Examples

- In the event of a flood, how many people might be affected?
- In the event of an earthquake, how much land cover might be affected?
- In each of the hazard zones how many buildings might be affected?
- In each of the hazard zones what length of road might be affected?

## General report

### Description

The general report gives a brief summary in table form of what the estimated
effect of the hazard will be. The general report is formatted as a table with a
title, column headings and row headings, and totals. The title should use the
following syntax:

Estimated <**exposure measure**><**exposure**>

The column headings should include units where necessary. The row headings
will include the same number of classes as described in the map legend with an
additional summary for affected and not affected where the legend has three or
more classes.

### Examples

![image](https://cloud.githubusercontent.com/assets/5743135/17547173/d881e334-5f0f-11e6-83e4-f8f3e0220a6b.png)

![image](https://cloud.githubusercontent.com/assets/5743135/17547217/20cf333a-5f10-11e6-924b-29e811320f8a.png)

![image](https://cloud.githubusercontent.com/assets/5743135/17547259/639ac102-5f10-11e6-9a8c-cfc7fdd049ce.png)

## Detailed report

The detailed report gives further detail on the estimated effect of the hazard,
broken down into characteristics, e.g. gender and age for population, type of
building for infrastructure. If the detail report includes hazard classes, they
should be ordered from highest to lowest, left to right. Totals should be shown
to the right of the table.

![image](https://cloud.githubusercontent.com/assets/16660099/17165692/739dd55e-53fc-11e6-82db-eede1413d6e4.png)

![image](https://cloud.githubusercontent.com/assets/5743135/21977488/ee135022-dc08-11e6-9061-5485ded20cb0.png)

![image](https://cloud.githubusercontent.com/assets/5743135/21977589/5dd5fe1e-dc09-11e6-899d-8988d462ad11.png)

## Aggregation report

The aggregation report gives further detail on the estimated effect of the
 hazard on the exposed element by aggregation areas, e.g. number of buildings
 by type and district for infrastructure, number of people by age and gender and
 district for population.

### Examples
![image](https://cloud.githubusercontent.com/assets/5743135/21977521/12ea0198-dc09-11e6-9d99-170f86f2e7ff.png)

![image](https://cloud.githubusercontent.com/assets/5743135/21977546/28a95c72-dc09-11e6-908e-3f2691786a1d.png)

## Minimum needs report

The minimum needs report gives information on the estimated amount of relief
 items to support the affected population. It should be broken up into relief
 items that will be provided once and relief items that are to provided weekly.

![image](https://cloud.githubusercontent.com/assets/16660099/17166008/86065ffc-53fe-11e6-841e-cea3b81803f6.png)

## Action checklist

### Description

Action checklists suitable for each hazard and exposure element should be
 included in this section. Each report should have an action checklist. These
 checklists include questions that should be asked in the event of a hazard
 occurring and should reflect the exposure element analysed and the results of
 the report. The checklist should be sorted in the following order: general
 questions, hazard and exposure specific questions, questions related to
 minimum needs (if applicable) and questions regarding coordinators and
 responders.

### Examples

- How will we reach displaced people?
- What kind of food does the population normally consume?
- What are the critical non-food items required by the affected population?

## Notes and assumptions

### Description

The notes and assumptions section identifies any notes or assumptions specific
 to the hazard, exposure and impact function used in this report. All reports
 should have a notes and assumptions section.

If the term 'affected' is used in the analysis, this section should be used
 to explain the definition of affected and not affected for this particular
 hazard and exposure by outlining the thresholds used in the analysis. This
 section also outlines the assumptions made during the analysis that users
 should take into account when interpreting the report.

If columns or rows are omitted due to zeros the following standard text should
 be included in the report:
_Columns and rows containing only 0 or 'no data' values are excluded from
 the tables._

The notes and assumptions should be sorted in the following order: information
 regarding exposure (e.g. total population or total number of buildings in
 area, evacuation thresholds, damage thresholds), information regarding hazard,
 source of minimum needs or other data (if applicable), information
 regarding the impact function, assumptions made in the analysis (e.g
 information on how 'no data' was handled) and information about what the
 report presents (e.g. what is done with rows or columns of zeros, rounding
 rules).

### Examples

 - Total population in the analysis area: 12,707,000
 - 'No data' values in the impact layer were treated as 0 when counting the
   affected or total population
 - Population rounding is applied to all population values, which may cause
   discrepancies when adding values.

## Analysis details

In the analysis details section details for each layer used in the analysis
 should be provided. This includes the layer name, its source and a link to the
 source if it is available.

**Hazard source**
 Layer name - sourced from x - <insert link here if suitable>

**Exposure source**
 Layer name - sourced from y - <insert link here suitable>

**Aggregation source**
 Layer name - sourced from z - <insert link here suitable>

**Impact Function**
 Impact Function name - published reference for this type of analysis

## Aggregation report

# Overall Examples

**Flood on buildings**
![image](https://cloud.githubusercontent.com/assets/5743135/21977957/0f2ce80c-dc0b-11e6-91fc-5df349485899.png)

**Tsunami on roads**
![image](https://cloud.githubusercontent.com/assets/5743135/21977856/a9a0f8de-dc0a-11e6-9859-81d2d792186f.png)

**Volcano on people**
![image](https://cloud.githubusercontent.com/assets/5743135/21977909/e27ce76c-dc0a-11e6-8e54-4ddcca65bf27.png)


# Other guidelines

[Human Interface Guidelines](https://github.com/inasafe/inasafe/wiki/human-interface-guidelines)

[Design](https://github.com/inasafe/inasafe-graphics/)

[Identity](https://github.com/inasafe/inasafe-graphics/blob/master/inasafe-visual-language-guide-updated.pdf)