Skip to content

madiej6/EarthquakeDamageModel

Repository files navigation

EarthquakeDamageModel

System Requirements:

  • ArcGIS Pro 2.7+
  • Windows 10

Data Downloads:

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

Building Centroids:

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)

Testing Mode:

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:

  1. Unzip the shape.zip files inside the ShakeMaps_Testing subdirectories.
  2. Change the function parameters in main.py "testing_mode" to be True.
  3. Update file paths in config.py and uncomment lines 20/21 of main.py (depending on which test to run)
  4. Follow the instructions below to set up the environment and run the program.

Instructions 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

Earthquake Model Methodology

For more information about model methodology, review this blog post on medium.

References:

Contact

Madeline Jones - @madiej6 - madelinejones214@gmail.com

About

Earthquake Damage Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages