IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2007, 1:17:56 PM (19 years ago)
Author:
Paul Price
Message:

Adding function to set stamps based on a list of x,y positions (as opposed to find a set of stamps automatically). Adding another function to generate target stamps so that we can convolve to the target PSF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtraction.c

    r14480 r14513  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-08-14 02:14:30 $
     6 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-08-15 23:17:56 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    542542                stamp->status = PM_SUBTRACTION_STAMP_REJECTED;
    543543                psTrace("psModules.imcombine", 3, "Rejecting stamp %d (%d,%d) because of bad equation\n",
    544                         i, stamp->x, stamp->y);
     544                        i, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5));
    545545            } else {
    546546                stamp->status = PM_SUBTRACTION_STAMP_USED;
     
    718718            deviations->data.F32[i] = sqrt(stats->sampleMean / 2.0);
    719719            psTrace("psModules.imcombine", 1, "Deviation for stamp %d (%d,%d): %f\n",
    720                     i, stamp->x, stamp->y, deviations->data.F32[i]);
     720                    i, (int)(stamp->x + 0.5), (int)(stamp->y + 0.5), deviations->data.F32[i]);
    721721            totalSquareDev += PS_SQR(deviations->data.F32[i]);
    722722            numStamps++;
     
    736736        if (stamp->status == PM_SUBTRACTION_STAMP_USED && deviations->data.F32[i] > limit) {
    737737            // Mask out the stamp in the image so you it's not found again
    738             psTrace("psModules.imcombine", 3, "Rejecting stamp %d (%d,%d)\n", i, stamp->x, stamp->y);
     738            psTrace("psModules.imcombine", 3, "Rejecting stamp %d (%d,%d)\n", i,
     739                    (int)(stamp->x + 0.5), (int)(stamp->y + 0.5));
    739740            numRejected++;
    740741            for (int y = stamp->y - footprint; y <= stamp->y + footprint; y++) {
Note: See TracChangeset for help on using the changeset viewer.