Changeset 29926 for trunk/ppImage/src/ppImagePhotom.c
- Timestamp:
- Dec 5, 2010, 9:21:36 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImagePhotom.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImagePhotom.c
r28375 r29926 11 11 pmCell *cell; 12 12 pmReadout *readout; 13 printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast())); 13 14 14 psphotInit(); 15 printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast())); 15 16 16 // find or define a pmFPAfile PSPHOT.INPUT 17 17 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); … … 20 20 return false; 21 21 } 22 printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast())); 22 23 23 // we make a new copy of the output chip to keep psphot from modifying the output image 24 24 pmChip *oldChip = pmFPAviewThisChip (view, input->src); 25 25 pmChip *newChip = pmFPAviewThisChip (view, input->fpa); 26 26 pmChipCopy (newChip, oldChip); 27 printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast())); 27 28 28 // iterate over the cells and readout for this chip 29 29 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { … … 34 34 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 35 35 if (! readout->data_exists) { continue; } 36 printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast())); 36 37 37 // run the actual photometry analysis 38 if (!psphotReadout (config, view )) {38 if (!psphotReadout (config, view, "PSPHOT.INPUT")) { 39 39 // This is likely a data quality issue 40 40 // XXX Split into multiple cases using error codes? … … 60 60 ppImageMemoryDump("photom"); 61 61 62 // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE.CHIP to psphotReadout63 // XXX not sure that this is needed...64 // pmFPAfileActivate (config->files, false, "PSPHOT.INPUT");65 66 62 return true; 67 63 } 68 69 // XXX do we need to deactivate all files and activate the psphot ones explicitly?
Note:
See TracChangeset
for help on using the changeset viewer.
