ConverterΒΆ

Shakemaps are useful for carrying out contingency planning for the event of an earthquake. Normally these are distributed as grid.xml files which are not usable in InaSAFE or QGIS. This tool will import a grid.xml file as a GEOTIFF file from where it can be used within InaSAFE.

Two different interpolation algorithms can be used during the import process - Nearest Neighbour and Inverse Distance. After the conversion, the tool automatically creates InaSAFE keyword metadata for the layer so that it can be used immediately for analysis.

Converter

Converter

To use this tool effectively:

  • Select a grid.xml for the input layer.
  • Choose where to write the output layer to.
  • Choose the interpolation algorithm that should be used when converting the xml grid to a raster. If unsure keep the default.

You can obtain shake data for free from the USGS shakemap site.

If you download the grid file, you should right-click on it and choose Save as in order to ensure that it is saved properly. OSX and Linux users may also consider using command line tools to fetch the grid file:

OSX:

curl -O http://earthquake.usgs.gov/earthquakes/shakemap/global/shake/<shake id>/download/grid.xml

Linux:

wget -C http://earthquake.usgs.gov/earthquakes/shakemap/global/shake/<shake id>/download/grid.xml

Note

Replace the <shake id> in the commands above with the actual shake id.


Contact info@inasafe.org for more information. Source code available on GitHub! Please file a ticket if you have discovered an issue.
This document is licensed under a Creative Commons Attribution 3.0 Australia License.
CCByA, Copyright 2014, Indonesian Government-BNPB, Australian Government-AIFDR and the World Bank-GFDRR.