station.thredds: Read daily station data of the Norwegian Meteorological...

View source: R/station.thredds.R

station.threddsR Documentation

Read daily station data of the Norwegian Meteorological Institute from thredds netCDF using OpenDAP

Description

station.thredds is a wrapper that uses retrieve.station combined with information about the files stored on Thredds. The analysis can also be applied to either EOFs or fields.

Usage

## S3 method for class 'thredds'
station(
  param = "t2m",
  is = NULL,
  stid = NULL,
  loc = NULL,
  lon = NULL,
  lat = NULL,
  it = NULL,
  alt = NULL,
  cntr = NULL,
  start.year.before = NULL,
  end.year.after = NULL,
  nmin = NULL,
  verbose = FALSE,
  onebyone = FALSE,
  ...
)

Arguments

param

The element to read c('t2m','tmax','tmin','precip','slp','sd','fx','fg','dd')

is

Index space to select station (list)

stid

Station ID to select

loc

Name of location to select

lon

Range of longitudes to select

lat

Range of latitudes to select

it

Range of times to select

alt

Range of altitudes to select of stations above (positive) or below (negative) a threshold

cntr

Countries to select

start.year.before

Select stations with record starting before a given year

end.year.after

Select stations with record ending after a given year

nmin

Select stations with minimum number of valid data points

verbose

If TRUE print information about progress.

onebyone

If many stations, select them first individually and then combine

...

Other arguments.

Details

meta.thredds retrieves meta data from Thredds.

Value

A station object.

See Also

retrieve.station, station, radar

Examples

## Get the daily minimum temperature for Oslo-Blindern (station ID 18700)
## Not run: 
tmin <- station.thredds(param='tmax',stid=18700)

meta <- meta.thredds(param='precip')
precip <- station.thredds(meta[1,])

## End(Not run)


metno/esd documentation built on May 4, 2024, 10:58 p.m.