Changeset 18653
- Timestamp:
- Jul 21, 2008, 4:01:59 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ppStack/src/ppStackArguments.c (modified) (1 diff)
-
ppStack/src/ppStackCamera.c (modified) (1 diff)
-
ppSub/src/ppSubArguments.c (modified) (1 diff)
-
ppSub/src/ppSubCamera.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackArguments.c
r18650 r18653 194 194 valueArgStr(arguments, "-stats", "STATS", config->arguments); 195 195 196 if (psMetadataLookupBool(NULL, arguments, "-photometry")) { 197 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PHOTOMETRY", 0, 198 "Do photometry on stacked image?", true); 199 } 200 196 201 return true; 197 202 } -
trunk/ppStack/src/ppStackCamera.c
r18346 r18653 350 350 } 351 351 352 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe for ppSim 353 if (!recipe) { 354 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSTACK_RECIPE); 355 return false; 356 } 352 357 353 358 // For photometry, we operate on the chip-mosaicked image 354 359 // we create a copy of the mosaicked image for psphot so we can write out a clean image 355 360 bool mdok = false; 356 bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // perform photometry 361 bool doPhotom = psMetadataLookupBool(&mdok, recipe, "PHOTOMETRY") || 362 psMetadataLookupBool(&mdok, config->arguments, "PHOTOMETRY"); // perform photometry 357 363 if (doPhotom) { 358 364 // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by -
trunk/ppSub/src/ppSubArguments.c
r18649 r18653 240 240 } 241 241 242 if (psMetadataLookupBool(NULL, config->arguments, "-photometry")) { 243 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PHOTOMETRY", 0, "Perform photometry?", true); 244 } 245 242 246 return true; 243 247 } -
trunk/ppSub/src/ppSubCamera.c
r18289 r18653 136 136 } 137 137 138 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim 139 if (!recipe) { 140 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSUB_RECIPE); 141 return false; 142 } 143 138 144 // psPhot input 139 if (psMetadataLookupBool(NULL, config->arguments, "PHOTOMETRY")) { 145 if (psMetadataLookupBool(NULL, config->arguments, "PHOTOMETRY") || 146 psMetadataLookupBool(NULL, recipe, "PHOTOMETRY") ) { 147 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "PHOTOMETRY", 0, "Perform photometry?", true); 140 148 psphotModelClassInit (); // load implementation-specific models 141 149 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
