The function estimates temperature for a specified hour using the sine interpolation in Campbell and Norman (1998) .

diurnal_temp_variation_sine(T_max, T_min, t)

Arguments

T_max, T_min

numeric maximum and minimum daily temperatures (C).

t

numeric time for temperature estimate (hour).

Value

numeric temperature (C) at a specified hour.

References

Campbell GS, Norman JM (1998). Introduction to environmental biophysics, 2nd ed. edition. Springer, New York. ISBN 0387949372.

Examples

  diurnal_temp_variation_sine(T_max = 30, 
                              T_min = 10, 
                              t     = 11)
#> [1] 25.08958