# ravithapaliya/ravi-lidar-project architecture

> Architecture diagram of the GitHub repository ravithapaliya/ravi-lidar-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ravithapaliya/ravi-lidar-project
- Repository: https://github.com/ravithapaliya/ravi-lidar-project

## Overview

This repository is a research GIS workflow for measuring tree canopy, building heights, and neighborhood-scale 3D vegetation structure across five LiDAR years, then analyzing spatial and thermal relationships. Its main path runs from LiDAR processing to neighborhood summaries and research outputs; several scripts appear to be independently run rather than a single orchestrated application. No README was provided, and sampled excerpts show only parts of the processing, so uncertain handoffs are marked dashed and uncited.

Main entry points: [`PHDResearchfolder/Neighborhood_3D_Summaries`](https://github.com/ravithapaliya/ravi-lidar-project/tree/main/PHDResearchfolder/Neighborhood_3D_Summaries) (Yearly 3D summaries), [`PHDResearchfolder/generate_final_rq_figures.py`](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_final_rq_figures.py) (Research question figures), [`2002_process_qol_npa_building_height_min10ft.py`](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_process_qol_npa_building_height_min10ft.py) (NPA building heights), [`clean_bhm_finalest2002_all_tiles.py`](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/clean_bhm_finalest2002_all_tiles.py) (Clean building heights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lidar["LiDAR processing"]
  node_bhm_clean["Clean building heights"]
  node_chm_clean["Clean canopy heights"]
  node_bhm_surface["Build height surfaces"]
  node_bhm_year_scripts["Yearly BHM processing"]
end

subgraph group_neighborhood["Neighborhood metrics"]
  node_bhm_neighborhood["NPA building heights"]
  node_structure_3d["3D vegetation metrics"]
  node_structure_aggregate["Aggregate yearly metrics"]
  node_lst_extract["Neighborhood LST"]
  node_cohort["2002 tree cohort"]
  node_zero_fix["Repair height summaries"]
  node_summary_csv[("Yearly 3D summaries")]
  node_npa_year_scripts["Yearly NPA processing"]
end

subgraph group_analysis["Research analysis"]
  node_horizontal_model["Horizontal drivers"]
  node_thermal_model["Thermal impacts"]
  node_vertical_model["Vertical drivers"]
end

subgraph group_outputs["Research outputs"]
  node_diverse_figures["Structural figures"]
  node_rq_figures["Research question figures"]
  node_spatial_maps["Spatial maps"]
  node_gis_export["GIS master export"]
end

node_researcher(("Researcher"))
node_lidar_inputs[("LiDAR datasets")]

node_researcher -.->|"runs"| node_bhm_clean
node_researcher -.->|"runs"| node_structure_3d
node_lidar_inputs -.->|"reads points"| node_structure_3d
node_lidar_inputs -.->|"provides tiles"| node_bhm_clean
node_bhm_clean -.->|"feeds surfaces"| node_bhm_surface
node_bhm_surface -.->|"provides height tiles"| node_bhm_neighborhood
node_structure_3d -.->|"writes metrics"| node_summary_csv
node_summary_csv -.->|"aggregates"| node_structure_aggregate
node_summary_csv -->|"loads metrics"| node_diverse_figures
node_summary_csv -->|"loads metrics"| node_rq_figures
node_bhm_neighborhood -->|"loads BHM summaries"| node_diverse_figures
node_chm_clean -.->|"loads CHM summaries"| node_diverse_figures
node_bhm_neighborhood -->|"loads BHM summaries"| node_rq_figures
node_chm_clean -.->|"loads CHM summaries"| node_rq_figures
node_lst_extract -->|"loads LST summaries"| node_rq_figures
node_researcher -.->|"runs"| node_horizontal_model
node_researcher -.->|"runs"| node_thermal_model
node_researcher -.->|"runs"| node_vertical_model
node_researcher -.->|"runs"| node_spatial_maps
node_researcher -.->|"runs"| node_gis_export
node_researcher -.->|"runs"| node_cohort
node_researcher -.->|"runs"| node_zero_fix

click node_bhm_clean "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/clean_bhm_finalest2002_all_tiles.py"
click node_chm_clean "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/clean_chm_finalest2012.py"
click node_bhm_surface "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_combine_chm_and_crowns_countywide.py"
click node_bhm_neighborhood "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_process_qol_npa_building_height_min10ft.py"
click node_structure_3d "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/extract_3d_vertical_structure.py"
click node_structure_aggregate "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/aggregate_3d_metrics_all_years.py"
click node_lst_extract "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/extract_neighborhood_lst.py"
click node_cohort "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/extract_master_cohort_2002.py"
click node_zero_fix "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/fix_zero_building_height_summary_all_years.py"
click node_horizontal_model "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_horizontal_drivers.py"
click node_thermal_model "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_thermal_impacts.py"
click node_vertical_model "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_vertical_drivers_xgboost_real_data.py"
click node_diverse_figures "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_diverse_structural_figures.py"
click node_rq_figures "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_final_rq_figures.py"
click node_spatial_maps "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_spatial_maps.py"
click node_gis_export "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/export_gis_master_file.py"
click node_summary_csv "https://github.com/ravithapaliya/ravi-lidar-project/tree/main/PHDResearchfolder/Neighborhood_3D_Summaries"
click node_bhm_year_scripts "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_combine_chm_and_crowns_countywide.py"
click node_npa_year_scripts "https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_process_qol_npa_building_height_min10ft.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bhm_clean,node_chm_clean,node_bhm_surface,node_bhm_year_scripts toneBlue
class node_bhm_neighborhood,node_structure_3d,node_structure_aggregate,node_lst_extract,node_cohort,node_zero_fix,node_summary_csv,node_npa_year_scripts,node_lidar_inputs toneAmber
class node_horizontal_model,node_thermal_model,node_vertical_model toneMint
class node_diverse_figures,node_rq_figures,node_spatial_maps,node_gis_export toneRose
class node_researcher toneIndigo
```

## Components

### LiDAR processing

- [Clean building heights](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/clean_bhm_finalest2002_all_tiles.py): `clean_bhm_finalest2002_all_tiles.py`
- [Clean canopy heights](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/clean_chm_finalest2012.py): `clean_chm_finalest2012.py`
- [Build height surfaces](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_combine_chm_and_crowns_countywide.py): `2002_combine_chm_and_crowns_countywide.py`
- [Yearly BHM processing](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_combine_chm_and_crowns_countywide.py): `2002_combine_chm_and_crowns_countywide.py`

### Neighborhood metrics

- [NPA building heights](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_process_qol_npa_building_height_min10ft.py): `2002_process_qol_npa_building_height_min10ft.py`
- [3D vegetation metrics](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/extract_3d_vertical_structure.py): `PHDResearchfolder/extract_3d_vertical_structure.py`
- [Aggregate yearly metrics](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/aggregate_3d_metrics_all_years.py): `PHDResearchfolder/aggregate_3d_metrics_all_years.py`
- [Neighborhood LST](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/extract_neighborhood_lst.py): `PHDResearchfolder/extract_neighborhood_lst.py`
- [2002 tree cohort](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/extract_master_cohort_2002.py): `extract_master_cohort_2002.py`
- [Repair height summaries](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/fix_zero_building_height_summary_all_years.py): `fix_zero_building_height_summary_all_years.py`
- [Yearly 3D summaries](https://github.com/ravithapaliya/ravi-lidar-project/tree/main/PHDResearchfolder/Neighborhood_3D_Summaries): `PHDResearchfolder/Neighborhood_3D_Summaries`
- [Yearly NPA processing](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/2002_process_qol_npa_building_height_min10ft.py): `2002_process_qol_npa_building_height_min10ft.py`

### Research analysis

- [Horizontal drivers](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_horizontal_drivers.py): `PHDResearchfolder/model_horizontal_drivers.py`
- [Thermal impacts](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_thermal_impacts.py): `PHDResearchfolder/model_thermal_impacts.py`
- [Vertical drivers](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/model_vertical_drivers_xgboost_real_data.py): `PHDResearchfolder/model_vertical_drivers_xgboost_real_data.py`

### Research outputs

- [Structural figures](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_diverse_structural_figures.py): `PHDResearchfolder/generate_diverse_structural_figures.py`
- [Research question figures](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_final_rq_figures.py): `PHDResearchfolder/generate_final_rq_figures.py`
- [Spatial maps](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/generate_spatial_maps.py): `PHDResearchfolder/generate_spatial_maps.py`
- [GIS master export](https://github.com/ravithapaliya/ravi-lidar-project/blob/main/PHDResearchfolder/export_gis_master_file.py): `PHDResearchfolder/export_gis_master_file.py`

### Other components

- **Researcher**
- **LiDAR datasets**

## Connections

- Researcher → Clean building heights: runs
- Researcher → 3D vegetation metrics: runs
- LiDAR datasets → 3D vegetation metrics: reads points
- LiDAR datasets → Clean building heights: provides tiles
- Clean building heights → Build height surfaces: feeds surfaces
- Build height surfaces → NPA building heights: provides height tiles
- 3D vegetation metrics → Yearly 3D summaries: writes metrics
- Yearly 3D summaries → Aggregate yearly metrics: aggregates
- Yearly 3D summaries → Structural figures: loads metrics (evidence: `PHDResearchfolder/generate_diverse_structural_figures.py`)
- Yearly 3D summaries → Research question figures: loads metrics (evidence: `PHDResearchfolder/generate_final_rq_figures.py`)
- NPA building heights → Structural figures: loads BHM summaries (evidence: `PHDResearchfolder/generate_diverse_structural_figures.py`)
- Clean canopy heights → Structural figures: loads CHM summaries
- NPA building heights → Research question figures: loads BHM summaries (evidence: `PHDResearchfolder/generate_final_rq_figures.py`)
- Clean canopy heights → Research question figures: loads CHM summaries
- Neighborhood LST → Research question figures: loads LST summaries (evidence: `PHDResearchfolder/generate_final_rq_figures.py`)
- Researcher → Horizontal drivers: runs
- Researcher → Thermal impacts: runs
- Researcher → Vertical drivers: runs
- Researcher → Spatial maps: runs
- Researcher → GIS master export: runs
- Researcher → 2002 tree cohort: runs
- Researcher → Repair height summaries: runs
