How a7it/satellite-image-change-detection-for-sea-level-rising works
This repository builds coastal-change labels and a model-ready dataset from multi-year Landsat imagery. The principal workflow loads an area of interest, processes each year into a shoreline, compares successive shorelines, and saves transect-level change labels. A separate dataset-building workflow engineers spectral, location, temporal, spatial, cloud, and elevation features before preparing training data. The yearly orchestrator’s calls are excerpted; several implementation details, especially the dataset builder and individual change-analysis helpers, were not sampled, so their internal links are limited to documented or indexed evidence.
Main entry points: year_pipeline.py Annual workflow · build_dataset.py Dataset builder · year_dataset.py Year data model · main.py Run coordinator
Components 34
Workflow orchestration
- Run coordinator
main.py - Annual workflow
src/pipeline/year_pipeline.py - Change workflow
src/change_detection/change_processor.py - Dataset builder
src/dataset/build_dataset.py
Imagery processing
- Scene search
src/acquisition/searcher.py - Year directories
src/acquisition/download_manager.py - Scene download
src/acquisition/year_downloader.py - Asset retrieval
src/acquisition/scene_downloader.py - Scene preparation
src/preprocessing/processor.py - Annual composite
src/compositing/annual_composite.py - Spectral indices
src/indices/index_processor.py - Water masks
src/water/water_processor.py - Shoreline extraction
src/shoreline/shoreline_processor.py
Shoreline change
- Shoreline comparison
src/change_detection/comparison.py - Transect intersections
src/change_detection/intersection.py - Change metrics
src/change_detection/metrics.py - Change statistics
src/change_detection/statistics.py - Transect analysis
src/change_detection/transects.py
Dataset engineering
- Spectral features
src/dataset/add_satellite_features.py - Location features
src/dataset/create_location_features.py - Temporal features
src/dataset/add_temporal_features.py - Spatial features
src/dataset/add_spatial_features.py - Missing-value handling
src/dataset/handle_missing_values.py - Cloud features
src/dataset/add_cloud_features.py - Elevation features
src/dataset/add_dem_features.py - Training preparation
src/dataset/create_ml_training_dataset.py - ML data preparation
src/ml/prepare_data.py
Shared models and I/O
- Year data model
src/models/year_dataset.py - Scene model
src/models/scene.py - Raster output
src/io/raster_writer.py - Change result
src/models/change_detection_result.py
Other components
- Pipeline operator
- Study area
- Planetary Computer
Connections 42
- Pipeline operator → Run coordinator: runs
README.md - Run coordinator → Study area: loads
main.py - Run coordinator → Annual workflow: runs yearly
main.py - Run coordinator → Change workflow: processes periods
main.py - Run coordinator → Dataset builder: then runs
README.md - Annual workflow → Scene search: searches
src/pipeline/year_pipeline.py - Scene search → Planetary Computer: queries catalog
src/acquisition/searcher.py - Annual workflow → Year directories: prepares paths
src/pipeline/year_pipeline.py - Annual workflow → Scene download: downloads scenes
src/pipeline/year_pipeline.py - Scene download → Asset retrieval: uses
src/acquisition/year_downloader.py - Annual workflow → Scene preparation: preprocesses
src/pipeline/year_pipeline.py - Annual workflow → Annual composite: builds composite
src/pipeline/year_pipeline.py - Annual workflow → Spectral indices: calculates indices
src/pipeline/year_pipeline.py - Annual workflow → Water masks: extracts water
src/pipeline/year_pipeline.py - Annual workflow → Shoreline extraction: extracts shoreline
src/pipeline/year_pipeline.py - Annual workflow → Year data model: creates data
src/pipeline/year_pipeline.py - Year directories → Year data model: sets directories
src/acquisition/download_manager.py - Scene download → Year data model: updates scenes
src/acquisition/year_downloader.py - Scene search → Scene model: creates scenes
src/acquisition/searcher.py - Scene preparation → Scene model: processes
src/preprocessing/processor.py - Scene preparation → Raster output: writes bands
src/preprocessing/processor.py - Annual composite → Year data model: uses
src/compositing/annual_composite.py - Annual composite → Raster output: writes raster
src/compositing/annual_composite.py - Spectral indices → Year data model: uses
src/indices/index_processor.py - Water masks → Year data model: uses
src/water/water_processor.py - Water masks → Raster output: writes masks
src/water/water_processor.py - Shoreline extraction → Year data model: uses
src/shoreline/shoreline_processor.py - Change workflow → Shoreline comparison: compares
src/change_detection/change_processor.py - Change workflow → Change statistics: summarizes
src/change_detection/change_processor.py - Change workflow → Change result: returns result
src/change_detection/change_processor.py - Shoreline comparison → Transect intersections: computes
src/change_detection/comparison.py - Shoreline comparison → Change metrics: calculates
src/change_detection/comparison.py - Shoreline comparison → Transect analysis: uses
src/change_detection/comparison.py - Dataset builder → Spectral features: engineers
README.md - Dataset builder → Location features: engineers
README.md - Dataset builder → Temporal features: engineers
README.md - Dataset builder → Spatial features: engineers
README.md - Dataset builder → Missing-value handling: handles missing
README.md - Dataset builder → Cloud features: adds metadata
README.md - Dataset builder → Elevation features: adds elevation
README.md - Dataset builder → Training preparation: prepares training
README.md - Training preparation → ML data preparation: prepares data