index_extent: Index extent

View source: R/extent_transforms.R

index_extentR Documentation

Index extent

Description

Extent in index space.

Usage

index_extent(x, ex)

Arguments

x

raster layer

ex

extent

Details

Convert a geographic extent into purely index space.

Value

extent object

Examples

## the index extent is the rows/cols
index_extent(raster::raster(volcano), raster::extent(0, 1, 0, 1))

index_extent(raster::raster(volcano), raster::extent(0, 1, 0, .5))


tabularaster documentation built on Nov. 2, 2023, 5:14 p.m.