How usepa/ord_water_source_2020 works
This repository documents and implements EPA’s 2020 estimates of domestic-well-supplied housing units, producing estimates at census block and block-group levels. The principal workflow is to process state well-log data and spatial classifications, estimate well counts, and publish the resulting dataset. Script names indicate distinct processing stages, but the excerpts do not show their calls or data transfers, so those links are dashed and unevidenced. The README confirms the product and downloadable output. The public application is an external viewing destination; its integration is documented, not implemented here.
Main entry points: Final_Classification.csv Final classifications · State_Well_Log_Cleaning State log cleaning · 01_disagg_and_crosswalk.R Disaggregate and crosswalk · 02_Decision_Tree.R Decision tree
Components 19
Data preparation
- State log cleaning
scripts/State_Well_Log_Cleaning - Disaggregate and crosswalk
scripts/01_disagg_and_crosswalk.R - Decision tree
scripts/02_Decision_Tree.R - Island reclassification
scripts/03_reclass_islands.R - Combine reclassification
scripts/04_A_combine_reclass.R - Missing-data reclassification
scripts/04_reclass_NA.R
Estimation
- Join wells to blocks
scripts/05_Join_Wells_2_Blocks.R - Well percentage model
scripts/06_Percent_Wells_Random_Forest.R - Block-group aggregation
scripts/07_aggregate_to_block_groups.R - Block-group conversion
scripts/Blocks_2_BlockGroups.R
Results and analysis
- Final classifications
outputs/Final_Classification.csv - Block estimates
outputs/Well_Estimates_2020_Blocks.csv - Estimate validation
Analysis/Validation.R - Well comparison
Analysis/Accurate_Well_Compare.R - Method 2 well counts
Method_2/Well_Counts.R
Supporting runtime
- Quarto page behavior
Method_2/workflow_files/libs/quarto-html/quarto.js - PDF text extraction
scripts/State_Well_Log_Cleaning/readPDF.py
Other components
- Researcher
- Public well application
Connections 15
- Researcher → State log cleaning: runs analysis
- State log cleaning → Disaggregate and crosswalk: prepares inputs
- Disaggregate and crosswalk → Decision tree: classifies inputs
- Decision tree → Island reclassification: reclassifies
- Island reclassification → Combine reclassification: combines classes
- Combine reclassification → Missing-data reclassification: handles missing data
- Missing-data reclassification → Join wells to blocks: joins counts
- Join wells to blocks → Well percentage model: estimates percentages
- Well percentage model → Block-group aggregation: aggregates estimates
- Block-group aggregation → Block-group conversion: converts geography
- Block-group conversion → Block estimates: produces estimates
- Block estimates → Final classifications: informs output
- Final classifications → Researcher: provides dataset
readme.md - Final classifications → Public well application: viewed in
readme.md - Method 2 well counts → Quarto page behavior: uses page behavior