- ArcGIS Pro 2.7+
- Windows 10
The following supplemental data sets will need to be downloaded and stored in the "EarthquakeModel\Data" folder with the following names:
Data Source | Link to Download | Geoprocessing Instructions | Name & Location in Data Folder |
---|---|---|---|
Esri/Census | link | Export layer "USA Counties (below 1:3m)" to shapefile | esri_2019_detailed_counties\2019detailedcounties.shp |
Census | link | Download and merge all into a single nationwide tracts shapefile | tl_2019_us_tracts\2019censustracts.shp |
In order to estimate the number of structures impacted, the user will need to have a local geodatabase
containing building centroids for each state. Some open and public data sets that could be used are
Microsoft Building Footprints,
OpenStreetMap or
ORNL USA Structures.
The building centroids are used to calculate the count of structures within each Census Tract.
The file path of this geodatabase will need to be updated in config.py
for the variable "BuildingCentroids".
(see image on right)
The model can be set up to run on a Task Scheduler and it will check for new earthquake events using the USGS ShakeMap API in order to estimate impacts in near-real time. The model can be run in testing mode to demonstrate what the model outputs should look like. To run the model in testing mode:
- Unzip the shape.zip files inside the ShakeMaps_Testing subdirectories.
- Change the function parameters in main.py "testing_mode" to be True.
- Update file paths in
config.py
and uncomment lines 20/21 ofmain.py
(depending on which test to run) - Follow the instructions below to set up the environment and run the program.
- Future versions of this code will be open source (non-arcpy dependent).
- For now, use this link for instructions to clone your ArcGIS Pro Python environment, and then install requirements.txt in the cloned environment.
- Then, in terminal run the following lines to kickoff the Earthquake Model:
conda activate <file path of cloned arcpro env with geopandas installed>
cd <file path of repo WorkingScripts folder ...\EarthquakeModel\WorkingScripts>
python main.py
For more information about model methodology, review this blog post on medium.
- Mike Hearne, USGS "get-event.py"
- OpenQuake Platform (for Hazus Damage Functions)
- Hazus Earthquake Technical Manual
Madeline Jones - @madiej6 - madelinejones214@gmail.com