Skip to content

2. Data handling

abdelkaderm edited this page Sep 9, 2014 · 5 revisions

Weather Station data (local and global datasets) from the web

Retrieve data from predefined datasets e.g. METNO

Get mean temperature for "Oslo" station ("18700") from METNO data source

for daily,

> t2m.dly <- station.metnod(stid="18700",param="t2m")

for monthly,

> t2m.mon <- station.metnom(stid="18700",param="t2m")

Aggregate into mean annual values and plot the values

> t2m.ann <- as.annual(t2m.mon, FUN = "mean")

> plot(t2m.ann)

Add the linear trend

> lines(trend(t2m.ann),col="red",lwd=2)

Create a station from scratch

s <- as.station(stid="18700",loc="Oslo-Blindern",lon="",lat="",...)

Pre-processing the data

Retrieve field data (Reanalysis, GCMs, ...)

Retrieve ERAINT reanalysis eraint <- retrieve(ncfile=")

Clone this wiki locally