Changeset 42685
- Timestamp:
- Jun 1, 2024, 3:19:28 PM (2 years ago)
- Location:
- branches/eam_branches/ipp-20230313/Ohana/src/opihi/cmd.data
- Files:
-
- 2 edited
-
interpolate_presort.c (modified) (2 diffs)
-
vgroup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/Ohana/src/opihi/cmd.data/interpolate_presort.c
r41341 r42685 17 17 /** check basic syntax **/ 18 18 if (argc != 5) { 19 gprint (GP_ERR, "USAGE: interpolate Xi Yi Xo Yo \n");19 gprint (GP_ERR, "USAGE: interpolate Xi Yi Xo Yo [-fill-ends]\n"); 20 20 gprint (GP_ERR, " Xi Yi - sorted reference vectors\n"); 21 21 gprint (GP_ERR, " Xo - output positions (vector)\n"); … … 23 23 gprint (GP_ERR, " (vectors must be pre-sorted)\n"); 24 24 gprint (GP_ERR, " (use 'threshold' to interpolate to a value)\n"); 25 gprint (GP_ERR, " -fill-ends : values outside of range are set to end-point values\n"); 25 26 return (FALSE); 26 27 } -
branches/eam_branches/ipp-20230313/Ohana/src/opihi/cmd.data/vgroup.c
r33963 r42685 70 70 ALLOCATE (values, double, xin[0].Nelements); 71 71 72 for (i = 0; i < xout[0].Nelements - 1; i++) { 72 // if we specify binsize, then we need to examine all bins 73 int Nout = isnan(binsize) ? xout[0].Nelements - 1 : xout[0].Nelements; 74 for (i = 0; i < Nout; i++) { 73 75 if (isnan(binsize)) { 74 76 xmin = xout[0].elements.Flt[i]; … … 81 83 N = 0; 82 84 for (j = 0; j < xin[0].Nelements; j++) { 83 if (xin[0].elements.Flt[j] < xmin) continue;84 if (xin[0].elements.Flt[j] > xmax) continue;85 if (xin[0].elements.Flt[j] < xmin) continue; 86 if (xin[0].elements.Flt[j] >= xmax) continue; 85 87 if (yin) { 86 88 values[N] = yin[0].elements.Flt[j];
Note:
See TracChangeset
for help on using the changeset viewer.
