addClim {clim.pact} | R Documentation

## Add climatology

### Description

Adds the climatological values to anomalies. The inverse of `anomaly.station`.

### Usage

    addClim.station(x,param=c("t2m","precip"))
    preClim.station(x,dd=NULL,mm=NULL,yy=NULL,param=1)

### Arguments

`x` | A station object or a vector.
`mm` | month
`dd` | day.
`yy` | year.
`param` | For daily objects: identifies the parameters (addClim.station) or determines which model to use (preClim.station).

### Value

A station object (addClim.station) or a vector (preClim.station).

### Author(s)

R.E. Benestad

### Examples

    data(oslo.dm, envir=environment())
    oslo.dma <- anomaly.station(oslo.dm)
    oslo.dmac <- addClim.station(oslo.dma)
    plot(oslo.dm$yy+(oslo.dm$mm-1)/12+oslo.dm$dd/365.25,oslo.dm$t2m,type="l",lwd=3,col="grey",xlim=c(1980,1985))
    lines(oslo.dm$yy+(oslo.dm$mm-1)/12+oslo.dm$dd/365.25,oslo.dmac$t2m,lty=2)
    lines(oslo.dm$yy+(oslo.dm$mm-1)/12+oslo.dm$dd/365.25,
          preClim.station(oslo.dma, oslo.dm$dd, oslo.dm$mm, oslo.dm$yy),col="red",lwd=2)

[Package clim.pact version 2.2-1 Index]