Changeset 42820 for branches/eam_branches/ipp-20230313/extsrc/gpcsw/gpcsrc/fits/burntool/stardetect.c
- Timestamp:
- May 8, 2025, 4:10:23 PM (15 months ago)
- Location:
- branches/eam_branches/ipp-20230313
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
extsrc/gpcsw/gpcsrc/fits/burntool/stardetect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-ppmerge-20241229 (added) merged: 42770-42778,42803-42805 /trunk merged: 42763-42764,42766-42769,42779-42782,42784-42796,42798-42802,42806-42813
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20230313/extsrc/gpcsw/gpcsrc/fits/burntool/stardetect.c
r42753 r42820 34 34 starcut = STAR_THRESH/2 + cell->sky + cell->bias; 35 35 36 /*try a new value for thresh_lo which is 1 sigmas above the background, but with a safety limit of 1000 counts*/36 /*try a new value for thresh_lo which is 10 sigmas above the background, but with a safety limit of 1000 counts*/ 37 37 trailthresh = cell->sky + (10*cell->rms); 38 38 if(trailthresh <= 1000) trailthresh = 1000; 39 39 trailthresh = trailthresh + cell->bias; 40 thresh_lo = trailthresh; 41 42 /*try a new value for burnthresh which is twice the bias above the sky background, but with a safety limit of 30000 counts*/ 43 burnthresh = cell->sky + (2*cell->bias); 44 if(burnthresh <= BURN_THRESH) burnthresh = BURN_THRESH; 45 thresh_hi = burnthresh; 40 46 41 47 /* Look at all the pixels which pass the burn threshold */ … … 81 87 boxbuf[nbox].ey = k-1; 82 88 grow_box(nx, ny, NX, data, thresh_lo, boxbuf+nbox); 89 83 90 /* Fill in max and center info */ 84 91 boxbuf[nbox].max = 0; … … 100 107 boxbuf[nbox].ex, boxbuf[nbox].ey, 101 108 boxbuf[nbox].max); 109 fflush(stdout); 110 } 111 /* Mark the veto mask so as not to trigger on this one again */ 112 for(l=boxbuf[nbox].sy; l<=boxbuf[nbox].ey; l++) { 113 for(k=boxbuf[nbox].sx; k<=boxbuf[nbox].ex; k++) { 114 veto[k+l*NX] = boxbuf[nbox].max; 115 } 116 } 117 xon = -1; 118 continue; 119 } 120 121 /* A box that is composed of a single pixel should not be considered a burn */ 122 if((boxbuf[nbox].ex - boxbuf[nbox].sx) <= 2 && (boxbuf[nbox].ey - boxbuf[nbox].sy) <= 2) { 123 if(VERBOSE & VERB_DETECT) { 124 printf("Ditching box %d %d %d %d for being too small\n", 125 boxbuf[nbox].sx, boxbuf[nbox].sy, 126 boxbuf[nbox].ex, boxbuf[nbox].ey); 102 127 fflush(stdout); 103 128 }
Note:
See TracChangeset
for help on using the changeset viewer.
