daymet_index | R Documentation |
Compute indices into daymet arrays from lon/lat or from the native daymet Lambert conformal conic coordinates
daymet_index(
lon,
lat,
bag,
crs = c("longlat", "daymet", "native")[1],
bbox = FALSE
)
lon |
vector of longitudes |
lat |
vector of latitudes |
bag |
a list containing look up values of daymet array lons and lats |
crs |
character indicating what proj the inputs belong to "longlat" or "daymet" |
bbox |
logical if TRUE assume we are trying to find the enclosing bbox, which trims the result to the maximum range in x and. |
a two column vector of closest indices in [x,y] order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.