Flooding in Rupununi Wetland, July 14 2017
The pipeline jupyter notebook is located within folder s1rtc_data_download named workflow.ipynb. The data download pipline is able to:
- Query rtc images based on area of interest, datetime, spatial coverage of tiles over aoi, Ascending or Aescending orbit order
- Download vh and vv band data from query results with some pre-precessing includes setting NoData value to zero, selecting which band to be download, reprojecting all bands to the same projection system and clipping the raster to the area of interest
These instructions guide you through creating and activating environments necessary for running the notebooks in the ASF_Adaptive_Flood_Mapping directory of this repository. All commands should be executed in the terminal. The notebooks were run in Microsoft Planetary Computer but could be run locally.
Create environments based on the specifications provided in the YAML files located in /home/jovyan/GuyanaFloodMapping/configs/
. The first line of each step is for the Big_Hand_notebook_adapted notebook for creating a Height Above Nearest Drainage (HAND) geotif. The second line of each step is for the ASF_Flood_mapping notebook, which uses adaptive thresholding to create surface water maps. Execute the following commands in your terminal:
For the Big_Hand_notebook_adapted environment:
conda env create -f /home/jovyan/GuyanaFloodMapping/configs/locked_hydrosar_env.yml
For the ASF_Flood_mapping environment:
conda env create -f /home/jovyan/GuyanaFloodMapping/configs/SAR_flooding_env.yml
Activate the environment using one of the following commands based on the specific notebook you intend to run:
For Big_Hand_notebook_adapted:
conda activate hydrosar
For ASF_Flood_mapping:
conda activate asf-jupyter-notebook
Alternatively, you can specify the path directly:
conda activate /home/jovyan/.local/envs/asf-jupyter-notebook
With the environment activated, install ipykernel
to enable using this environment as a Jupyter kernel. Run the following command for both environments:
conda install ipykernel -y
After installing ipykernel
, register the environment as a Jupyter kernel using the commands below:
For Big_Hand_notebook_adapted:
python -m ipykernel install --user --name=hydrosar --display-name="Hydrosar"
For ASF_Flood_mapping:
python -m ipykernel install --user --name=asf-jupyter-notebook --display-name="SAR Flooding"
This setup will allow you to select the appropriate kernel to run with your notebook from within Jupyter.