avail.elem {clim.pact} | R Documentation

## Available elements

### Description

The function `avail.preds` searches for available predictors and returns a list of file names. `avail.elem` returns a list of available elements and `avail.locs` a list of available locations. These functions are support functions for `getnacd` and `getnordklim`.

### Usage

    avail.ds(direc="output")
    avail.eofs(direc="data")
    avail.preds(direc="data")
    avail.elem()
    avail.locs(ele)

### Arguments

`direc` | String containing the data directory.
`ele` | Integer code for element in the Nordklim dataset:

101 | mean T(2m)
111 | mean maximum T(2m)
112 | highest maximum T(2m) [Th]
113 | day of Th date Thd
121 | mean minimum T(2m)
122 | lowest minimum T(2m) [Tl]
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 % N
911 | mean snow depth

### Value

avail.preds | vector of characters
avail.locs | a list with name, lons, lats, country, ident
avail.elem | a list with data.set, ele, name

### Author(s)

R.E. Benestad

### Examples

    library(clim.pact)
    avail.elem()$name
    # [1] "mean T(2m)"
    # [2] "mean maximum T(2m)"
    # [3] "highest maximum T(2m)"
    # [4] "day of Th date Thd"
    # [5] "mean minimum T(2m)"
    # [6] "lowest minimum T(2m)"
    # [7] "day of Tl date Tld"
    # [8] "mean SLP"
    # [9] "monthly accum. precip."
    #[10] "maximum precip."
    #[11] "Number of days with snow cover (> 50
    #[12] "Mean cloud cover
    #[13] "mean snow depth"

    # The following assumes that the subdirectory 'data' exists
    ## Not run:
    avail.locs()$name[avail.locs()$country=="FIN"]
    # [1] "HELSINKI"      "TURKU"         "TAMPERE"       "LAPPEENRANTA"
    # [5] "JYVASKYLA"     "KUOPIO"        "KAJAANI"       "OULU"
    # [9] "KUUSAMO"       "SODANKYLA"     "Maarianhamina" "Helsinki"
    #[13] "Turku"         "Huittinen"     "Tampere"       "Hattula"
    #[17] "Heinola"       "Virolahti"     "Lappeenranta"  "Lavia"
    #[21] "Virrat"        "Orivesi"       "Jyvaeskylae"   "Vaasa"
    #[25] "Ylistaro"      "Aehtaeri"      "Kuopio"        "Maaninka"
    #[29] "Joensuu"       "Kestilä"       "Kajaani"       "Oulu"
    #[33] "Yli-Ii"        "Pudasjärvi"    "Kuusamo"       "Sodankylae"

    avail.preds()
    # [1] "eof.dc.Rdata"
    # [2] "eof.dmc.Rdata"
    # [3] "eof.mc2.Rdata"
    # [4] "eof.nn.dc.Rdata"
    # [5] "eof.nn.dmc.Rdata"
    # ...
    ## End(Not run)

[Package Contents]