IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 13, 2009, 4:05:58 PM (17 years ago)
Author:
Paul Price
Message:

Generate ds9 region files for stamps at interesting places.

File:
1 edited

Legend:

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

    r21422 r23839  
    749749    }
    750750
     751    psString ds9name = NULL;            // Filename for ds9 region file
     752    static int ds9num = 0;              // File number for ds9 region file
     753    psStringAppend(&ds9name, "stamps_solution_%d.ds9", ds9num);
     754    FILE *ds9 = pmSubtractionStampsFile(stamps, ds9name, "solution stamps");
     755    psFree(ds9name);
     756    ds9num++;
     757
    751758    if (kernels->mode != PM_SUBTRACTION_MODE_DUAL) {
    752759        // Accumulate the least-squares matricies and vectors
     
    761768                (void)psBinaryOp(sumMatrix, sumMatrix, "+", stamp->matrix1);
    762769                (void)psBinaryOp(sumVector, sumVector, "+", stamp->vector1);
     770                pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green");
    763771                numStamps++;
     772            } else if (stamp->status == PM_SUBTRACTION_STAMP_REJECTED) {
     773                pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red");
    764774            }
    765775        }
     
    830840                (void)psBinaryOp(sumVector1, sumVector1, "+", stamp->vector1);
    831841                (void)psBinaryOp(sumVector2, sumVector2, "+", stamp->vector2);
     842                pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green");
    832843                numStamps++;
    833844            }
     
    9901001        // XXXXX Free temporary matrices and vectors
    9911002
     1003    }
     1004
     1005    if (ds9) {
     1006        fclose(ds9);
    9921007    }
    9931008
Note: See TracChangeset for help on using the changeset viewer.