Skip to main content

A library for Species Distribution Modeling data retrieval from GBIF, iNaturalist, and SpeciesLink APIs.

Project description

USAGE.md

Overview

sdmdata is a library designed to facilitate data management and processing for scientific and research applications.

Getting Started

Installation

pip install sdmdata

Basic Usage

import sdmdata

# Example: Download occurrences from GBIF, iNaturalist, and SpeciesLink

species_names = ["Panthera onca", "Lynx rufus"]
sdmdata.get_occurrences(
    species_names,
    country="Brazil",
    year_range=(2000, 2020)
)

#An excel file will be created in the working directory with the occurrence data from the three sources.

df = pd.read_excel("all_occurrences/Panthera onca,Lynx rufus.csv", sheet_name=None)

Functions

  • get_occurrences(species_names, country=None, year_range=None, lat_min=None, lat_max=None): Fetches occurrence data for the specified species from GBIF, iNaturalist, and SpeciesLink, with optional filters for country, year range, and latitude bounds.
  • get_species_autocomplete(name): Retrieves a list of species suggestions from GBIF based on the provided name.
  • save_gbif_credentials(user, email, pwd): Saves GBIF user credentials for authenticated requests.
  • save_specieslink_apikey(apikey): Saves the API key for SpeciesLink requests.
  • delete_gbif_credentials(): Deletes stored GBIF user credentials.
  • delete_specieslink_apikey(): Deletes the stored SpeciesLink API key.

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

sdmdata-0.0.2.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdmdata-0.0.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file sdmdata-0.0.2.tar.gz.

File metadata

  • Download URL: sdmdata-0.0.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for sdmdata-0.0.2.tar.gz
Algorithm Hash digest
SHA256 af1cf98aac01fe1786cf51e0865968c3c768323db172e066f6eea826bc4358e1
MD5 6a15e0cf3437b0b496e6afa7ec7002d8
BLAKE2b-256 a584b173521386067bc82e31df7b17694ee7ee473a0da18c87f5a63749a3a452

See more details on using hashes here.

File details

Details for the file sdmdata-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sdmdata-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for sdmdata-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67f2aa8eb7c65ef4f78ef2e449f6542cd3b02bbc83c52baed42a23f1acaa6b78
MD5 cc8c9f0bdeb28f5ce07a73f0108044e2
BLAKE2b-256 939ad811acf5e057b76484a49677d34ede482d8cc60b8ed8e4bbc7bcba6208f3

See more details on using hashes here.

Supported by

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