This repository presents a workflow to create estimates of the US population living in high flood hazard areas using classified building footprints and 2020 decennial Census data with confidence intervals.
Files are within the code folder of this repository.
-
Download data
download_mbd.ipynb: Downloads Microsoft building footprints (US Release) by state to an Esri File Geodatabase.download_overture.ipynb: Uses DuckDB to download Overture building footprints by state to an Esri File Geodatabase.download_usa_structures.ipynb: Download FEMA's USA Structures database by state to an Esri File Geodatabase.download_nsi.ipynb: Download USACE's National Structure Inventory by state to an Esri File Geodatabase.download_nfhl.ipynb: Download FEMA regulatory floodplain for all US counties.get_nfhl_footprints.ipynb: Creates a national layer of FEMA study footprints.- There are other datasets that are not downloaded programattically. These include:
-
Classify Overture footprints and fill in any gaps
classify_overture.ipynb: Classifies Overture building footprints as "residential", "not residential", or "unclassified" using other sources. Adds any potentially missed buildings. Tags buildings if they intersect the FEMA Special Flood Hazard Area (SFHA), the estimated SFHA, or the footprint of a FEMA study.
-
Validate building footprint classifications and building counts
validate_res_or_not.ipynb: Classifies local parcel datasets and creates spatially joined feature classes for further analysis in R.building_classification_validation.R: Functions to re-create validation of building type ("residential" or "not residential") for Mecklenburg County, NC, Miami-Dade County, FL, and Sacramento, CA.
-
Estimate confidence intervals for Census data
census_error_estimate.ipynb: Follows methods from here to estimate confidence intervals of 2020 decennial census data
-
Create FloodPop
create_floodpop.R: Creates the tabular and geospatial files of FloodPop by merging the building footprint information with census data.
-
Create Figures and Tables
create_figures.R: Creates maps and tables for the corresponding manuscript.