<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>Hi all, </div><div> </div><div><font face="Times New Roman">
</font></div><div style="margin: 0in 0in 0pt;"><span style="color: rgb(33, 33, 33);"><font face="Calibri">I have been attempting to pull “dswrfsfc”
(incoming solar radiation) at a specific latitude and longitude from the historical NAM data set available through rNOMADS. I followed
the example shown in various parts of the package notes where data is pulled
for Chapel Hill, NC. I am attempting to pull data for a location not too far from
Chapel Hill (Murfreesboro, NC). However, when I attempt to pull either solar
radiation or 2 meter temperature data for a given hour, I get 24 rows of data
with a longitude far away from my desired location and a latitude somewhat
nearby. I was under the impression that I should only get one row of data
closest to my desired location since I’m only querying for one specific hour. I
am not completely sure I understand the code to query data closest to a
desired location given a latitude and longitude... I have included this code in the attached items with my specific lat and lon ( file name: rNOMADS lat-lon code). Could someone please explain code here a little more in-depth than is shown in on the package vignette? </font><o:p></o:p></span><font face="Times New Roman"></font></div><span style="color: rgb(33, 33, 33);"></span><div><font face="Times New Roman"></font> </div><div style="margin: 0in 0in 0pt;"><span style="color: rgb(33, 33, 33);"><font face="Calibri">I
have also attached my script that I wrote to retrieve point specific model data for
Murfreesboro (Murphy solar) and an example of the 24 row data frame that it creates. The
script was written as a function where the input is a specific number assigned to a url
from the historical NAM list. An example input would be 1473 which is the url
for NAM runs on September 1<sup><font size="2">st</font></sup>, 2014. I am hoping to fix the code so that it only returns one row of data instead of 24. </font><o:p></o:p></span></div><div><font face="Times New Roman">
</font></div><span style="color: rgb(33, 33, 33);"><div style="margin: 0in 0in 0pt;"><font face="Calibri">I have also written a script
that pulls more than one model at a time using a for loop, but this lat lon
issue seems to be inhibiting me from creating a proper final output data frame
with good data. Once I figure out the lat lon issue here, I will certainly share this code for all to use!</font></div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;"><font face="Calibri"></font> </div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;"> </div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;">Thank you, </div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;"> </div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;">Adam Simkowski
</div><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;"> </div></span><div style="margin: 0in 0in 0pt; color: rgb(33, 33, 33); font-family: Calibri; font-size: 16px; font-style: normal; background-color: transparent;"> </div><o:p style="margin: 0in 0in 0pt;"></o:p><div><font face="Times New Roman"></font> </div><div style="margin: 0in 0in 0pt;"><span style="color: rgb(33, 33, 33);"><font face="Calibri"> </font><o:p></o:p></span></div><div><font face="Times New Roman">
</font></div></div></body></html>