/streamlit_floodv2

🌊Flood Mapping Tools (with extent mapping)

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Streamlit App For Flood Incidents in Malaysia

Static Badge Static Badge Streamlit App

An app powered by Streamlit to visualize the flood incidents in Malaysia from 2015 to 2021.

Table of Contents:

Functions

  • Estimate the extent of a flood
  • Visualize flood incidents' statistics
    • On bar chart, market cluster plot and heatmap

Flood Mapping Tool

The web app contains a feature to allow user to estimate flood extent using Sentinel-1 synthetic-aperture radar SAR data.

Using this repository

  1. Make sure you have installed all the packages in requirements.txt
  2. If you are running this repo on your local Windows machine, you will probably encounter fcntl module not found error. But this repo can still do fine on the web app
    py -m pip install ee
    import ee
    ee.Authenticate()
    • You will need to paste the authorization code back on the terminal. Once the step is complete, you can find the token on your local machine at C:\\Users\\Username\\.congif\\earthengine\\credentials
  3. Now assuming you have created an empty repository on you GitHub account and put everything in this repository there
    • Go to Streamlit and create an account there. Remember to link to your GitHub account.
    • Then you need to deploy your repository you created just now.
    • Before you click deploy, select advanced option and fill up the secret using the information in C:\\Users\\Username\\.congif\\earthengine\\credentials. You need to copy everything there.
    EARTHENGINE_TOKEN = 'PASTE WHAT YOU COPY HERE'
    ee_keys = 'PASTE WHAT YOU COPY HERE'

Resources

The flood incidents data is collected from the annual flood report published by the Department of Irrigation and Drainage. The report can be found here:

Flood Annual Report Link
2015 Report Link
2016 Report Link
2017 Report link
2018 Report Link
2019 Report Link
2020 Report Link
2021 Report Link

References

  1. mapaction/flood mapping tool
  2. opengeos/streamlit-geospatial

Internship Project © 2023