xyCellLayerFromIndex: Convert a index (1, 2, 3,... ncells*nlayers) into a...

View source: R/raster.R

xyCellLayerFromIndexR Documentation

Convert a index (1, 2, 3,... ncells*nlayers) into a multilayer raster to row, col, cell and layer coordinates

Description

Convert a index (1, 2, 3,... ncells*nlayers) into a multilayer raster to row, col, cell and layer coordinates

Usage

xyCellLayerFromIndex(index, x)

Arguments

index

vector of multilayer index coordinates

x

Raster* layer, brick or stack

Value

a tibble of index, cell, col, row, x, y, and layer


BigelowLab/rasf documentation built on July 18, 2022, 10:19 p.m.