Description Usage Arguments Details Value
interpolate the Licor measurements via cubic splines to TDL faster sampling rate assign variables names within TDL and Licor_interp
1 | time_window_TDL_Licor_interp(TDL, Licor, TDL_Licor_times, sw)
|
TDL |
xxxPARAMxxx |
Licor |
xxxPARAMxxx |
TDL_Licor_times |
xxxPARAMxxx |
sw |
xxxPARAMxxx |
BEGIN If use TDL
- Indices to keep based on TDL/Licor time window overlap.
- TDL summary ind to keep.
- Reduce TDL summary.
- Reduce TDL interp.
END
BEGIN If use Licor
- Indices to keep based on TDL/Licor time window overlap.
- Use zoo
to merge the times for TDL and Licor.
Create Licor_interp
to hold interpolated Licor values at resolution of TDL observations.
populate with observed values in right locations
These indices have actual Licor values, the others are interpolated.
Some Licor values maybe shouldn't be interpolated –
If all values are NA, then consider column as a missing column and don't interp.
Cubic interpolation of Licor values to TDL sampling time points using nknots
=df
=
Cubic spline interpolation using smooth_spline
with nknots
=df
=number of Licor times matching TDL times.
END
Put TDL and Licor_interp together to return.
TDL_and_Licor_interp xxxRETURNxxx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.