Skip to main content

Download data from the African Elephant Database

Project description

Download data from the African Elephant Database

The African Elephant Database (http://africanelephantdatabase.org/) is an online effort by the IUCN SSC African Elephant Specialist Group (AfESG) to gather data from different surveys and combine it with past African Elephant Status Reports (published by the same group).

The database is freely accessible online via a web user interface, and released under a Creative Commons Attribution-NonCommercial-ShareAlike license. Unfortunately, at the time of this writing, the AfESG did not have means to access the backend and retrieve raw data.

This script swifts through the online user interface and downloads all data contained in the “Elephant Estimates” columns as well as the spatial geometry of each stratum (the smallest area reported). It retains the hierarchy of spatial units by referencing to the higher-order units in attributes in order to allow the reconstruction of data on the level of input systems, countries, regions and the entire continent.

If you use python-africanelephantdatadownloader for scientific research, please cite it in your publication:
Fink, C. (2019): python-africanelephantdatabasedatadownloader: a Python utility to download the most up-to-date data from the African Elephant Database. doi:10.5281/zenodo.3243872

Dependencies

The script is written in Python 3 and depends on the Python modules BeautifulSoup4, GeoPandas, Shapely and requests.

To install all dependencies on a Debian-based system, run:

apt-get update -y &&
apt-get install -y python3-dev python3-pip python3-virtualenv \
    python3-bs4 python3-geopandas python3-requests python3-shapely

(There’s an Archlinux AUR package pulling in all dependencies, see further down)

Installation

  • using pip or similar:
pip3 install -u africanelephantdatabasedatadownloader
  • OR: manually:

    • Clone this repository
    git clone https://gitlab.com/helics-lab/python-africanelephantdatabasedatadownloader.git
    
    • Change to the cloned directory
    • Use the Python setuptools to install the package:
    cd python-africanelephantdatabasedatadownloader
    python3 ./setup.py install
    
  • OR: (Arch Linux only) from AUR:

# e.g. using yaourt
yaourt python-africanelephantdatabasedatadownloader

Usage

Run aed-downloader [outputFile]. It will download all data (be patient) and save it in GeoPackage format to outputFile (default is output.gpkg in the current working directory).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file africanelephantdatabasedatadownloader-0.0.5.tar.gz.

File metadata

  • Download URL: africanelephantdatabasedatadownloader-0.0.5.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for africanelephantdatabasedatadownloader-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f8e39674ed93ae966a215dacaa22ecbdaa40d2e8fd075e30d1668b662c71d855
MD5 9ae95fbd532720cceb3ded42bbb874cc
BLAKE2b-256 e5ff845fdfb96089c103d9defb37264466aae68120dbf50ca4aec23cb48a75d3

See more details on using hashes here.

Provenance

File details

Details for the file africanelephantdatabasedatadownloader-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for africanelephantdatabasedatadownloader-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 910314c4c9c458d23417c6dfd176a8a6286046b59bad7d3d98c516cf611316b3
MD5 232d2ed15199800e6dfe35989d6e6a66
BLAKE2b-256 7342e06daf76c76917a1642ee62abfdcac12e94413282346162dedd6979ff143

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page