Changeset 29905
- Timestamp:
- Dec 3, 2010, 2:29:33 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101103
- Files:
-
- 3 edited
-
ppImage/src/ppImagePhotom.c (modified) (4 diffs)
-
ppStack/src/ppStackPhotometry.c (modified) (2 diffs)
-
pswarp/src/pswarpLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/ppImage/src/ppImagePhotom.c
r28375 r29905 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? -
branches/eam_branches/ipp-20101103/ppStack/src/ppStackPhotometry.c
r27343 r29905 54 54 psImageMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask 55 55 psImageMaskType markValue = pmConfigMaskGet("MARK.VALUE", config); // Bits to use for marking 56 psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, 57 "Bits to mask", maskValue); 58 psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, 59 "Bits to use for mark", markValue); 56 psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "Bits to mask", maskValue); 57 psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue); 60 58 61 59 psArray *inSources = options->sources; … … 67 65 68 66 pmModelClassSetLimits(PM_MODEL_LIMITS_LAX); 69 if (!psphotReadoutKnownSources(config, photView, inSources)) {67 if (!psphotReadoutKnownSources(config, photView, "PSPHOT.INPUT", inSources)) { 70 68 // This is likely a data quality issue 71 69 // XXX Split into multiple cases using error codes? -
branches/eam_branches/ipp-20101103/pswarp/src/pswarpLoop.c
r28043 r29905 384 384 385 385 // measure the PSF using these sources 386 if (!psphotReadoutFindPSF(config, view, sources)) {386 if (!psphotReadoutFindPSF(config, view, "PSPHOT.INPUT", sources)) { 387 387 // This is likely a data quality issue 388 388 // XXX Split into multiple cases using error codes?
Note:
See TracChangeset
for help on using the changeset viewer.
