HOMR
(Historical Observing Metadata Repository) provides climate station metadata. It’s a NOAA service.
Find out more about HOMR at http://www.ncdc.noaa.gov/homr/ and the HOMR API at http://www.ncdc.noaa.gov/homr/api.
You can do this in various ways. Using the qid
parameter (stands or qualified ID, as far as I know), you can search by suffix (e.g., 046742
), or both separated by a colon (e.g., COOP:046742
).
By station suffix
By both
You can also search by station identifier, which is different from the qid
above.
By state
By country
res <- homr(country='GHANA', begindate='2005-01-01', enddate='2005-02-01')
library("dplyr")
bind_rows(lapply(res, function(x) x$location$latlon))
By state and county