Changeset 28013 for trunk/psphot/src/psphotMakePSFReadout.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotMakePSFReadout.c (modified) (3 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/psphotMakePSFReadout.c
r26894 r28013 19 19 20 20 // set the photcode for this image 21 if (!psphotAddPhotcode (config, view )) {21 if (!psphotAddPhotcode (config, view, "PSPHOT.INPUT")) { 22 22 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 23 23 return false; … … 29 29 30 30 // Generate the mask and weight images, including the user-defined analysis region of interest 31 psphotSetMaskAndVariance (config, view );31 psphotSetMaskAndVariance (config, view, "PSPHOT.INPUT"); 32 32 if (!strcasecmp (breakPt, "NOTHING")) { 33 return psphotReadoutCleanup (config, view);33 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 34 34 } 35 35 36 36 // generate a background model (median, smoothed image) 37 if (!psphotModelBackground (config, view )) {38 return psphotReadoutCleanup (config, view );37 if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) { 38 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 39 39 } 40 if (!psphotSubtractBackground (config, view )) {41 return psphotReadoutCleanup (config, view );40 if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT")) { 41 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 42 42 } 43 43 if (!strcasecmp (breakPt, "BACKMDL")) { 44 return psphotReadoutCleanup (config, view );44 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 45 45 } 46 46 47 psphotLoadExtSources (config, view );47 psphotLoadExtSources (config, view, "PSPHOT.INPUT"); 48 48 49 49 // If sources have been supplied, then these should be used to measure the PSF include … … 53 53 // a text file have no valid SN values, but psphotChoosePSF needs to select the top 54 54 // PSF_MAX_NSTARS to generate the PSF. 55 if (!psphotCheckExtSources (config, view )) {55 if (!psphotCheckExtSources (config, view, "PSPHOT.INPUT")) { 56 56 psLogMsg ("psphot", 3, "failure to select possible PSF sources (external or internal)"); 57 return psphotReadoutCleanup (config, view );57 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 58 58 } 59 59 60 60 // Use bright stellar objects to measure PSF. If we do not have enough stars to generate 61 61 // the PSF, build one from the SEEING guess and model class 62 if (!psphotChoosePSF (config, view )) {62 if (!psphotChoosePSF (config, view, "PSPHOT.INPUT")) { 63 63 psLogMsg ("psphot", 3, "failure to construct a psf model"); 64 return psphotReadoutCleanup (config, view );64 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 65 65 } 66 66 67 67 // measure aperture photometry corrections 68 68 # if 0 69 if (!psphotApResid (config, view )) {69 if (!psphotApResid (config, view, "PSPHOT.INPUT")) { 70 70 psLogMsg ("psphot", 3, "failed on psphotApResid"); 71 return psphotReadoutCleanup (config, view );71 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 72 72 } 73 73 # endif 74 74 75 return psphotReadoutCleanup (config, view );75 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT"); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.
