cropsebkc: Reprojecting and cropping images

View source: R/cropsebkc.R

cropsebkcR Documentation

Reprojecting and cropping images

Description

This function returns the subset of x object as defined by y extent object. See crop and extent for more details. The difference between crop and cropsebkc is the ability for the latter to reproject y object with x object projection.

Usage

cropsebkc(x, y)

Arguments

x

object to be extracted

y

extent object or raster object or polygon from which an Extent object can be extracted. A polygon or raster will be reprojected to conform x

Value

cropped x and reprojected y

Author(s)

George Owusu

See Also

crop

Examples

## Not run: 
folder=system.file("extdata","stack",package="sebkc")
stack=sebkcstack(folder=folder)
data=cropsebkc(stack$data,stack$data)

## End(Not run)


gowusu/sebkc documentation built on July 28, 2023, 11:44 a.m.