Skip to main content

Interface to the DEIMS-SDR API

Project description

deimsPy

This repository represents the latest version of a collection of python functions with the intention of easing access to DEIMS-SDR data (https://www.deims.org). This python package is openly available and free to use. Should you use DEIMS-SDR data for any studies or analyses, please cite the service accordingly. For further information about DEIMS-SDR, please refer to its About page (https://www.deims.org/about).

Installation

Via pip (see the package on PyPI): pip install deims. Manually: download deims.py to working directory.

You can then import deims as normal.

Usage

Get the list of all verified site of a network, e.g. ECN

  • deims.getListOfSites(network="a197664f-569e-4df6-933a-86de676dbfc5",verified_only=True)

Get the list of all network sites (verified and not verified), e.g. LTER Austria

  • deims.getListOfSites("d45c2690-dbef-4dbc-a742-26ea846edf28")

Get the list of all sites

  • deims.getListOfSites()

Get a particular site record by its DEIMS.ID (multiple formats of the DEIMS.ID are accepted)

  • deims.getSiteById(site_id="deims.org/8eda49e9-1f4e-4f3e-b58e-e0bb25dc32a6")
  • deims.getSiteById("1b94503d-285c-4028-a3db-bc78e31dea07")

Get all sites on DEIMS within 30km of latitude 47.84, longitude 14.44

  • deims.getSitesWithinRadius(lat=47.84,lon=14.44,distance=30000)

Get all sites on DEIMS within 1500m of latitude 57.08, longitude -3.667

  • deims.getSitesWithinRadius(57.08,-3.667,1500)

Get the boundaries of a particular site as a GeoDataFrame

  • deims.getSiteBoundaries("8eda49e9-1f4e-4f3e-b58e-e0bb25dc32a6")

Get the boundaries of multiple sites and save them as a shapefile called "lter-austria.shp"

  • deims.getSiteBoundaries(deims.getListOfSites("d45c2690-dbef-4dbc-a742-26ea846edf28"),"lter-austria")

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

deims-3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

deims-3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file deims-3.0.tar.gz.

File metadata

  • Download URL: deims-3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for deims-3.0.tar.gz
Algorithm Hash digest
SHA256 519ff03539bc7d5905b6ca5e16a60b2aea0f40f8fc6672887f6ebfc595b8adb9
MD5 6841880f2a9fc390c3d5b8d671a953ae
BLAKE2b-256 8f6613b5648fd2e55e8753a627bceee76d88d785b51210009bccd55cfaa3fcab

See more details on using hashes here.

File details

Details for the file deims-3.0-py3-none-any.whl.

File metadata

  • Download URL: deims-3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for deims-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd30955846999c73266e73a03aee4b3256f9f3f8010beb7f729b38162ff74552
MD5 8b21975fadc9ffb8946d481e66ccd3d1
BLAKE2b-256 bf67003c7e44ee2dc0ffd84118c3526a910d9880013acf7937c38e5ccf87ffb3

See more details on using hashes here.

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