Description Usage Arguments Value Examples
View source: R/temperature_curve.r
Takes the specified parameters for amplitude, period, phase and average value as well as the number of years specified and the time interval. It then creates a sinusoid based on the boundary conditions. Used as intermediate step during iterative modeling.
1 | temperature_curve(T_par, years = 1, t_int = 1)
|
T_par |
List of four parameters describing (in order) amplitude
( |
years |
Length of the preferred sinusoid in number of years (defaults to 1) |
t_int |
Time interval of sinusoidal record (in days) |
A matrix containing columns for time (in days) and SST (in degrees C)
1 2 3 4 5 6 7 | # Set parameters
T_amp <- 20
T_per <- 365
T_pha <- 150
T_av <- 15
T_par <- c(T_amp, T_per, T_pha, T_av)
SST <- temperature_curve(T_par, 1, 1) # Run the function
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.