Changeset 28013 for trunk/psphot/src/psphotReadoutFindPSF.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotReadoutFindPSF.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/psphot.20100506 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotReadoutFindPSF.c
r26894 r28013 8 8 9 9 // set the photcode for the PSPHOT.INPUT 10 if (!psphotAddPhotcode(config, view )) {10 if (!psphotAddPhotcode(config, view, "PSPHOT.INPUT")) { 11 11 psError(PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 12 12 return false; … … 14 14 15 15 // Generate the mask and variance images, including the user-defined analysis region of interest 16 psphotSetMaskAndVariance (config, view );16 psphotSetMaskAndVariance (config, view, "PSPHOT.INPUT"); 17 17 18 18 // Note that in this implementation, we do NOT model the background and we do not … … 21 21 // include externally-supplied sources (supplied as PSPHOT.INPUT.CMF) 22 22 // XXX we assume a single set of input sources is supplied 23 if (!psphotDetectionsFromSources (config, view, inSources)) {23 if (!psphotDetectionsFromSources (config, view, "PSPHOT.INPUT", inSources)) { 24 24 psError(PSPHOT_ERR_ARGUMENTS, true, "Can't find PSF stars"); 25 return psphotReadoutCleanup (config, view);25 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 26 26 } 27 27 28 28 // construct detections->newSources and measure basic stats (moments, local sky) 29 if (!psphotSourceStats(config, view, true)) {29 if (!psphotSourceStats(config, view, "PSPHOT.INPUT", true)) { 30 30 psError(PSPHOT_ERR_UNKNOWN, false, "failure to generate sources"); 31 31 return false; … … 33 33 34 34 // peak flux is wrong : use the peak measured in the moments analysis: 35 if (!psphotRepairLoadedSources(config, view )) {35 if (!psphotRepairLoadedSources(config, view, "PSPHOT.INPUT")) { 36 36 psError(PSPHOT_ERR_UNKNOWN, false, "failure to repair sources"); 37 37 return false; … … 39 39 40 40 // classify sources based on moments, brightness (psf is not known) 41 if (!psphotRoughClass (config, view )) {41 if (!psphotRoughClass (config, view, "PSPHOT.INPUT")) { 42 42 psError (PSPHOT_ERR_UNKNOWN, false, "failed to determine rough source class"); 43 return psphotReadoutCleanup (config, view );43 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 44 44 } 45 45 46 if (!psphotImageQuality (config, view )) {46 if (!psphotImageQuality (config, view, "PSPHOT.INPUT")) { 47 47 psError (PSPHOT_ERR_UNKNOWN, false, "failed to measure image quality"); 48 return psphotReadoutCleanup (config, view);48 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 49 49 } 50 50 51 if (!psphotChoosePSF(config, view )) {51 if (!psphotChoosePSF(config, view, "PSPHOT.INPUT")) { 52 52 psError(PSPHOT_ERR_PSF, false, "Failed to construct a psf model"); 53 return psphotReadoutCleanup (config, view);53 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 54 54 } 55 55 … … 59 59 // fits from that analysis, or run the linear PSF fit for all objects currently in hand 60 60 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask 61 psphotGuessModels (config, view );61 psphotGuessModels (config, view, "PSPHOT.INPUT"); 62 62 # endif 63 63 64 64 // merge the newly selected sources into the existing list 65 65 // NOTE: merge OLD and NEW 66 psphotMergeSources (config, view );66 psphotMergeSources (config, view, "PSPHOT.INPUT"); 67 67 68 68 # if 0 69 69 // measure aperture photometry corrections 70 if (!psphotApResid (config, view )) {70 if (!psphotApResid (config, view, "PSPHOT.INPUT")) { 71 71 psLogMsg ("psphot", 3, "failed on psphotApResid"); 72 return psphotReadoutCleanup (config, view );72 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 73 73 } 74 74 # endif 75 75 76 76 // drop the references to the image pixels held by each source 77 psphotSourceFreePixels(config, view );77 psphotSourceFreePixels(config, view, "PSPHOT.INPUT"); 78 78 79 79 // create the exported-metadata and free local data 80 return psphotReadoutCleanup (config, view);80 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.
