dot-sim_once: Generate a Single Simulation of Tidal Deviations

Description Usage Arguments Details Value See Also

Description

Simulates a single random time series, based on an ARIMA model. Can accept regression parameters as well, usually Year and an annual (season) fourier decomposition. terms

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
.sim_once(
  .data,
  .dt,
  .predicted,
  .model,
  .slr,
  .fldlvl,
  .wl_update = 0,
  .len = NULL
)

Arguments

.data

A source data frame. can be NULL if .dt and .wl are defined in the enclosing environment.

.dt

Dates and times. A data column in .data or a data vector defined in the enclosing environment that contains date-time information. Must inherit from POSIXct.

.predicted

The (astronomical) tidal predictions. A numerical data column in .data or a numerical vector defined in the enclosing environment.

.model

a time series model with a suitable simulate() method, usually an ARIMA model model of class = c("ARIMA").

.slr

Sea level rise estimate. A numeric vector containing one or more values. What sea level rise scenarios should the analysis be based on? Selection of appropriate sea level rise estimates should be based on your time horizon and risk tolerance. NOAA forecasts of SLR for 2100 vary from 0.3 (almost certain) to 2.5 (highly unlikely) meters.

.fldlvl

Flood level. A single numeric value, that defines what constitutes a flood event. Must be specified in floodcast_tub(). In floodcast_tub_lookup(), will default to the "Highest Astronomical Tide" elevation, or HAT for the selected tide station.

.wl_update

A single numeric value that adjusts for any changes in sea level from the tidal epoch to the present day.

.len

Desired length of simulated output. IF NULL, defaults to the length of the input deviations.

Details

For now, both .nonzero and .seasonal are needed to correctly interpret the .coefs parameter. That may change as we revise this function, as the

Value

numerical vector of length equal to input vector

See Also

Other Flood frequency analysis functions: floodcast_tub(), floodfreq(), floodgraph(), floodmean()


ccb60/SLRSIM documentation built on Jan. 21, 2022, 1:31 a.m.