Downloading Station Data

Description

Downloading Station Data

Usage

ms_stationdata(
  id,
  stations,
  resolution = c("h", "t", "d", "m", "y"),
  parameters = NULL,
  start = NULL,
  end = NULL,
  cachedir = NULL,
  verbose = FALSE,
  language = "en"
)

## S3 method for class 'ms_stationdata'
print(x, ...)

## S3 method for class 'ms_stationdata'
head(x, n = 6L, ...)

## S3 method for class 'ms_stationdata'
tail(x, n = 6L, ...)

## S3 method for class 'ms_stationdata'
plot(x, ...)

Arguments

id the identifier of the dataset (collection).
stations vector with station abbreviations (station identifiers). Not case sensitive.
resolution character, temporal resolution (h = hourly, t = 10 minutes, d = daily, m = monthly, y = annual/yearly).
parameters if NULL all paramters found will be returned. Can be a character vector with existing parameter shortnames.
start NULL or the start date/time.
end NULL or end date/time. If both start and end are NULL the most recent observations are returned.
cachedir NULL or path to a directory to cache data.
verbose logical, defaults to FALSE.
language forwarded to ms_metadata().
x object of class ms_stationdata.
forwarded to plot.zoo().
n integer, number of observations to be returned.

Value

On success a zoo object or a list of zoo objects is returned (if multiple stations are processed at the same time).

Author(s)

Reto