Description Usage Arguments Value Examples
Get the time values of the time step or stress period divides from a DIS package or a MODFLOW NetCDF data set. Stress periods define periods of different boundary condition stresses. Stress periods are divided into multiple time steps in order to describe the transient response accurately.
1 2 3 |
data |
DIS.MFpackage or NetCDF object; mfsptime does not yet support NetCDF |
absolute |
logical |
t0 |
numeric |
mftstime
:
numeric [NTS + 1]
, where NTS
is the number of time steps;
the time values at the time step transitions, including the start and end
times of the model
mfsptime
:
numeric [NPER + 1]
, where NPER
is the number of stress
periods; the time values at the stress period transitions, including the
start and end times of the model
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 | # using DIS.MFpackage
dis <- read.DIS(system.file("rflow_mf_demo.dis",
package = "Rflow"))
mftstime(dis)
mfsptime(dis)
# - with a made-up start time for demonstration purposes
mftstime(dis, TRUE, 1000)
mfsptime(dis, TRUE, 1000)
# using a NetCDF
mfdata <- RNetCDF::open.nc({
system.file("rflow_mf_demo.nc", package = "Rflow")
})
mftstime(mfdata)
# - the start time is in fact 0 for the demo, so this will show no
# difference
mftstime(mfdata, TRUE)
# - if t0 is given with a NetCDF, a warning is given to avoid
# ambiguity
## Not run: mftstime(mfdata, TRUE, 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.