The RWD Raster Builder, builds a raster dataset using the Digital Earth Africa (DEA) Toolkit based on Sentinel-1 analysis-ready radar backscatter data. Sentinel-1, operated by the ESA as part of the Copernicus Program provides these observatiosns every 6-12 days over Africa. This gives near real-time data for accurate field analysis and estimation.
The DEA Toolkit also has ready-to-work workflows of complex real-world problems that can be cutomized to requirements. More on this can be found on the Read World Examples page. A major part of the flood-mosaic Jupyter Notebook was developed using the Water Detection With Sentinel-1, which is one of the real world examples in the DEA Toolkit.
The Jupyter Notebooks in this repository run in the DEA Analysis Sandbox.
Table of Contents
The DEA Analysis Sandbox runs on the DEA server, which is an AWS EC2 instance. In order to access the Sandbox, create an account by following the instructions on the Getting Started Page
Navigate to the Login page, once the account has been created.
After logging in, choose the default environment with 2 Cores and 16 GB RAM. Hit "Start" and the server should begin starting up.
If for some reason this environment is slow, a later switch to the large environment is possible as well, without any loss of data
- Navigate to the root directory by clicking the "folder" icon in directory path
- In the root directory, create a new folder with any project name. Open the project folder
- Inside the project folder, click on the "+" icon and select "Terminal". This will open a terminal in the project folder
- Copy the command below. Click on the Terminal window, paste and hit "Enter"
git pull https://github.com/rhinejoel/rwd-raster-builder.git
The repo will be cloned to the new project directory.
Contents of the directory may differ from that of the image. The image just serves as a reference
Create two new folders inside the repo directory and name them "input" and "output".
These directories are required for data management and proper functioning of the code
Open the "input" directory and upload the gridded vector (geojson) file here.
The CRS of the vector file must be EPSG:4326 and the grid size must be 0.1 degrees
If using ESRI shapefile, upload all the auxillary files individually along with the .shp file
Ensure all steps have been followed and a proper vector file is present in the "input" folder.
Once done, in the "Customize Data" section of the notebook, make changes based on requirements and the vector file name
# DEFINE PERIODS
pre_flood = ['2024-04-15', '2024-05-15', '2024-06-15', '2023-07-15'] # 4 MONTHS PRIOR
flood = ['2024-07-26', '2024-08-26', '2024-09-26', '2024-10-15'] # 4 MONTHS DURING
# DEFINE THRESHOLD
threshold_vh = -35 # IF REQUIRED
# UPLOAD FILE
grid = gpd.read_file("input/vector_file_name.geojson")
Save changes in the notebook and run.
Distributed under the MIT License. See LICENSE.txt
for more information.
Joel Rhine: Email Website Link: Joel Rhine | Home