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/pmSubtraction.c

    r23740 r23839  
    850850    psTrace("psModules.imcombine", 1, "Deviation limit: %f\n", limit);
    851851
     852
     853    psString ds9name = NULL;            // Filename for ds9 region file
     854    static int ds9num = 0;              // File number for ds9 region file
     855    psStringAppend(&ds9name, "stamps_reject_%d.ds9", ds9num);
     856    FILE *ds9 = pmSubtractionStampsFile(stamps, ds9name, "rejected stamps");
     857    psFree(ds9name);
     858    ds9num++;
     859
    852860    int numRejected = 0;                // Number of stamps rejected
    853861    int numGood = 0;                    // Number of good stamps
     
    872880                    }
    873881                }
     882                pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red");
    874883
    875884                // Set stamp for replacement
     
    897906                numGood++;
    898907                newMean += deviations->data.F32[i];
     908                pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green");
    899909            }
    900910        }
    901911    }
    902912    newMean /= numGood;
     913
     914    if (ds9) {
     915        fclose(ds9);
     916    }
    903917
    904918    if (numRejected > 0) {
Note: See TracChangeset for help on using the changeset viewer.