Convert occurrence coordinates to 0-based stream indices
Source:R/featured_space_raster.R
maxent_raster_sample_indices.RdMaps occurrence cell indices (as produced by terra::cellFromXY)
into 0-based indices within the concatenated stream of finite
(non-NA) background cells emitted by
maxent_featured_space_from_rast.
Arguments
- rast
- cells
Integer vector of 1-based cell indices (as returned by
terra::cellFromXY).