| station.obj {clim.pact} | R Documentation |
Create a station object for use as predictand in empirical
downscaling on monthly data. Also see station.obj.dm.
The ele codes are taken from the Nordklim and NACD data sets: 101='mean T(2m)',111='mean maximum T(2m)',112='highest maximum T(2m)',113='day of Th date Thd',121='mean minimum T(2m)',122='lowest minimum T(2m)',123='day of Tl date Tld',401='mean SLP',601='monthly accum. precip.',602='maximum precip.',701='Number of days with snow cover (> 50% covered) days dsc',801='Mean cloud cover
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)
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. |
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. |
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 the element. |
| 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. |
R.E. Benestad
## 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)