Find Nearest GSOD Stations to a Specified Latitude and Longitude
Source:R/nearest_stations.R
nearest_stations.Rd
Given latitude and longitude values entered as decimal degrees (DD), this
function returns a list (as an atomic vector) of station ID
values, which can be used inget_GSOD()
to query for specific stations as an
argument in the station
parameter of that function.
Value
A data.table::data.table with full station metadata including the distance from the user specified coordinates from nearest to farthest.
Note
The GSOD data, which are downloaded and manipulated by GSODR stipulate that the following notice should be given. “The following data and products may have conditions placed on their international commercial use. They can be used within the U.S. or for non- commercial international activities without restriction. The non-U.S. data cannot be redistributed for commercial purposes. Re-distribution of these data by others must provide this same notification.”
Author
Adam H. Sparks, adamhsparks@gmail.com