closest_available_cell: Determine the closest non-NA pixel given [lon,lat] and a lut...

View source: R/raster.R

closest_available_cellR Documentation

Determine the closest non-NA pixel given [lon,lat] and a lut raster

Description

Determine the closest non-NA pixel given [lon,lat] and a lut raster

Usage

closest_available_cell(
  x = dplyr::tibble(lon = c(0.1, 0.6, 0.9, 0.1), lat = c(0.3, 0.1, 0.8, 0.9)),
  lut = make_raster_lut()
)

Arguments

x

the data frame with lon and lat coordinates

lut

the raster look-up with precomputed closest non-NA cells

Value

tibble with lon and lat columns


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