00001 #define tavg_boxcar 1 00002 #define tavg_cosine 2 00003 #define tavg_fourth 3 00004 #define tavg_hathaway 4 00005 00006 int tinterpolate( 00007 int nsample, // Number of input times 00008 double *tsample, // Input times 00009 double tint, // Target time 00010 int nconst, // Number of polynomial terms exactly reproduced 00011 float **images, // Pointer array to input images 00012 unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing 00013 float *image_out, // Interpolated image 00014 int nx, // Number of points in dimension adjacent in memory 00015 int ny, // Number of points in dimension not adjacent in memory 00016 int nlead, // Leading dimension of arrays. nlead>=nx 00017 int method, // Interpolation method 00018 char **filenamep, // Pointer to name of file to read covariance from. 00019 // Set to actual file used if method > 0. 00020 float fillval, // Value to use if not enough points present 00021 const char *path // to data files read by this function. 00022 ); 00023 00024 int taverage( 00025 int nsample, // Number of input times 00026 double *tsample, // Input times 00027 double tint, // Target time 00028 int nconst, // Number of polynomial terms exactly reproduced 00029 float **images, // Pointer array to input images 00030 unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing 00031 float *image_out, // Interpolated image 00032 int nx, // Number of points in dimension adjacent in memory 00033 int ny, // Number of points in dimension not adjacent in memory 00034 int nlead, // Leading dimension of arrays. nlead>=nx 00035 int method, // Interpolation method 00036 char **filenamep, // Pointer to name of file to read covariance from. 00037 // Set to actual file used if method > 0. 00038 int avmethod, // averaging method 00039 int order, // Interpolation order 00040 double tspace, // Spacing of times to interpolate to 00041 int hwidth, // Window width in units of tspace. Total width is 2*hwidth+1 00042 double par1, // In units of tspace. Meaning depends on avmethod. 00043 double par2, // In units of tspace. Meaning depends on avmethod. 00044 float fillval, // Value to use if not enough points present 00045 const char *path // to data files read by this function. 00046 ); 00047 00048 char *tinterpolate_version(); // Returns CVS version of tinterpolate.c 00049