-
Notifications
You must be signed in to change notification settings - Fork 6
draw_map
bchate edited this page Oct 23, 2018
·
3 revisions
The following function (draw_map) allows a user to create an empty map to be used to draw a polygon or rectangle. Then the user can use the output of the function (dc) to get the AOI extent and visualize it using (display_map) function.
You may have to install ipyleaflet extension and enable it:
source /home/sdcuser/Datacube/datacube_env/bin/activate
pip install ipyleaflet
jupyter nbextension enable --py --sys-prefix ipyleafletIf you have credentials for the Swiss Data Cube, you can play with a demo script at
http://sdc.unepgrid.ch:8080/notebooks/demo_FUN_draw_map.ipynb
or
http://calc.unepgrid.ch:8080/notebooks/demo_FUN_draw_map.ipynb
The code and the demo jupyter notebook script can be found here