Changeset 23839 for trunk/psModules/src/imcombine/pmSubtraction.c
- Timestamp:
- Apr 13, 2009, 4:05:58 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.c
r23740 r23839 850 850 psTrace("psModules.imcombine", 1, "Deviation limit: %f\n", limit); 851 851 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 852 860 int numRejected = 0; // Number of stamps rejected 853 861 int numGood = 0; // Number of good stamps … … 872 880 } 873 881 } 882 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red"); 874 883 875 884 // Set stamp for replacement … … 897 906 numGood++; 898 907 newMean += deviations->data.F32[i]; 908 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green"); 899 909 } 900 910 } 901 911 } 902 912 newMean /= numGood; 913 914 if (ds9) { 915 fclose(ds9); 916 } 903 917 904 918 if (numRejected > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
