Description Usage Arguments Value Author(s) Examples
Query an object of class 'sim1D' holding the output of a dynamic, 1D model.
1 2 |
obj |
Object created with |
item |
Name of a state variable or process (character string). |
rangeT |
Time range. Data outside this range are dropped. |
rangeX |
Range of spatial coordinates (e.g. depths). Data outside this range are dropped. |
partly |
Logical. If |
attrib |
Logical. Controls whether the return values has additional attributes set (see below). |
A numeric matrix where rows represent time and columns represent
boxes/layers. The matrix has neither row names nor column names, but
if attrib
is TRUE
, the following attributes are set:
times
: Numeric vector of times corresponding to the rows.
coordinates
: Spatial coordinates corresponding to the
columns. This is a matrix with two colums 'min' and 'max'.
David Kneis david.kneis@tu-dresden.de
1 2 3 4 5 6 7 8 9 10 11 | gr <- makeGrid(dz0=0.01, dzMax=0.02, zMax=0.1, beta=1)
times <- 0:2
vars <- c("A","B")
pros <- c("X","Y")
values <- matrix(1:(length(times)*nrow(gr)*(length(vars)+length(pros))),
nrow=length(times))
dyn <- cbind(times, values)
colnames(dyn) <- c("time", paste(rep(vars, each=nrow(gr)), 1:nrow(gr),sep="."),
paste(rep(pros, each=nrow(gr)), 1:nrow(gr),sep="."))
obj <- sim1D.create(dyn, namesVars=vars, namesPros=pros, xMin=gr$zUp, xMax=gr$zLw)
sim1D.query(obj, item="X")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.