Changeset 29936 for trunk/psphot/src/psphotForcedReadout.c
- Timestamp:
- Dec 5, 2010, 9:42:25 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 changed
/branches/eam_branches/ipp-20101103/psphot (added) merged: 29660,29824-29825,29904,29914,29918,29920
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotForcedReadout.c
r28013 r29936 1 1 # include "psphotInternal.h" 2 2 3 bool psphotForcedReadout(pmConfig *config, const pmFPAview *view ) {3 bool psphotForcedReadout(pmConfig *config, const pmFPAview *view, const char *filerule) { 4 4 5 5 // measure the total elapsed time in psphotReadout. XXX the current threading plan … … 20 20 21 21 // set the photcode for this image 22 if (!psphotAddPhotcode (config, view, "PSPHOT.INPUT")) {22 if (!psphotAddPhotcode (config, view, filerule)) { 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, "PSPHOT.INPUT");32 psphotSetMaskAndVariance (config, view, filerule); 33 33 if (!strcasecmp (breakPt, "NOTHING")) { 34 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");34 return psphotReadoutCleanup (config, view, filerule); 35 35 } 36 36 37 37 // generate a background model (median, smoothed image) 38 if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) {39 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");38 if (!psphotModelBackground (config, view, filerule)) { 39 return psphotReadoutCleanup (config, view, filerule); 40 40 } 41 if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT")) {42 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");41 if (!psphotSubtractBackground (config, view, filerule)) { 42 return psphotReadoutCleanup (config, view, filerule); 43 43 } 44 44 if (!strcasecmp (breakPt, "BACKMDL")) { 45 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");45 return psphotReadoutCleanup (config, view, filerule); 46 46 } 47 47 48 if (!psphotLoadPSF (config, view )) {48 if (!psphotLoadPSF (config, view, filerule)) { 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, "PSPHOT.INPUT");51 return psphotReadoutCleanup (config, view, filerule); 52 52 } 53 53 54 54 // include externally-supplied sources 55 psphotLoadExtSources (config, view, "PSPHOT.INPUT");55 psphotLoadExtSources (config, view, filerule); 56 56 57 57 // construct an initial model for each object, set the radius to fitRadius, set circular fit mask 58 psphotGuessModels (config, view, "PSPHOT.INPUT");58 psphotGuessModels (config, view, filerule); 59 59 60 60 // merge the newly selected sources into the existing list 61 61 // NOTE: merge OLD and NEW 62 psphotMergeSources (config, view, "PSPHOT.INPUT");62 psphotMergeSources (config, view, filerule); 63 63 64 64 // linear PSF fit to source peaks, subtract the models from the image (in PSF mask) 65 psphotFitSourcesLinear (config, view, "PSPHOT.INPUT", false);65 psphotFitSourcesLinear (config, view, filerule, false); 66 66 67 67 // identify CRs and extended sources … … 71 71 72 72 // calculate source magnitudes 73 psphotMagnitudes(config, view, "PSPHOT.INPUT");73 psphotMagnitudes(config, view, filerule); 74 74 75 75 // XXX do I want to do this? … … 80 80 81 81 // replace background in residual image 82 psphotSkyReplace (config, view, "PSPHOT.INPUT");82 psphotSkyReplace (config, view, filerule); 83 83 84 84 // drop the references to the image pixels held by each source 85 psphotSourceFreePixels (config, view, "PSPHOT.INPUT");85 psphotSourceFreePixels (config, view, filerule); 86 86 87 87 // create the exported-metadata and free local data 88 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");88 return psphotReadoutCleanup (config, view, filerule); 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
