SensingClues allows you to record, monitor and analyze wildlife observations to support nature conservation initiatives.
The package sensingcluespy allows Python-users to connect to SensingClues' database and download
data logged using the Cluey-app. This includes wildlife observations and tracks, custom map layers,
and the wildlife ontology used by SensingClues. Note: you need credentials for the
SensingClues Cluey-app to connect to the database.
See the installation and usage instructions below. For more details, see API-documentation.
There are various methods to install sensingcluespy. For any method, we recommend using a virtual environment when installing the library, such as pyenv or virtualenv.
The simplest method is to install sensingcluespy directly from pypi::
pip install sensingcluespyTo download the source code and install the library:
git clone https://github.com/SensingClues/sensingcluespy.git
cd </parent_location_of_the_library/sensingcluespy/>
pip install .
pip install -r requirements.txtFurther, we recommend using jupytext when working with Jupyter notebooks. Install it like so:
pip install jupytextFinally, you should create a personal account for SensingClues using the Cluey Data Collector app, which can be downloaded from the Google Playstore (not supported for iOS currently). Also see here.
Note: if you are developing new functionality, please also do:
pip install -r requirements_dev.txt
pre-commit installThe best way to get acquainted with the functionality availability in sensingcluespy is
to check the notebook notebooks/sensingclues_tutorial.py.
Methods which are currently implemented are:
loginandlogout: Connect to the database.get_groups: Obtain overview of groups you have access to.get_observations: Extract observations.get_tracks: Extract track data.add_geojson_to_tracks: Add geospatial information to track data.get_all_layers: Obtain overview of all layers you have access to.get_layer_features: Extract detailed information on a layer.get_hierarchy: Get full hierarchy (ontology) used in database.- helper functions related to the hierarchy/ontology, such as
get_label_for_idandget_children_for_label get_concept_counts: Get number of occurrences for a specific concept in the ontology.
The data can be filtered on for instance dates, coordinates and specific elements in the ontology. See the detailed API-documentation of each function to check which filters are available.