extractRasterExtent: Get an extent from anything

View source: R/crop-methods.R

extractRasterExtentR Documentation

Get an extent from anything

Description

Internal function to try to get a raster::Extent object from any potential y argument to a crop command.

Usage

extractRasterExtent(y)

Arguments

y

Something to crop to (ie the y argument of a crop command)

TODO One day this should be converted to terra::SpatExtent. Probably whenever raster is really deprecated and shall be purged from DGVMTools.

Value

A raster::Extent object


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.