local_tate/sampling_points_and_rasters.R

# Get the AOD value of the cell closest to given coordinates
raster::extract(
  x = oregonRaster,
  y = data.frame(lon = -124, lat = 44), 
  method = "simple",
  buffer = 1,
  fun = mean
)[,"AOD"]
MazamaScience/MazamaSatelliteUtils documentation built on Dec. 17, 2021, 3:20 a.m.