- Timestamp:
- Feb 14, 2011, 1:05:28 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/psphot
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/psphot/src/psphotStackChisqImage.c
r30118 r30631 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 if (!psMetadataAddPtr(config->files, PS_LIST_TAIL, ruleCnv, PS_DATA_UNKNOWN | PS_META_DUPLICATE_OK, "", chisqFile)) { 40 psError(PM_ERR_CONFIG, false, "could not add chisqFPA to config files"); 41 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); 42 47 } 43 48 … … 119 124 psAssert (status, "programming error: must define PSPHOT.CHISQ.NUM"); 120 125 121 int inputNum = psphotFileruleCount(config, "PSPHOT.INPUT");126 int inputNum = psphotFileruleCount(config, filerule); 122 127 123 128 pmFPAfileRemoveSingle (config->files, filerule, chisqNum); 124 129 125 130 inputNum --; 126 ps MetadataAddS32(config->arguments, PS_LIST_TAIL, "PSPHOT.INPUT.NUM", PS_META_REPLACE, "", inputNum);131 psphotFileruleCountSet(config, filerule, inputNum); 127 132 128 133 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
