Message-ID: <CAFEqCdzy+Y8yK0Mie1q9H=0CWQhcKsOZQOm5PMT1QKKGg5kdUg@mail.gmail.com>
Date: 2016-08-01T18:01:10Z
From: Greg Snow
Subject: Climate data in R
In-Reply-To: <CAMLwc7Od_CEOEkVnQtKaR0LRuxoOtXpLXgC5h6T6hZiUvfBsuA@mail.gmail.com>
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:
> 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 at 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.
538280 at gmail.com