metaclipR.etccdi: Directed metadata graph construction for ETCDDI climate index...

Description Usage Arguments Details Author(s) References See Also Examples

Description

Build a directed metadata graph describing a ETCDDI climate index transformation on a climate4R grid

Usage

1
2
metaclipR.etccdi(graph, package = "climate4R.climdex", version = "0.1.2",
  output = NULL, fun = "climdexGrid", arg.list = NULL)

Arguments

graph

Output from previous metaclipR function. A list with an i-graph class object plus the name of the parent node from which the climate index step hangs. transformeR indicated in argument fun.

package

package

version

version

output

Optional. The output R object name, as character string

fun

function name. Unused (set to "climdexGrid")

arg.list

Argument list. See details

Details

This function takes as reference the semantics defined in the Data Source and Transformation ontology defined in the Metaclip Framework (http://metaclip.predictia.es/).

Argument list

The following (minimal) list of arguments is required to define an ETCCDI climate index transformation:

Further optional arguments can be passed to arg.list for a more detailed description of the command call. The different arguments are explained in the the help page of climdexGrid.

Author(s)

D. San Martín, J. Bedia

References

METACLIP Overview

Visual schema of the data transformation ontology

Climate4R page at University of Cantabria

See Also

Other transformation: metaclip.graph.Command, metaclipR.Aggregation, metaclipR.AnomalyCalculation, metaclipR.Climatology, metaclipR.Dataset, metaclipR.Ensemble, metaclipR.Regridding

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Not run: 
require(climate4R.climdex)
require(igraph)
data("tasmax.eobs")
a <- metaclipR.DatasetSubset(output = "tasmax.eobs",
                             fun = "subsetGrid",
                             arg.list = list(lonLim = c(-10,4.5),
                             latLim = c(35,44),
                             season = 1:12,
                             years = 1991:2010))

tx10p <- climdexGrid(index.code = "TX10p",
                     tx = tasmax.eobs,
                     index.arg.list = list(freq = "annual"))

arg.list <- list(index.code = "TX10p",
                 index.arg.list = list(freq = "annual"))

require(visualizeR)
spatialPlot(climatology(tx10p),
            backdrop.theme = "countries",
            main = "Mean percentage of days when TX < 10 degC (1991-2010)")
metadata <- metaclipR.etccdi(graph = a, arg.list = arg.list)            
plot(metadata$graph)

## End(Not run)

Predictia/metaclipR documentation built on May 14, 2019, 6:07 a.m.