time_window_TDL_Licor_interp: keep only the overlapping time window of TDL and Licor files

Description Usage Arguments Details Value

Description

interpolate the Licor measurements via cubic splines to TDL faster sampling rate assign variables names within TDL and Licor_interp

Usage

1
time_window_TDL_Licor_interp(TDL, Licor, TDL_Licor_times, sw)

Arguments

TDL

xxxPARAMxxx

Licor

xxxPARAMxxx

TDL_Licor_times

xxxPARAMxxx

sw

xxxPARAMxxx

Details

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.

Value

TDL_and_Licor_interp xxxRETURNxxx


erikerhardt/isogasex documentation built on July 16, 2019, 5:25 a.m.