Syntax:

-resample <"nearest" | "linear" | "spline" ["left" yp1] ["right" ypn] | "splinemonotonic" | "bspline" ["nbreaks" nbreaks] ["order" order] > ["file" <"fix" times_file ["column" time_column] | "list" ["listcolumn" col] ["tcolumn" time_column] > | ["tstart" <"fix" tstart | "fixcolumn" <colname | colnum> | "list" ["column" col] | "expr" expression > ] ["tstop" <"fix" tstop | "fixcolumn" <colname | colnum> | "list" ["column" col] | "expr" expression > ] [["delt" <"fix" delt | "fixcolumn" <colname | colnum> | "list" ["column" col] | "expr" expression > ] | ["Npoints" <"fix" Np | "fixcolumn" <colname | colnum> | "list" ["column" col] | "expr" expression > ]]] ["gaps" <"fix" time_sep | "fixcolumn" <colname | colnum> | "list" ["column" col] | "expr" expression | "frac_min_sep" val | "frac_med_sep" val | "percentile_sep" val> <"nearest" | "linear" | "spline" ["left" yp1] ["right" ypn] | "splinemonotonic" | "bspline" ["nbreaks" nbreaks] ["order" order] >] ["extrap" <"nearest" | "linear" | "spline" ["left" yp1] ["right" ypn] | "splinemonotonic" | "bspline" ["nbreaks" nbreaks] ["order" order] >]

Example 1.
./vartools -i EXAMPLES/2 -resample linear \
    -o EXAMPLES/2.resample.example1

Resample the light curve EXAMPLES/2 using linear interpolation and extrapolation, with default options for determining the resample times. Output the resampled light curve to the file EXAMPLES/2.resample.example1.

Example 2.
./vartools -i EXAMPLES/2 -resample splinemonotonic \
    tstart fix 53726 tstop fix 53756 Npoints fix 1000 \
    -o EXAMPLES/2.resample.example2

Resample the light curve EXAMPLES/2 using monotonic spline interpolation. Specify the start and stop times for the resampled points, and also specify the number of resampled points. Output the resampled light curve to the file EXAMPLES/2.resample.example2.

Example 3.
./vartools -i EXAMPLES/4 -resample linear \
    file fix EXAMPLES/8 \
    -o EXAMPLES/4.resample.example3

Resample the light curve EXAMPLES/4 onto the same time-base as the light curve EXAMPLES/8 using linear interpolation. Output the result to EXAMPLES/4.resample.example3.

Example 4.
./vartools -i EXAMPLES/1 -resample splinemonotonic \
    tstart fix 53725 tstop fix 53757 delt fix 0.001 \
    gaps percentile_sep 80 bspline nbreaks 15 order 3 \
    extrap nearest \
    -o EXAMPLES/1.resample.example4

Resample the light curve EXAMPLES/1 onto a uniform time-base between t=53725 and t=53757 with a step-size of 0.001 days. Use different methods of interpolation for resampled points that are close to observed times, for those that are far from observed times, and for those that are extrapolations beyond the observed time-range. For the close points we will use monotonic spline interpolation, while for the far points we use B-spline interpolation (using 15 breaks and a third order spline). The cutoff between near and far separations is taken to be the 80th percentile of the time separations in the input light curve. For extrapolated points we will use the nearest neighbor resampling. The result is output to the file EXAMPLES/1.resample.example4.