Getting Started¶
This notebook will show you how to get started using this module.
Using the RoadFloodRiskMap
module¶
from road_flood_risk_map import RoadFloodRiskMap
Upon creating an instance of RoadFloodRiskMap
, you will be prompted to provide your Google Earth Engine token.
rfm = RoadFloodRiskMap(basemap="ROADMAP")
To display the map, simply call the instance of RoadFloodRiskMap
.
rfm
# or
#display(rfm)
RoadFloodRiskMap(center=[40, -100], controls=(WidgetControl(options=['position', 'transparent_bg'], position='…
Adding the Analysis Tool¶
# This will add the controls for the analysis tool to the map
rfm.add_analyse_roi_widget()
To use the tool, you first need to specify the region of interest by drawing a polygon or a rectangle on the map.
You will then be prompted in the tool to enter a filename and specify the data source to use. When done, you will then be able to submit the request to fetch the data to be used for analysis.
If the fetching process is successful, the fetched file will automatically be placed on the DEM File
field and enable the Analyze DEM
button.
Click the Analyze DEM
button to perform hydrological analysis to the ROI. When it is done, the analysis artifacts will automatically added as map layers.