- Timestamp:
- Oct 21, 2010, 2:45:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/pstamp/src/ppstampMakeStamp.c
r28882 r29515 233 233 int status = false; 234 234 235 pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT"); 235 pmFPAfile *output; 236 if (!options->stage || (strcmp(options->stage, "diff") != 0)) { 237 output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT"); 238 } else { 239 output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT.DIFF"); 240 } 236 241 if (!output) { 237 242 psError(PS_ERR_UNKNOWN, false, "Can't find output data\n"); … … 674 679 static bool setMaskedToNAN(pmConfig *config, psImage *image, psImage *mask, psImage *variance) 675 680 { 681 #ifdef notdef 676 682 bool status; 677 683 psMetadata *masks = psMetadataLookupMetadata(&status, config->recipes, "MASKS"); … … 719 725 } 720 726 } 721 fprintf(stderr, "excised %ld masked pixels\n", numExcised); 727 #endif 728 729 long numCensored; 730 if (!pmCensorMasked(config, image, mask, variance, &numCensored)) { 731 psError(PS_ERR_UNKNOWN, false, "Failed to censor masked pixels.\n"); 732 return false; 733 } 734 735 // XXX: this shouldn't be a fprintf 736 fprintf(stderr, "Censored %ld masked pixels\n", numCensored); 722 737 723 738 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
