FLOODPY
A free and open-source python toolbox for mapping of floodwater.
https://github.com/kleok/FLOODPY
Category: Climate Change
Sub Category: Natural Hazard and Storm
Keywords
flood flood-monitoring floods python remote-sensing sentinel-1 surface-water synthetic-aperture-radar
Last synced: about 19 hours ago
JSON representation
Repository metadata
Flood Python Toolbox
- Host: GitHub
- URL: https://github.com/kleok/FLOODPY
- Owner: kleok
- License: other
- Created: 2021-06-21T16:42:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T21:06:07.000Z (6 months ago)
- Last Synced: 2025-04-25T13:47:49.670Z (3 days ago)
- Topics: flood, flood-monitoring, floods, python, remote-sensing, sentinel-1, surface-water, synthetic-aperture-radar
- Language: Jupyter Notebook
- Homepage: https://floodpy.readthedocs.io/en/latest/
- Size: 287 MB
- Stars: 179
- Watchers: 8
- Forks: 33
- Open Issues: 1
- Releases: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
FLOODPY - FLOOD PYthon toolbox
Introduction
The Flood mapping python toolbox (Floodpy) is a free and open-source python toolbox for mapping the non-urban flooded regions. It exploits the dense Sentinel-1 GRD intensity time series using a statistical or a ViT (Visual Transfomer) approach. Before running Floodpy make use you know the following information of the flood event of your interest
- Date and time of the flood event
- Spatial information (e.g. min,max latitude and min,max longitude) of the flood event
This is research code provided to you "as is" with NO WARRANTIES OF CORRECTNESS. Use at your own risk.
1. Installation
The installation notes below are tested only on Linux.
Recommended setup: Python 3.9+, SNAP 9.0+
1.1 Install snap gpt including Sentinel-1 toolbox
Please download ESA-SNAP (All Toolboxes) from here and install it using the following commands:
chmod +x esa-snap_all_linux-10.0.0.sh
./esa-snap_all_linux-10.0.0.sh
1.2 Account setup for downloading Sentinel-1 acquisitions
Even though we offer credentials (for demonstration reasons), we encourage you
to create your own account in order to not encounter any problems due to
traffic.
- Please create an account at: Copernicus-DataSpace.
1.3 Account setup for downloading global atmospheric model data
FloodPy can download meteorological data from based on ERA-5 data.
You have to create a new account here if you don't own a user account yet.
After the creation of your profile, you will find your Personal Access Token on your User profile page.
Create manually a .cdsapirc
file under your HOME
directory with the following information:
url: https://cds.climate.copernicus.eu/api
key: Your Personal Access Token
1.4 Download FLOODPY
You can download FLOODPY toolbox using the following command:
git clone https://github.com/kleok/FLOODPY.git
1.5 Create python environment for FLOODPY
FLOODPY is written in Python3 and relies on several Python modules. We suggest to install them by using conda.
- Using conda
Create a new conda environement with required packages using the the file FLOODPY_gpu_env.yml.
conda env create -f path_to_FLOODPY/FLOODPY_gpu_env.yml
1.6 Set environmental variables (Optional)
Append to .bashrc file
export FLOODPY_HOME= path_of_the_FLOODPY_folder
export PYTHONPATH=${PYTHONPATH}:${FLOODPY_HOME}
export PATH=${PATH}:${FLOODPY_HOME}/floodpy
2. Running FLOODPY
FLOODPY generates a map with flooded regions based on Sentinel-1 GRD products and meteorological data.
Sentinel-1 orbits are downloaded using the sentineleof
You can run FLOODPY using the following jupyter notebooks as templates.
3. Documentation and citation
Algorithms implemented in the software are described in detail at our publications. If FLOODPY was useful for you, we encourage you to cite the following work:
-
Karamvasis K, Karathanassi V. FLOMPY: An Open-Source Toolbox for Floodwater Mapping Using Sentinel-1 Intensity Time Series. Water. 2021; 13(21):2943. https://doi.org/10.3390/w13212943
-
Kuro Siwo: 33 billion m2 under the water. A global multi-temporal satellite dataset for rapid flood mapping. https://paperswithcode.com/paper/kuro-siwo-12-1-billion-m-2-under-the-water-a
You can also have a look at other works that are using FLOODPY:
-
Gounari 0., Falagas A., Karamvasis K., Tsironis V., Karathanassi V.,
Karantzalos K.: Floodwater Mapping & Extraction of Flood-Affected
Agricultural Fields. Living Planet Symposium Bonn 23-27 May 2022.
https://drive.google.com/file/d/1HiGkep3wx45gAQT6Kq34CdECMpQc8GUV/view?usp=sharing -
Zotou I., Karamvasis K., Karathanassi V., Tsihrintzis V.: Sensitivity of a coupled 1D/2D
model in input parameter variation exploiting Sentinel-1-derived flood map.
7th IAHR Europe Congress. September 7-9, 2022. Page 247 at
https://www.iahreuropecongress.org/PDF/IAHR2022_ABSTRACT_BOOK.pdf -
Zotou I, Karamvasis K, Karathanassi V, Tsihrintzis VA. Potential of Two SAR-Based Flood Mapping Approaches in Supporting an Integrated 1D/2D HEC-RAS Model. Water. 2022; 14(24):4020. https://doi.org/10.3390/w14244020
4. Contact us
Feel free to open an issue, comment or pull request. We would like to listen to your thoughts and your recommendations. Any help is very welcome! ❤️
Owner metadata
- Name: Kleanthis Karamvasis
- Login: kleok
- Email:
- Kind: user
- Description: InSAR enthusiast
- Website: https://www.linkedin.com/in/kleanthis-karamvasis-2963744b/
- Location: Athens, Greece
- Twitter: Kleokk
- Company: National Technical University of Athens
- Icon url: https://avatars.githubusercontent.com/u/7121726?u=99db17f23e01e574301cd2a7c0482979966c4d0f&v=4
- Repositories: 1
- Last ynced at: 2023-03-05T04:38:02.084Z
- Profile URL: https://github.com/kleok
GitHub Events
Total
- Issues event: 1
- Watch event: 9
- Issue comment event: 1
- Push event: 2
- Pull request event: 5
- Fork event: 4
Last Year
- Issues event: 1
- Watch event: 9
- Issue comment event: 1
- Push event: 2
- Pull request event: 5
- Fork event: 4
Committers metadata
Last synced: 7 days ago
Total Commits: 421
Total Committers: 9
Avg Commits per committer: 46.778
Development Distribution Score (DDS): 0.183
Commits in past year: 35
Committers in past year: 3
Avg Commits per committer in past year: 11.667
Development Distribution Score (DDS) in past year: 0.114
Name | Commits | |
---|---|---|
kleok | k****k@h****m | 344 |
alekfal | a****s@g****m | 50 |
Olyna | o****g@l****m | 15 |
Gounari Olympia | 3****a | 4 |
mkremezi | m****i@g****m | 3 |
mylonasma | m****a@h****m | 2 |
katadam | a****n@g****m | 1 |
Scott Staniewicz | s****e@g****m | 1 |
palexantonakis | 4****s | 1 |
Committer domains:
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 35
Total pull requests: 58
Average time to close issues: 3 months
Average time to close pull requests: 1 day
Total issue authors: 14
Total pull request authors: 8
Average comments per issue: 2.63
Average comments per pull request: 0.05
Merged pull request: 52
Bot issues: 0
Bot pull requests: 0
Past year issues: 6
Past year pull requests: 12
Past year average time to close issues: 21 days
Past year average time to close pull requests: 3 days
Past year issue authors: 4
Past year pull request authors: 5
Past year average comments per issue: 2.5
Past year average comments per pull request: 0.17
Past year merged pull request: 9
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- kleok (12)
- JPPereira93 (3)
- acardaras-sanborn (3)
- mazingaro (3)
- mechtach714 (2)
- alekfal (2)
- leeseetja (2)
- KASHKASHOPTIMUS (2)
- Donna-syc (1)
- minaahmed (1)
- vishalshiv (1)
- adamsigi (1)
- JacobJeppesen (1)
- nbotha (1)
Top Pull Request Authors
- kleok (40)
- alekfal (10)
- palexantonakis (3)
- ckahootspammer (1)
- mylonasma (1)
- mazingaro (1)
- mkremezi (1)
- scottstanie (1)
Top Issue Labels
- enhancement (6)
- development (4)
- documentation (2)
Top Pull Request Labels
- development (2)
- bug (1)
- enhancement (1)
- documentation (1)
Dependencies
- awscli * development
- cdsapi * development
- folium * development
- geopandas ==0.9.0 development
- h5py * development
- joblib * development
- matplotlib * development
- myst_parser * development
- netCDF4 * development
- numpy * development
- pandas ==1.1.5 development
- pyproj * development
- rasterio * development
- rasterstats * development
- requests * development
- richdem * development
- scikit-image * development
- scikit-learn * development
- scipy * development
- seaborn * development
- sentinelsat * development
- shapely * development
- sphinx * development
- sphinx_rtd_theme * development
- sphinxcontrib-apidoc * development
- sphinxcontrib-napoleon * development
- tqdm * development
- wheel * development
Score: 7.39018142822643