View source: R/temperature_curve.r
temperature_curve | R Documentation |
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.
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)
# 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.