- Timestamp:
- Dec 17, 2010, 9:57:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotStackChisqImage.c
r30028 r30101 6 6 7 7 // XXX supply filename or keep PSPHOT.INPUT fixed? 8 bool psphotStackChisqImage (pmConfig *config, const pmFPAview *view, const char *ruleDet, const char *rule Cnv)8 bool psphotStackChisqImage (pmConfig *config, const pmFPAview *view, const char *ruleDet, const char *ruleSrc) 9 9 { 10 10 psTimerStart ("psphot.chisq.image"); … … 27 27 28 28 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "PSPHOT.CHISQ.NUM", PS_META_REPLACE, "", num); 29 30 // we need to increment the counter for ruleDet and ruleSrc: 29 31 num++; 30 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "", num);31 32 32 33 // save the resulting image in the 'detection' set … … 35 36 return false; 36 37 } 38 psphotFileruleCountSet(config, ruleDet, num); 37 39 38 // save the resulting image in the 'convolved' set 39 // XXX whil am I doing this as well? 40 if (!psMetadataAddPtr(config->files, PS_LIST_TAIL, ruleCnv, PS_DATA_UNKNOWN | PS_META_DUPLICATE_OK, "", chisqFile)) { 41 psError(PM_ERR_CONFIG, false, "could not add chisqFPA to config files"); 42 return false; 40 // also save the resulting image in the 'source' set (analysis set) 41 if (strcmp(ruleDet, ruleSrc)) { 42 if (!psMetadataAddPtr(config->files, PS_LIST_TAIL, ruleSrc, PS_DATA_UNKNOWN | PS_META_DUPLICATE_OK, "", chisqFile)) { 43 psError(PM_ERR_CONFIG, false, "could not add chisqFPA to config files"); 44 return false; 45 } 46 psphotFileruleCountSet(config, ruleSrc, num); 43 47 } 44 48 … … 120 124 psAssert (status, "programming error: must define PSPHOT.CHISQ.NUM"); 121 125 122 int inputNum = psphotFileruleCount(config, "PSPHOT.INPUT");126 int inputNum = psphotFileruleCount(config, filerule); 123 127 124 128 pmFPAfileRemoveSingle (config->files, filerule, chisqNum); 125 129 126 130 inputNum --; 127 ps MetadataAddS32(config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "", inputNum);131 psphotFileruleCountSet(config, filerule, inputNum); 128 132 129 133 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
