Skip to contents

Raster Cell Neighbourhoods

Usage

tj_cell_neighbours_old(i, nr, nc, ...)

Arguments

i

focal cell

nr

number of rows in the xy-grid

nc

number of columns in the xy-grid

...

ignored

Value

A vector of indices. If `type='sqexp'`, will return the weights in the attribute 'weight'.

Details

Non-toroidal neighborhood, so at edges there will be less neighbours.

Will assume cell-numbering cell = col + (row-1) * ncol.