This repository contains the implementation of two types of pollination supply models[1]:
The folder Lonsdorf contains the implementation of the Lonsdorf model[2] in Google Earth Engine.
The folder Machine Learning contains the implementation of a machine learning pipeline to predict pollinator visitation rate, using scikit-learn in Python.
-
Copy the folders Lonsdorf/GEE/lib and Lonsdorf/GEE/models in your GEE repository.
-
Upload the assets in Lonsdorf/GEE/assets to your GEE (depending on the option you choose when running the model, you might want to upload only some of the assets present in the folder). Import the assets in the GEE code editor, in the script Lonsdorf/GEE/lib/data. The names of the assets must be adapted to the ones used in Lonsdorf/GEE/lib/data (you must revise the code in Lonsdorf/GEE/lib/data to identify those names)
-
Run Lonsdorf/pre-post-processing/generate_sites_predictions.py to generate a set of sites where Lonsdorf scores will be computed.
-
Upload generated 'csv' of sites to the assets in GEE.
-
In the script Lonsdorf/GEE/lib/data, import the uploaded asset with the new sites for Lonsdorf scores, and add a new case to the switch in the function getSamplingPoints. The new case must correspond to a (arbitrary, e.g. "new_sites") string that will be used in the next step in a different script. It must return the imported table with the new sites.
-
In the script Lonsdorf/GEE/models/lonsdorf, change the option sitesOption to the string used in the previous step to define the new case in the switch.
-
Run the script Lonsdorf/GEE/models/lonsdorf. It must produce a task to compute and download the Lonsdorf scores at the new sites.
References:
-
Gimenez-Garcia A, et al. (in preparation) Pollination supply models from local to global scale.
-
Lonsdorf E, et al. (2009) Modelling pollination services across agricultural landscapes. Annals of Botany 103(9):1589–1600.