ropensci / rnoaa

R interface to many NOAA data APIs
https://docs.ropensci.org/rnoaa
Other
330 stars 84 forks source link

Retain input lat and lon when using meteo_nearby_stations? #399

Open pdeshlab opened 3 years ago

pdeshlab commented 3 years ago

Hi! I'm using the rnoaa package to pull data from weather stations and then match that data to survey respondents. These respondents have geodata attached to them, so it would be great if I could match the output of meteo_nearby_stations to link which stations are closest to which respondents based on their geodata. Right now, meteo_nearby_stations outputs the lat and lon coordinates of pulled weather stations, but not the original coordinates used to search for those stations.

Is there a function in the package that does this that I'm missing? If not, is there any community interest (besides myself) in this capability being added or ways I can match pulled data (either a list of stations or the relevant temp data for those stations) to input datframes (the lat lon coordinates used to query stations!).

Session Info ```r Session info ----------------------------------------------------------------------------------------------------- setting value version R version 4.1.0 (2021-05-18) os Windows 10 x64 system x86_64, mingw32 ui RStudio language (EN) collate English_United States.1252 ctype English_United States.1252 tz America/New_York date 2021-08-11 ```
sckott commented 3 years ago

Thanks for your question @pdeshlab

There is a new rnoaa maintainer -> @djhocking Any thoughts Daniel?

djhocking commented 3 years ago

It seems like something that would be valuable to have. I don't have an immediate solution but also don't think it should be too hard to implement. Let me dig in this weekend or early next week and let you know. Also, happy to have a pull request if @pdeshlab finds a solution in the meantime.