ghcnd.meta: Fetch station data from GHND and convert into 'station'...

View source: R/GHCND.R

ghcnd.metaR Documentation

Fetch station data from GHND and convert into station objects.

Description

Transform an input object into the esd class station. ghcnd.meta reads the inventory and metadata of the stations (slow due to big data volume - requires Internet access).

Usage

ghcnd.meta(
  is = NULL,
  url =
    "https://www.ncei.noaa.gov/data/global-historical-climatology-network-daily/doc/ghcnd-stations.txt"
)

Arguments

url

lURL of the database

x

a 'stationmeta' object

Details

ghcnd.station reads the raw data (slow due to big data volume - requires Internet access).

See Also

station as.station ghcnd.meta ghcnd.station

Examples

## Not run: 
meta <- ghcnd.meta(is=list(cntr=c('Mozambique','Zimbabwe','Malawi')))
m <- subset(meta,lon=c(24,35),lat=c(-30,-25),verbose=TRUE)
y <- ghcnd.station(subset(m,is=1:10),verbose=TRUE)

## End(Not run)


metno/esd documentation built on April 29, 2024, 3:34 p.m.