Description Usage Arguments Details Author(s) References See Also Examples
Build a directed metadata graph describing a regridding Transformation on a climate4R grid
1 2 | metaclipR.Regridding(graph, package = "transformeR", version = "1.3.2",
fun = "interpGrid", arg.list = NULL)
|
graph |
A previous metaclipR data structure from which the current step follows |
package |
package |
version |
version |
fun |
function name. Unused (set to |
arg.list |
Argument list. See 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 list of arguments is required to define an aggregation:
new.coordinates
method
bilin.method
The different arguments are explained in the the help page of interpGrid
.
D. San MartÃn, J. Bedia
Climate4R page at University of Cantabria metaclip.predictia.es
Other transformation: metaclip.graph.Command
,
metaclipR.Aggregation
,
metaclipR.AnomalyCalculation
,
metaclipR.Climatology
,
metaclipR.Dataset
,
metaclipR.Ensemble
,
metaclipR.etccdi
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 27 28 29 30 31 32 33 34 35 36 37 | require(transformeR)
require(igraph)
pkg <- "transformeR"
v <- "1.1.1"
# Assume a given hindcast DatasetSubset:
data("CFS_Iberia_hus850")
DS <- subsetGrid(CFS_Iberia_hus850, members = 1:3, years = 1989:1991)
graph <- metaclipR.DatasetSubset(package = pkg,
version = v,
arg.list = list(members = 1:3,
years = 1989:1991),
fun = "subsetGrid",
output = "DS")
# Data are regridded to the regular EOBS 0.25 grid
data("EOBS_Iberia_tas")
ref.grid <- getGrid(EOBS_Iberia_tas)
# We apply the fast 'akima' interpolator
out <- interpGrid(DS,
new.coordinates = ref.grid,
method = "bilinear",
bilin.method = "akima")
plotClimatology(climatology(out), backdrop.theme = "coastline")
# This is how metadata is encoded:
# 1.) We identify the origin node from which the first transformation hangs:
graph$parentnodename
# 2.) Argument list
arg.list <- list("new.coordinates" = ref.grid,
"method" = "bilinear",
"bilin.method" = "akima")
# 3.) metaclipR.Regridding is called:
graph <- metaclipR.Regridding(package = pkg,
version = v,
graph = graph,
fun = "interpGrid",
arg.list = arg.list)
# This is the graph structure containing the metadata:
plot(graph$graph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.