Changeset 26784 for branches/eam_branches/20091201/ppSub/src/ppSubMakePSF.c
- Timestamp:
- Feb 5, 2010, 1:31:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppSub/src/ppSubMakePSF.c
r26649 r26784 66 66 pmReadout *photRO = pmFPAviewThisReadout(view, photFile->fpa); // Readout to photometer 67 67 68 // we need to remove any existing PSPHOT. SOURCES (why not do this in psphot?)69 if (psMetadataLookup(photRO->analysis, "PSPHOT. SOURCES")) {70 psMetadataRemoveKey(photRO->analysis, "PSPHOT. SOURCES");68 // we need to remove any existing PSPHOT.DETECTIONS (why not do this in psphot?) 69 if (psMetadataLookup(photRO->analysis, "PSPHOT.DETECTIONS")) { 70 psMetadataRemoveKey(photRO->analysis, "PSPHOT.DETECTIONS"); 71 71 } 72 72 if (psMetadataLookup(photRO->parent->parent->analysis, "PSPHOT.PSF")) { … … 83 83 // Extract the loaded sources from the associated readout, and generate PSF 84 84 // Here, we assume the image is background-subtracted 85 psArray *sources = psMetadataLookupPtr(&mdok, minuend->analysis, "PSPHOT.SOURCES"); 85 pmDetections *detections = psMetadataLookupPtr(&mdok, minuend->analysis, "PSPHOT.DETECTIONS"); 86 psAssert(detections, "missing detections?"); 87 psArray *sources = detections->allSources; 88 psAssert(sources, "missing sources?"); 86 89 87 90 // XXX filter sources? limit the total number and return only brighter objects?
Note:
See TracChangeset
for help on using the changeset viewer.
