Nelvinebi/Land-Use-Land-Cover-Change-Detection-Using-NDVI
GitHub: Nelvinebi/Land-Use-Land-Cover-Change-Detection-Using-NDVI
这是一个基于合成NDVI数据的土地利用土地覆盖变化检测Python原型项目,用于环境监测研究和教学演示。
Stars: 11 | Forks: 0
# 使用NDVI的土地利用土地覆盖变化检测
本项目展示如何利用**合成NDVI数据**进行**土地利用土地覆盖(LULC)变化检测**。脚本模拟两个时期的NDVI值,对土地覆盖类型进行分类,并检测**水域、城市、农业和森林**等类别的变化情况。
## 功能特点
- 生成**合成NDVI数据集**(超过100个点)
- 基于NDVI阈值进行土地覆盖分类
- 检测两个时期之间的土地利用和土地覆盖变化
- 可视化展示:
- 跨时间的NDVI分布
- 显示空间变化的散点图
- 将结果保存为**Excel数据集**
## 数据集说明
合成数据集包含:
- **X, Y**:空间坐标
- **NDVI_T1, NDVI_T2**:时间1和时间2的NDVI值
- **LandCover_T1, LandCover_T2**:分类后的土地覆盖类型
- **Change**:时间1至时间2期间土地覆盖是否发生变化
数据集示例:
| X | Y | NDVI_T1 | NDVI_T2 | LandCover_T1 | LandCover_T2 | Change |
|---------|---------|---------|---------|--------------|--------------|----------|
| 37.45 | 95.07 | 0.68 | 0.72 | Forest | Forest | No Change |
| 73.20 | 59.87 | 0.05 | 0.15 | Water | Urban | Changed |
数据集将自动保存为:
synthetic_land_use_land_cover_ndvi.xlsx
bash
复制
编辑
## 安装说明
克隆仓库并安装依赖项:
```
git clone https://github.com/your-username/Land-Use-Land-Cover-Change-Detection-Using-NDVI.git
cd Land-Use-Land-Cover-Change-Detection-Using-NDVI
pip install -r requirements.txt
Requirements
Python 3.8+
pandas
numpy
matplotlib
seaborn
openpyxl
You can install them with:
bash
Copy
Edit
pip install pandas numpy matplotlib seaborn openpyxl
Usage
Run the script:
bash
Copy
Edit
python land_use_land_cover_change_detection.py
This will:
Generate synthetic NDVI data.
Classify land cover.
Detect land-use changes.
Save the dataset to Excel.
Display visualizations of NDVI and spatial changes.
Visualizations
NDVI Distribution Over Time
Spatial Change Detection Scatter Plot
Applications
This project is useful for:
Demonstrating NDVI-based LULC change detection workflows.
Teaching and research in remote sensing and GIS.
Prototype for environmental monitoring applications.
Author
Name: Agbozu Ebingiye Nelvin
GitHub: https://github.com/Nelvinebi/
Email: nelvinebingiye@gmail.com
LinkedIn: *https://www.linkedin.com/in/agbozu-ebi/
⭐ If you found this useful, consider giving the repo a star!
```
标签:Excel处理, matplotlib, Mutation, NDVI分析, numpy, openpyxl, pandas, Python, seaborn, 分类, 变化检测, 可视化, 土地利用, 土地覆盖, 地理信息系统, 地理数据分析, 数据导出, 数据模拟, 数据生成, 无后门, 时间序列分析, 环境监测, 生态保护, 空间分析, 逆向工具, 遥感