ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/libs/interpolate/tinterpolate.h
Revision: 1.8
Committed: Tue Dec 6 18:11:03 2011 UTC (11 years, 9 months ago) by arta
Content type: text/plain
Branch: MAIN
CVS Tags: Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_9-1, Ver_LATEST, Ver_9-3, Ver_9-41, Ver_9-2, Ver_8-8, Ver_8-2, Ver_8-3, Ver_8-0, Ver_8-1, Ver_8-6, Ver_8-7, Ver_8-4, Ver_8-5, Ver_7-1, Ver_7-0, Ver_9-5, Ver_9-4, Ver_8-10, Ver_8-11, Ver_8-12, Ver_9-0, HEAD
Changes since 1.7: +4 -2 lines
Log Message:
Pass the path to the JSOC tree to the interpolation code - instead of using a hard-coded relative path. The interpolation code needs to locate data files in a directory that is relative to the interpolation source files.

File Contents

# Content
1 #define tavg_boxcar 1
2 #define tavg_cosine 2
3 #define tavg_fourth 3
4 #define tavg_hathaway 4
5
6 int tinterpolate(
7 int nsample, // Number of input times
8 double *tsample, // Input times
9 double tint, // Target time
10 int nconst, // Number of polynomial terms exactly reproduced
11 float **images, // Pointer array to input images
12 unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing
13 float *image_out, // Interpolated image
14 int nx, // Number of points in dimension adjacent in memory
15 int ny, // Number of points in dimension not adjacent in memory
16 int nlead, // Leading dimension of arrays. nlead>=nx
17 int method, // Interpolation method
18 char **filenamep, // Pointer to name of file to read covariance from.
19 // Set to actual file used if method > 0.
20 float fillval, // Value to use if not enough points present
21 const char *path // to data files read by this function.
22 );
23
24 int taverage(
25 int nsample, // Number of input times
26 double *tsample, // Input times
27 double tint, // Target time
28 int nconst, // Number of polynomial terms exactly reproduced
29 float **images, // Pointer array to input images
30 unsigned char **masks, // Pointer array to input masks. 0=good, 1= missing
31 float *image_out, // Interpolated image
32 int nx, // Number of points in dimension adjacent in memory
33 int ny, // Number of points in dimension not adjacent in memory
34 int nlead, // Leading dimension of arrays. nlead>=nx
35 int method, // Interpolation method
36 char **filenamep, // Pointer to name of file to read covariance from.
37 // Set to actual file used if method > 0.
38 int avmethod, // averaging method
39 int order, // Interpolation order
40 double tspace, // Spacing of times to interpolate to
41 int hwidth, // Window width in units of tspace. Total width is 2*hwidth+1
42 double par1, // In units of tspace. Meaning depends on avmethod.
43 double par2, // In units of tspace. Meaning depends on avmethod.
44 float fillval, // Value to use if not enough points present
45 const char *path // to data files read by this function.
46 );
47
48 char *tinterpolate_version(); // Returns CVS version of tinterpolate.c
49