Skip to content

Climate data in R

2 messages · Miluji Sb, Greg Snow

#
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
#
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 <milujisb at gmail.com> wrote: