NOTE: Created in Python 3.
The average width of a river is crucial for calculating its discharge. But doing so for any point in time is difficult without chronological measurements, as temporal changes in river width are inevitable. Satellite imagery does a commendable job at preserving such historic data and our program utilizes the same to compute several physical features of interest, including the average river width.
./river-analysis-using-satellite-imagery
├── docs
│ └── Documentation.docx # Documentation for the algorithm
├── temp # To contain intermediate files generated during a run
│ └── ...
├── test_images # Contains sample images to test the code with
│ └── ...
├── README.md
├── __init__.py
├── junction.py
├── main.py # Script to run
├── output.txt
├── reach.py
├── river.py
├── scan.py
├── skeleton.py
└── stream.py
python main.py # Run the script using Python 3
- Name - Path to the river image.
- Scale - Actual size of land represented by one pixel in the image (set this to 1 for calculating the width in pixels).
- Interval Distance - Analysis is done in sections of equal length, this parameter is used to fix the length of each such section.
- Threshold - Refer to Documentation.docx for detailed information regarding this parameter (set this to 0 for auto-detection).
- Analysis results are dumped to output.txt.