| closest_available_cell | R Documentation | 
Determine the closest non-NA pixel given [lon,lat] and a lut raster
closest_available_cell(
  x = volcano_points(),
  lut = make_raster_lut(),
  verbose = FALSE
)
x | 
 sf POINT data, data.frame or with [lon,lat] coordinates in that order 
and assumed to be aligned with the CRS of the   | 
lut | 
 stars object, look-up with precomputed closest non-NA cells. 
See   | 
verbose | 
 logical, if TRUE output messages  | 
sf object with two attributes index (the index of the closets non-NA point)
and original (the original index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.