gbif-biodiversity

Generate species distribution suitability maps from GBIF occurrence data using SDM fitting and raster prediction.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill gbif-biodiversity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gbif-biodiversity
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/04-earth-science/gbif-biodiversity
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill gbif-biodiversity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pygbif, geopandas, scikit-learn, elapid, matplotlib, numpy, pandas, cartopy, rasterio, shapely.

What problem does it solve?

It turns noisy, biased GBIF occurrence records into a cleaned, spatially thinned dataset and then produces species distribution model predictions.

Core Features & Use Cases

  • GBIF occurrence retrieval: Download species occurrence records via the GBIF API using pygbif, including basic filtering (e.g., coordinates, year range, optional country).
  • Spatial thinning for sampling bias: Reduce clustering by retaining at most one record per specified latitude/longitude grid cell using GeoPandas and spatial logic.
  • End-to-end SDM fitting and prediction: Fit MaxEnt-style SDMs with elapid and create suitability rasters; optionally build BRT models using scikit-learn and then stack/raster-threshold for richness mapping.
  • Use Case: You have records for a species (e.g., a mammal or bird) across a region and want a defensible suitability map plus a richness map across multiple species for ecological analysis.

Quick Start

Use the gbif-biodiversity skill to download GBIF occurrences for a target species, spatially thin them, and fit an SDM to output a suitability GeoTIFF.

Frequently Asked Questions about gbif-biodiversity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model species distributions from GBIF occurrence data?

To model species distributions from GBIF occurrence data, download records via the pygbif API, apply spatial thinning to reduce sampling bias, and fit presence-background SDMs using elapid to generate suitability GeoTIFF rasters.

What is spatial thinning and why is it needed for species distribution modeling?

Spatial thinning reduces sampling bias in GBIF occurrence records by retaining at most one record per specified latitude/longitude grid cell using GeoPandas, preventing clustered occurrence data from skewing MaxEnt-style species distribution model predictions.

Can I use scikit-learn to build species distribution models with GBIF records?

Yes, you can use scikit-learn to build BRT (Boosted Regression Trees) models from spatially thinned GBIF records, complementing MaxEnt-style SDMs fitted with elapid, and stack the resulting suitability rasters for species richness mapping.

How do I reduce sampling bias in GBIF records before fitting MaxEnt models?

Reduce sampling bias in GBIF records before fitting MaxEnt models by applying grid-based spatial thinning using GeoPandas, which filters coordinate-clustered occurrence data to retain only one record per defined latitude/longitude grid cell.

Does this approach output suitability rasters for ecological range modeling?

Yes, this approach fits species distribution models using elapid and rasterio to output suitability GeoTIFF rasters, which can be thresholded and stacked across multiple species to generate species richness maps for ecological analysis.

What environmental predictors do I need for species distribution modeling with GBIF data?

Species distribution modeling with GBIF data requires geospatial raster environmental predictors to fit presence-background models, using rasterio to process the raster layers and generate predicted suitability outputs for ecological range mapping.