IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2010, 9:31:59 AM (16 years ago)
Author:
eugene
Message:

some test fprints, some notes; updated the meaning of the analysis statistics (fResMax, etc) - not yet complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c

    r29124 r29126  
    9696
    9797    // fprintf (stderr, "xMin, xMax: %d, %d -> ", xMin, xMax);
     98    float xRaw = xMin;
     99    float yRaw = yMin;
    98100
    99101    // Ensure we're not going to go outside the bounds of the image
     
    103105    yMax = PS_MIN(numRows - border - 1, yMax);
    104106
    105     if (xMax < xMin) return false;
    106     if (yMax < yMin) return false;
     107    if (xMax < xMin) {
     108      fprintf (stderr, "%f,%f : x-border\n", xRaw, yRaw);
     109      return false;
     110    }
     111    if (yMax < yMin) {
     112      fprintf (stderr, "%f,%f : y-border\n", xRaw, yRaw);
     113      return false;
     114    }
    107115
    108116    psAssert (xMin <= xMax, "x mismatch?");
     
    118126            if (subMask && subMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] &
    119127                (PM_SUBTRACTION_MASK_BORDER | PM_SUBTRACTION_MASK_REJ)) {
     128              fprintf (stderr, "%f,%f : masked\n", xRaw, yRaw);
    120129                return false;
    121130            }
     
    133142    }
    134143
     144    if (!found) {
     145      fprintf (stderr, "%f,%f : fails flux test\n", xRaw, yRaw);
     146    }
    135147    return found;
    136148}
     
    431443                // Take stamps off the top of the (sorted) list
    432444                for (int j = xList->n - 1; j >= 0 && !goodStamp; j--) {
     445                  fprintf (stderr, "%d : xList: %ld elements\n", i, xList->n);
    433446                    // Chop off the top of the list
    434447                    xList->n = j;
Note: See TracChangeset for help on using the changeset viewer.