Changeset 42392 for trunk/extsrc/gpcsw/gpcsrc/fits/burntool/persistfix.c
- Timestamp:
- Feb 14, 2023, 12:48:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extsrc/gpcsw/gpcsrc/fits/burntool/persistfix.c
r26766 r42392 23 23 24 24 /* Merge all overlapping streaks */ 25 persist_merge(cell); 25 persist_merge(cell); 26 26 27 27 28 /* Fix up all the persistence streaks */ 28 29 for(k=0; k<cell->npersist; k++) { 29 30 /* Is this just a blasted area being carried for IPP? */ 31 if((cell->persist)[k].func == BURN_BLASTED) { 32 if(cell->time - (cell->persist)[k].time > EXPIRE_TRAIL_TIME) { 30 /* Is this just a blasted area being carried for IPP? */ 31 if((cell->persist)[k].func == BURN_BLASTED) { 32 if(cell->time - (cell->persist)[k].time > EXPIRE_TRAIL_TIME) { 33 33 (cell->persist)[k].fiterr = FIT_EXPIRED; 34 }35 continue;36 }34 } 35 continue; 36 } 37 37 38 38 /* This had a significant positive slope, what do we do now? */ 39 if( (cell->persist)[k].func == BURN_POSSLOPE) {39 if( (cell->persist)[k].func == BURN_POSSLOPE) { 40 40 /* try again, so let it slide through... */ 41 }41 } 42 42 43 43 /* Fit the trail */ 44 err = fit_trail(nx, ny, NX, imbuf, mbuf, cell->persist+k, 0,44 err = fit_trail(nx, ny, NX, imbuf, mbuf, cell->persist+k, 0, 45 45 cell->sky+cell->bias, cell->rms, BURN_EXP); 46 46 47 47 /* Subtract out the fit */ 48 if(!cell->persist[k].fiterr)49 err = sub_fit(nx, ny, NX, buf, cell->persist+k, 1);48 if(!cell->persist[k].fiterr) 49 err = sub_fit(nx, ny, NX, buf, cell->persist+k, 1); 50 50 } 51 51 … … 65 65 for(k=0; k<cell->npersist; k++) { 66 66 i = (cell->persist[k].ex - cell->persist[k].sx + 1) / 2; 67 ymid = (cell->persist[k].y0m + cell->persist[k].y1m + 68 cell->persist[k].y0p + cell->persist[k].y1p + 2) / 4; 69 printf("%3d %5d %3d %5d %5d %3d %5d %3d %5d %2d %8.5f %4d\n", 67 /*ymid = (cell->persist[k].y0m + cell->persist[k].y1m + 68 cell->persist[k].y0p + cell->persist[k].y1p + 2) / 4;*/ 69 ymid = (cell->persist[k].sy + cell->persist[k].ey + 1) / 2; 70 printf("%3d %5d %3d %5d %5d %3d %5d %3d %5d %2d %8.5f %8.5f\n", 70 71 k, cell->persist[k].cx, cell->persist[k].cy, 71 72 cell->persist[k].max, … … 73 74 cell->persist[k].ex, cell->persist[k].ey, ymid, 74 75 cell->persist[k].func, 75 cell->persist[k].slope, NINT((cell->persist[k]).zero[i]));76 cell->persist[k].slope, (cell->persist[k]).zero[i]); 76 77 } 77 78 return(0);
Note:
See TracChangeset
for help on using the changeset viewer.
