Learn R Programming

sits (version 1.12.0)

.sits_xy_inside_raster: Tests if an XY position is inside a ST Raster Brick

Description

This function compares an XY position to the extent of a RasterBrick described by a raster metadata tibble, and return TRUE if the point is inside the extent of the RasterBrick object.

Usage

.sits_xy_inside_raster(xy, raster.tb)

Arguments

xy

XY extent compatible with the R raster package.

raster.tb

Tibble with metadata information about a raster data set.

Value

TRUE if XY is inside the raster extent, FALSE otherwise.