Description Usage Arguments Details Value Author(s) Examples
Get geographic distance to nearest CIMIS stations
1 2 |
lat |
The latitude, in decimal degrees |
lon |
longitude, in decimal degrees |
n |
number of nearest stations to return |
FUN |
the function used to calculate the distance. Passed to the |
cached |
logical, should the cached station information be used, or should a up to the date version be retrieved from CIMIS |
StnInfo |
object providing details of the CIMIS weather stations. This can be retrieved
using |
This function gets the nearest n stations from a geographic point.
a subset of StnInfo
ordered by distance to the specificed point, with the distance in Km added
Matt Espe
1 2 | #Get the 5 closest stations
getDists(37.8, -121.22, n = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.