Description Usage Arguments Details Value Examples
Find the co-ordinates of column (gccs
) or row (grcs
)
dividers from the DIS package or the NetCDF-format output data.
1 2 3 4 5 |
data |
DIS.MFpackage or NetCDF object; MODFLOW data relating to the model |
absolute |
logical |
x0, y0 |
numeric |
v |
numeric |
gccs
and grcs
return the x co-ordinates of the column
dividers and the y co-ordinates of the row dividers respectively, in
each case in ascending order, which will be the reverse of the row
order in the latter case. Wrap with mids
to find the midpoints,
that is the node centres.
gccs
: numeric [NCOL + 1]
grcs
: numeric [NROW + 1]
mids
: numeric [length(v) - 1]
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 | # using DIS.MFpackage
dis <- read.DIS(system.file("rflow_mf_demo.dis",
package = "Rflow"))
gccs(dis)
grcs(dis)
# arbitrary origin
gccs(dis, TRUE, 1000)
# using NetCDF
mfdata <- RNetCDF::open.nc({
system.file("rflow_mf_demo.nc", package = "Rflow")
})
gccs(mfdata)
grcs(mfdata)
# origin is in fact 0,0 for the demo, so these will show no difference
gccs(mfdata, TRUE)
grcs(mfdata, TRUE)
# - if t0 is given with a NetCDF, a warning is given to avoid
# ambiguity
## Not run: gccs(mfdata, TRUE, 1000)
# node centre x and y co-ordinates:
# - x
mids(gccs(mfdata, TRUE))
# - y
mids(grcs(mfdata, TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.