station.obj {clim.pact} | R Documentation

## Make monthly climate station series object.

### Description

Create a station object for use as predictand in empirical downscaling on monthly data. Also see `station.obj.dm`.

### Usage

    station.obj(x,yy,obs.name,unit,ele=NULL, mm=NULL,
                       station=NULL,lat=NULL,lon=NULL,alt=NULL,
                       location="unspecified",wmo.no=NULL,
                       start=NULL,yy0=NULL,country=NULL,ref=NULL)

### Arguments

`x` | the data: a matrix of 12 columns holding the observations of each calendar month: column 1 holds January values, col 2 holds February, .. col 12 holds December values.
`yy` | A vector holding the year of observation of the same length as each of the 12 columns. Or a vector with the same length as the data if `mm` is given.
`mm` | a vector of months with the same length as the data (optional).
`obs.name` | the name of observation (e.g. "Temperature").
`unit` | the unite of observation (e.g. "deg C").
`ele` | element code (e.g. 101).
`station` | local (national) station number.
`lat` | latitude.
`lon` | longitude.
`alt` | altitude.
`location` | name of location.
`wmo.no` | WMO number of station.
`start` | start of measurements.
`yy0` | first year of record.
`country` | name of country.
`ref` | reference to the data.

### Value

a "monthly.station.record"-class object.

val | The monthly values (a 12-column matrix with one column for each year)
station | station number.
yy | The years of observation (vector).
lat,lon | Latitude and longitude of the location.
x.0E65N,y.0E65N | Distance in km from 0E, 65N.
location | Name of location .
wmo.no | WMO number.
start | Start of observatins from this location.
yy0 | First year in current record.
ele | Code of theelement.
obs.name | Name of the element.
unit | Unit of the element.
country | The country in which the location is located.
quality | Code/description for data quality.
found | Flag: T-> the data requested was found.
ref | Reference for the data set.

author{R.E. Benestad}

### Author(s)

R.E. Benestad

### Examples

    ## Not run:
    a <- read.table("data/bjornholt.dat",
                      col.names=c("station","year","month","rr",
                        "tam","sam","sdm","uum","pom","tax","tan"))
    obs <- station.obj(x=a$rr,yy=a$year,mm=a$month,
                       obs.name="Precipitation",unit="mm",ele=601,
                       lat=60.03,lon=10.41,alt=360,
                       station=a$station[1],location="Bjornholt",
                       country="Norway",ref="met.no Climate data base")
    plot(obs,mon=11)
    ## End(Not run)

[Package Contents]