GeoGraph provides a tool for analysing habitat fragmentation and related problems in landscape ecology. GeoGraph builds a geospatially referenced graph from land cover or field survey data and enables graph-based landscape ecology analysis as well as interactive visualizations.
This PR adds a couple of utils functions to the master branch.
Sorry for the larger PR, should have added the rasterio and vector utils earlier, but now they are included here.
@ Reviewer:
Please take a brief look the .py files in the main changes. I'm mainly posting this pull request to keep master updated with the recent development of .py files, such that they are available for future branches off of master.
It's also good to practice our first code review and get into the habit of pushing updates sooner 😉 Cheers and thank you for any feedback!
Main changes:
Added useful CRS and paths on Jasmin to constants.py
Added functionality to work with & download from gdrive in src/data_loading/google_drive.py (functionality illustrated in the corresponding demo notebook in notebooks/exploratory/svm-4-...
Added several utils functions for raster and vector data
Added general utils for object size checks in python and downloads of polygons from the OSM polygon API.
Other changes:
Requirements updated (dev-requirements)
Gitignore updated (ignoring secrets such as OAuth tokens for the GDrive API)
Fixing pre-commit pointer to latest version of black.
Add loading script for jupyter notebooks (to enable auto-reload of modules upon change)
This PR adds a couple of utils functions to the master branch.
Sorry for the larger PR, should have added the rasterio and vector utils earlier, but now they are included here.
@ Reviewer: Please take a brief look the
.py
files in the main changes. I'm mainly posting this pull request to keep master updated with the recent development of.py
files, such that they are available for future branches off of master. It's also good to practice our first code review and get into the habit of pushing updates sooner 😉 Cheers and thank you for any feedback!Main changes:
constants.py
src/data_loading/google_drive.py
(functionality illustrated in the corresponding demo notebook innotebooks/exploratory/svm-4-...
Other changes:
dev-requirements
)secrets
such as OAuth tokens for the GDrive API)black
.