We produce monthly surface water maps in Tibet plateau in 2020 by using deep learning method and Sentinel-1 image.
- We proposed a new gated multiscale ConvNet (GMNet) for surface water mapping based on Sentinel-1 image.
- The monthly surface water dynamics are captured by using the new proposed GMNet.
Study area |
Sentinel-1 imagery |
---|---|
- Monthly surface water maps
- Monthly surface water trend
-
Enter the following commands for downloading the code files, and then configure the python and deep learning environment. The deep learning software used in this repo is Pytorch.
git clone https://github.com/xinluo2018/Tibet-Water-2020.git
- Download Sentinel-1 images, acending image only, descending image only, or both the ascending and descending images. if both the ascending and descending images are used for surface water mapping, the ascending and descending images should be croped to the same size.
- Add the prepared sentinel-1 image to the data/test-demo directory, modify the data name in the notebooks/infer_demo.ipynb file, then running the code file: notebooks/infer_demo.ipynb and surface water map can be generated. The users can run the notebooks/infer_demo.ipynb without any modification to learn the surface water mapping processing.
- Users also can specify surface water mapping by using the gmnet_infer.py, specifically,
- --- funtional API (notebook/infer_demo.ipynb):
from scripts.gmnet_infer import gmnet_infer wat_pred_as = gmnet_infer(s1_as, path_model_as_w, orbit='as') ### using s1 ascending image only wat_pred_des = gmnet_infer(s1_des, path_model_des_w, orbit='des') ### using s1 descending image only wat_pred = gmnet_infer(s1_stacked, path_model_w, orbit='as_des') ### using both ascending and descending images
- --- command line API (scripts/infer_demo.sh):
### using s1 ascending image only python scripts/gmnet_infer.py -m path/of/model_as -img path/of/s1as -orbit as -o path/of/output_dir -s 1 ### using s1 descending image only python scripts/gmnet_infer.py -m path/of/model_des -img path/of/s1des -orbit des -o path/of/output_dir -s 1 ### using both ascending and descending images python scripts/gmnet_infer.py -m path/of/model_des -img path/of/s1_stacked -orbit as_des -o path/of/output_dir -s 1
- Xin Luo, Zhongwen Hu, Lin Liu. Investigating the seasonal dynamics of surface water over the Qinghai–Tibet Plateau using Sentinel-1 imagery and a novel gated multiscale ConvNet[J]. International Journal of Digital Earth, 2023, 16(1): 1373-1395. [Link]
- We thanks the authors for providing some of the code in this repo: HRNet