Spatial and Environmental Data Tools for Landscape Ecology
Overview
Provides functions for landscape analysis and data retrieval. The package allows users to download environmental variables from global datasets (e.g., WorldClim, CHELSA, ESA WorldCover, Nighttime Lights), and to compute spatial and landscape metrics using a hexagonal grid system based on the H3 spatial index. It is useful for ecological modeling, biodiversity studies, and spatial data processing in landscape ecology. Fick and Hijmans (2017) doi:10.1002/joc.5086. Zanaga et al. (2022) doi:10.5281/zenodo.7254221. Uber Technologies Inc. (2022) "H3: Hexagonal hierarchical spatial index". Román et al. (2018) doi:10.1016/j.rse.2018.03.017. Karger et al. (2017) doi:10.1038/sdata.2017.122. Brun et al. (2022) doi:10.5194/essd-14-5573-2022.
New functions
get_chelsa_historic()-- Downloads CHELSA v2.1 bioclimatic variables (bio1-bio19) for the 1981-2010 reference period. Uses Cloud Optimized GeoTIFF (COG) streaming via/vsicurl/, so only the spatial subset covering the AOI is retrieved -- no full global download required. Acceptsvar = "all"to request all 19 variables in a single call. Resolution is fixed at 30 arc-seconds (~1 km); noresparameter.get_chelsa_future()-- Downloads CHELSA v2.1 future bioclimatic variables under CMIP6 scenarios (SSP126, SSP370, SSP585) for three periods (2011-2040, 2041-2070, 2071-2100) and five ISIMIP3b GCMs (GFDL-ESM4, IPSL-CM6A-LR, MPI-ESM1-2-HR, MRI-ESM2-0, UKESM1-0-LL). Also uses COG streaming. Note: SSP245 is not available in CHELSA v2.1. Resolution is fixed at 30 arc-seconds (~1 km).
Show all changes in 0.3.0Hide the rest of the changes in 0.3.0
get_cr_outline()-- Downloads the Costa Rica boundary from GADM 4.1 viageodata::gadm()and returns it as ansfobject. Thecontinentalargument (defaultTRUE) controls whether to return only the continental landmass (excluding Isla del Coco and minor islands) or the full national territory. The downloaded file is cached locally.
New datasets
cr_outline-- Costa Rica full outline (continental landmass + Isla del Coco and all minor oceanic islands), derived from GADM 4.1.
Breaking changes
get_nightlight_data()-- Complete rewrite. The function now wrapsblackmarbler::bm_raster()(World Bank) instead of scraping the EOG (Earth Observation Group) website. **Interface change**: a new requiredaoi_sfargument (ansfobject) replacesyear/monthas the first argument, and abearerargument (NASA LAADS DAAC token) is now required. The function returns aSpatRastercropped and masked to the AOI instead of a file path. See?get_nightlight_datafor details on obtaining a bearer token.
Improvements
get_nightlight_data()now supports daily (VNP46A1,VNP46A2), monthly (VNP46A3), and annual (VNP46A4) NASA Black Marble products at 500 m resolution, with built-in quality filtering viaquality_flag_rm.cr_outline_cdataset regenerated from GADM 4.1 with a fully reproducible script indata-raw/cr_outline.R.- Migrated from
magrittrpipe (%>%) to the native R pipe (|>) throughout the package (extract_cat_raster(),get_records_by_hexagon()). Requires R >= 4.1.0 (already declared inDepends).
Dependency changes
- **Added**:
blackmarbler(replaces EOG scraping for nightlight data). - **Added**:
geodata(used byget_cr_outline()). - **Removed**:
rvest(no longer needed after EOG scraper was dropped). - **Removed**:
magrittr(replaced by native pipe|>).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 12%2 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran) · 5 never run · 4 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 44%
Downloads
Repository
Stars over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/manuelspinola/paisaje on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-22 · The repository has a site deploy workflow
pkgdown site last built 2026-06-22
Show all practicesHide 1 practice
Dependencies
Installing paisaje adds 147 packages (75 with compiled code, 113 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2025-10-21
- Total releases
- 3 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 815 KB / 2 files
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("paisaje")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.