Handle.Spatial: Cropping & Range Masking with Edge Support

View source: R/Spatial.R

Handle.SpatialR Documentation

Cropping & Range Masking with Edge Support

Description

Cropped and masking the original SpatRaster ('BASE') using supplied SpatExtent or shapefile ('Shape') and retaining all pixels which are even just partially covered.

Usage

Handle.Spatial(BASE, Shape)

Arguments

BASE

A SpatRaster within which coverage should be identified

Shape

Either a SPatExtent or an sf polygon(-collection) whose coverage of the raster object is to be found.

Value

A SpatRaster.

Examples

data("Jotunheimen_ras")
data("Jotunheimen_poly")
Mask.Shape(Jotunheimen_ras, Jotunheimen_poly)


ErikKusch/KrigR documentation built on Feb. 17, 2025, 2:09 p.m.