IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2023, 12:48:54 PM (3 years ago)
Author:
tdeboer
Message:

new version of the burntool programme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/extsrc/gpcsw/gpcsrc/fits/burntool/persistfix.c

    r26766 r42392  
    2323
    2424/* Merge all overlapping streaks */
    25    persist_merge(cell);
     25  persist_merge(cell);
     26
    2627
    2728/* Fix up all the persistence streaks */
    2829   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) {
    3333            (cell->persist)[k].fiterr = FIT_EXPIRED;
    34          }
    35          continue;
    36       }
     34           }
     35           continue;
     36     }
    3737
    3838/* 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) {
    4040/* try again, so let it slide through... */
    41       }
     41     }
    4242
    4343/* 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,
    4545             cell->sky+cell->bias, cell->rms, BURN_EXP);
    4646
    4747/* 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);
    5050   }
    5151
     
    6565   for(k=0; k<cell->npersist; k++) {
    6666      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",
    7071             k, cell->persist[k].cx, cell->persist[k].cy,
    7172             cell->persist[k].max,
     
    7374             cell->persist[k].ex, cell->persist[k].ey, ymid,
    7475             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]);
    7677   }
    7778   return(0);
Note: See TracChangeset for help on using the changeset viewer.