DaymetStationsRefClass_closest_stations: Find the n closest stations to the lon/lat coordinates...

DaymetStationsRefClass_closest_stationsR Documentation

Find the n closest stations to the lon/lat coordinates provided.

Description

Find the n closest stations to the lon/lat coordinates provided.

Arguments

lon

numeric, the longitude locations

lat

numeric, the latitude locations

n

numeric, the number of stations to retrieve

longlat

logical, if TRUE then find great circle distance. See sp::spDistN1()

Value

tibble of the n closest stations with the following variables

  • index the index of the station (order with station_id, station_name, etc)

  • dist numeric, the distance in kilometers from station to requested point


BigelowLab/daymet documentation built on Aug. 29, 2023, 8:21 a.m.