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 - INaturalist doesn't require any authentication.
sdmdata.save_specieslink_apikey(apikey)
sdmdata.save_gbif_credentials(user, email, pwd)
species_names = ["Panthera onca", "Lynx rufus"]
df = sdmdata.get_occurrences(
species_names,
country="Brazil",
year_range=(2000, 2020),
)
Functions
get_occurrences(species_names, country=None, year_range=None, lat_min=None, lat_max=None, lon_min = None, lon_max = None, includeGbif = True, includeInaturalist = True, includeSpeciesLink = True): Fetches occurrence data for the specified species from GBIF, iNaturalist, and SpeciesLink (you can choose the source), 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.1.2.tar.gz
(11.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sdmdata-0.1.2-py3-none-any.whl
(12.6 kB
view details)
File details
Details for the file sdmdata-0.1.2.tar.gz.
File metadata
- Download URL: sdmdata-0.1.2.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31f5749cec8dc0bc3b8bbd643cc21dc1c832c14895a5893563b8f344cfdd394a
|
|
| MD5 |
616ab87bae7c8116da0e06558dc5bacd
|
|
| BLAKE2b-256 |
a4ef78ec7bf317d7f20ba2e4c8e5dee8f8e4c9845f69cdc2a46ae4503fbdcdcd
|
File details
Details for the file sdmdata-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sdmdata-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c666e06449b615ce381a2c3af3c2dd0bf8834ac88d4a3c28d108a1638024bb
|
|
| MD5 |
2e176d4dc263bd5c0c2713286396fecb
|
|
| BLAKE2b-256 |
b60b45695cb901cd71ba7248ebb4354215c5c9453fe8ddbe3bb5180eeef9d5b5
|