USGS PAGER loss modeling functionality
Project description
Table of Contents
- Table of Contents
- Introduction
- Installation
- Upgrading
- Required data
- Configuration (for calc_pager_event API usage and command line usage)
- Command Line Usage
- Library Usage
Introduction
This library of tools forms the modeling core of the Prompt Assessment for Global Earthquake Response (PAGER) system, which provides fatality and economic loss impact estimates following significant earthquakes worldwide. The models implemented here are based on work described in the following papers:
Jaiswal, K. S., and Wald, D. J. (2010). An Empirical Model for Global Earthquake Fatality Estimation. Earthquake Spectra, 26, No. 4, 1017-1037
Jaiswal, K. S., and Wald, D. J. (2011). Rapid estimation of the economic consequences of global earthquakes. U.S. Geological Survey Open-File Report 2011-1116, 47p.
Jaiswal, K. S., Wald, D. J., and D’Ayala, D. (2011). Developing Empirical Collapse Fragility Functions for Global Building Types. Earthquake Spectra, 27, No. 3, 775-795
The software here can be used for other applications, although it is important to note that the empirical loss models have not been calibrated with events newer than 2010, and the semi-empirical fatality model results are less accurate than the empirical equivalent.
Installation
pip install esi-utils-pager
Upgrading
pip install --upgrade esi-utils-pager
Required data
A number of data files external to the repository are required for usage:
- Population grid, which can be obtained from Oakridge National Labs Landscan project
- Country code grid, which can be obtained upon request from the PAGER team.
- Urban/rural code grid, obtained from the Socioeconomic Data and Applications Center (SEDAC)
Configuration (for calc_pager_event API usage and command line usage)
To run the pagerlite
program (see below), you must first create a .losspager/config.yml
file in your home directory.
You can make the .losspager directory using this command (on Linux and Mac platforms):
mkdir ~/.losspager
You may then create the config.yml file in that directory using your text editor of choice. This file should look like the following:
#############Minimum PAGER configuration################
#This is where output data goes
output_folder: /data/pagerdata/output/
#Anything not already captured by PAGER event logs will be written here
log_folder: /data/pagerdata/logs
#This section describes all the data needed to run models and make maps
model_data:
timezones_file: /data/pagerdata/model_data/combined_shapefile.shp
country_grid: /data/pagerdata/model_data/countriesISO_Aug2022_withbuffer.tif
population_data:
- {population_grid: /data/pagerdata/model_data/population/lspop2018.flt, population_year: 2018}
urban_rural_grid: /data/pagerdata/model_data/glurextents.bil
Command Line Usage
The command line program made available by this repository is pagerlite
. This program outputs detailed empirical
(fatality/economic) PAGER model results to a tabular format. To see the help for this program:
pagerlite -h
Library Usage
Usage of the relevant code modules is detailed in the Jupyter notebooks, most notably in the Earthquake Losses notebook
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for esi_utils_pager-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03d4367c98ebdb65876d393d1d3f21c46bdd39711d09ab1ee72c0d2b32b09c2e |
|
MD5 | d34b213509b749444f9d47ece7a820fa |
|
BLAKE2b-256 | b4b094fbdd98656f2012415366ea691b7630b3159982e36dcc534cd00fa03859 |