#define tavg_boxcar 1 #define tavg_cosine 2 #define tavg_fourth 3 #define tavg_hathaway 4 int tinterpolate( int nsample, // Number of input times double *tsample, // Input times double tint, // Target time int nconst, // Number of polynomial terms exactly reproduced float **images, // Pointer array to input images unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing float *image_out, // Interpolated image int nx, // Number of points in dimension adjacent in memory int ny, // Number of points in dimension not adjacent in memory int nlead, // Leading dimension of arrays. nlead>=nx int method, // Interpolation method char **filenamep, // Pointer to name of file to read covariance from. // Set to actual file used if method > 0. float fillval, // Value to use if not enough points present const char *path // to data files read by this function. ); int taverage( int nsample, // Number of input times double *tsample, // Input times double tint, // Target time int nconst, // Number of polynomial terms exactly reproduced float **images, // Pointer array to input images unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing float *image_out, // Interpolated image int nx, // Number of points in dimension adjacent in memory int ny, // Number of points in dimension not adjacent in memory int nlead, // Leading dimension of arrays. nlead>=nx int method, // Interpolation method char **filenamep, // Pointer to name of file to read covariance from. // Set to actual file used if method > 0. int avmethod, // averaging method int order, // Interpolation order double tspace, // Spacing of times to interpolate to int hwidth, // Window width in units of tspace. Total width is 2*hwidth+1 double par1, // In units of tspace. Meaning depends on avmethod. double par2, // In units of tspace. Meaning depends on avmethod. float fillval, // Value to use if not enough points present const char *path // to data files read by this function. ); char *tinterpolate_version(); // Returns CVS version of tinterpolate.c