load_raster: Load raster data from one or multiple (remote) files

View source: R/utils.R

load_rasterR Documentation

Load raster data from one or multiple (remote) files

Description

If a bounding box is provided, the file(s) are cropped for the given extent. The resulting rasters are then merged using terra::merge.

Usage

load_raster(urlpaths, bbox = NULL)

Arguments

urlpaths

Path or URL to the raster file(s)

bbox

A bounding box

Value

Raster data as a terra::SpatRaster object


rcrisp documentation built on Aug. 8, 2025, 6:42 p.m.