The rnoaa package has the function ncdc_stations which can be used to search for stations in a region. You could use that giving it an extent around the coordinates that you are interested in (add and subtract a small amount from the coordinates), then pass the results from that function (possibly subsetted) into the ncdc function.
On Mon, Aug 1, 2016 at 8:06 AM, Miluji Sb <miluj...@gmail.com> wrote: > Dear all, > > I have a set of coordinates. Is it possible to extract climate data > (temperature and precipitation) by coordinates using the R packages such as > rnoaa? > > For example; > > out <- ncdc(datasetid='ANNUAL', stationid='GHCND:USW00014895', > datatypeid='TEMP') > > But instead of stationid can I pass a list of coordinates through it? > Thanks a lot! > > Sincerely, > > Milu > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.