station.senda: A function that provides reads S-ENDA data from thredds.

View source: R/filesfromthredds.R

station.sendaR Documentation

A function that provides reads S-ENDA data from thredds.

Description

A function that provides reads S-ENDA data from thredds.

Usage

## S3 method for class 'senda'
station(
  stid = 18700,
  param = "precip",
  freq = "day",
  FUN = "default",
  start.precip = 7,
  ...,
  caturl = "https://thredds.met.no/thredds/dodsC/met.no/observations/surface/",
  verbose = FALSE
)

Arguments

stid

station ID or the S-ENDA metadata object

param

parameter ('precip'|'t2m')

freq

frequency of the data

FUN

function for aggregating data (e.g. sub-daily for generating daily data)

start.precip

Hour of daily start of the accumulated rainfall

caturl

url of the thredds ctalogue containing the files

verbose

if true promt test lines

See Also

retrieve list_thredds meta.s_enda

Examples

## Not run: 
x <- station.senda()
x <- station.senda(param='t2m')
## Using the S-ENDA metadata (it takes some time to fetch themetadata...)
meta <- meta.senda()
x <- station.senda(meta[1:2,])

## End(Not run)

metno/esd documentation built on Feb. 25, 2025, 6:44 p.m.