84 int i, seg,
m, k, j=0, noint;
106 st_report(
"autoLevel(): Grand Avg of %d Baseline Channels: %f", j, gsum);
125 st_report(
"autoLevel(): Segment %3d Avg = %10.6f, diff = %10.6f", seg, sum, sum-gsum);
132 st_fail(
"autoLevel(): Little or no baseline channels defined");
138 st_fail(
"autoLevel(): Can NOT perform Auto Level without variable: 'markers', being set");
151 double db1, db2, dg1, dg2;
152 double diff1, diff2,
avg;
170 st_report(
"Bad Channel Right Edge %3d", b2);
171 st_report(
"Good Channel Left Edge %3d", g2);
172 st_report(
"Bad Channel Value is %5.2f", db2);
173 st_report(
"Good Channel Value is %5.2f", dg2);
177 st_report(
"Applying a %.3f offset to segment %d", diff2, seg);
182 if((seg * m + m) >= noint)
194 st_report(
"Bad Channel Left Edge %3d", b1);
195 st_report(
"Good Channel Right Edge %3d", g1);
196 st_report(
"Bad Channel Value is %5.2f", db1);
197 st_report(
"Good Channel Value is %5.2f", dg1);
201 st_report(
"Applying a %.3f offset to segment %d", diff1, seg);
224 avg = (diff1 + diff2) / 2.0;
228 st_report(
"Bad Channels are %3d - %3d", b1, b2);
229 st_report(
"Good Channels are %3d & %3d", g1, g2);
230 st_report(
"Bad Channels Values are %5.2f - %5.2f", db1, db2);
231 st_report(
"Good Channels Values are %5.2f & %5.2f", dg1, dg2);
237 st_report(
"Applying a %.3f offset to segment %d", avg, seg);
250 int seg, seg2, old_mshow;
251 double from, to, diff;
262 st_fail(
"'markers' must be set to a valid value");
304 st_fail(
"Third arg missing for 'fboffset match seq'");
317 st_fail(
"Must do a 'avg /b /s' before using 'bmatch' function");
333 st_report(
"Applying a %.3f offset to segment %d", diff, seg);
365 st_report(
"Applying a %.3f offset to segment %d", diff, seg);
379 _doTCur(
"Click the Left Mouse Button on Current Value");
382 _doTCur(
"Click the Left Mouse Button on Desired Value");
387 st_report(
"Applying a %.3f offset to segment %d", diff, seg);
418 st_report(
"Removing FB offset in %s", image->name);
431 if(k >= image->head.noint)
444 st_fail(
"Markers must be non-zero if using filter offsets");
struct LP_IMAGE_INFO * h0
struct PARSE_STACK * args
int printH_FlagHelp(char *cmd)
int applyOffsets(struct LP_IMAGE_INFO *image)
double bl_averages[MAX_BASELINES]
int isInBaseLineRegion(int chan)
float fboffsets[MAX_FILTER_SEGS]