temperature_curve: Function that creates a sinusoidal Sea Surface Temperature (SST) curve
from a list of parameters
Description
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.
Usage
temperature_curve(T_par, years = 1, t_int = 1)
Arguments
T_par
List of four parameters describing (in order) amplitude
(T_amp; in degrees C), period (T_per; in days), phase
(T_pha in day of the year) and average temperature (T_av;
in degrees C)
years
Length of the preferred sinusoid in number of years (defaults
to 1)
t_int
Time interval of sinusoidal record (in days)
Value
A matrix containing columns for time (in days) and SST (in degrees C)