rnoaa icon indicating copy to clipboard operation
rnoaa copied to clipboard

Retain input lat and lon when using meteo_nearby_stations?

Open pdeshlab opened this issue 4 years ago • 2 comments

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
 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                            

pdeshlab avatar Aug 12 '21 00:08 pdeshlab

Thanks for your question @pdeshlab

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

sckott avatar Aug 12 '21 20:08 sckott

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.

djhocking avatar Aug 12 '21 21:08 djhocking