Changeset 28013 for trunk/psphot/src/psphotForcedReadout.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotForcedReadout.c (modified) (5 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/psphotForcedReadout.c
r27314 r28013 20 20 21 21 // set the photcode for this image 22 if (!psphotAddPhotcode (config, view )) {22 if (!psphotAddPhotcode (config, view, "PSPHOT.INPUT")) { 23 23 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 24 24 return false; … … 30 30 31 31 // Generate the mask and weight images, including the user-defined analysis region of interest 32 psphotSetMaskAndVariance (config, view );32 psphotSetMaskAndVariance (config, view, "PSPHOT.INPUT"); 33 33 if (!strcasecmp (breakPt, "NOTHING")) { 34 return psphotReadoutCleanup (config, view);34 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 35 35 } 36 36 37 37 // generate a background model (median, smoothed image) 38 if (!psphotModelBackground (config, view )) {39 return psphotReadoutCleanup (config, view );38 if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) { 39 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 40 40 } 41 if (!psphotSubtractBackground (config, view )) {42 return psphotReadoutCleanup (config, view );41 if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT")) { 42 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 43 43 } 44 44 if (!strcasecmp (breakPt, "BACKMDL")) { 45 return psphotReadoutCleanup (config, view );45 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 46 46 } 47 47 … … 49 49 // this only happens if we had a programming error in psphotLoadPSF 50 50 psError (PSPHOT_ERR_UNKNOWN, false, "error loading psf model"); 51 return psphotReadoutCleanup (config, view );51 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 52 52 } 53 53 54 54 // include externally-supplied sources 55 psphotLoadExtSources (config, view );55 psphotLoadExtSources (config, view, "PSPHOT.INPUT"); 56 56 57 57 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask 58 psphotGuessModels (config, view );58 psphotGuessModels (config, view, "PSPHOT.INPUT"); 59 59 60 60 // merge the newly selected sources into the existing list 61 61 // NOTE: merge OLD and NEW 62 psphotMergeSources (config, view );62 psphotMergeSources (config, view, "PSPHOT.INPUT"); 63 63 64 64 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) 65 psphotFitSourcesLinear (config, view, false);65 psphotFitSourcesLinear (config, view, "PSPHOT.INPUT", false); 66 66 67 67 // identify CRs and extended sources … … 71 71 72 72 // calculate source magnitudes 73 psphotMagnitudes(config, view );73 psphotMagnitudes(config, view, "PSPHOT.INPUT"); 74 74 75 75 // XXX do I want to do this? … … 80 80 81 81 // replace background in residual image 82 psphotSkyReplace (config, view );82 psphotSkyReplace (config, view, "PSPHOT.INPUT"); 83 83 84 84 // drop the references to the image pixels held by each source 85 psphotSourceFreePixels (config, view );85 psphotSourceFreePixels (config, view, "PSPHOT.INPUT"); 86 86 87 87 // create the exported-metadata and free local data 88 return psphotReadoutCleanup (config, view);88 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
