Changeset 29936 for trunk/psphot/src/psphotMakePSFReadout.c
- Timestamp:
- Dec 5, 2010, 9:42:25 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotMakePSFReadout.c (modified) (4 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/psphotMakePSFReadout.c
r28013 r29936 1 1 # include "psphotInternal.h" 2 2 3 bool psphotMakePSFReadout(pmConfig *config, const pmFPAview *view ) {3 bool psphotMakePSFReadout(pmConfig *config, const pmFPAview *view, const char *filerule) { 4 4 5 5 // measure the total elapsed time in psphotReadout. XXX the current threading plan … … 19 19 20 20 // set the photcode for this image 21 if (!psphotAddPhotcode (config, view, "PSPHOT.INPUT")) {21 if (!psphotAddPhotcode (config, view, filerule)) { 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, "PSPHOT.INPUT");31 psphotSetMaskAndVariance (config, view, filerule); 32 32 if (!strcasecmp (breakPt, "NOTHING")) { 33 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");33 return psphotReadoutCleanup (config, view, filerule); 34 34 } 35 35 36 36 // generate a background model (median, smoothed image) 37 if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) {38 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");37 if (!psphotModelBackground (config, view, filerule)) { 38 return psphotReadoutCleanup (config, view, filerule); 39 39 } 40 if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT")) {41 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");40 if (!psphotSubtractBackground (config, view, filerule)) { 41 return psphotReadoutCleanup (config, view, filerule); 42 42 } 43 43 if (!strcasecmp (breakPt, "BACKMDL")) { 44 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");44 return psphotReadoutCleanup (config, view, filerule); 45 45 } 46 46 47 psphotLoadExtSources (config, view, "PSPHOT.INPUT");47 psphotLoadExtSources (config, view, filerule); 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, "PSPHOT.INPUT")) {55 if (!psphotCheckExtSources (config, view, filerule)) { 56 56 psLogMsg ("psphot", 3, "failure to select possible PSF sources (external or internal)"); 57 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");57 return psphotReadoutCleanup (config, view, filerule); 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, "PSPHOT.INPUT")) {62 if (!psphotChoosePSF (config, view, filerule)) { 63 63 psLogMsg ("psphot", 3, "failure to construct a psf model"); 64 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");64 return psphotReadoutCleanup (config, view, filerule); 65 65 } 66 66 67 67 // measure aperture photometry corrections 68 68 # if 0 69 if (!psphotApResid (config, view, "PSPHOT.INPUT")) {69 if (!psphotApResid (config, view, filerule)) { 70 70 psLogMsg ("psphot", 3, "failed on psphotApResid"); 71 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");71 return psphotReadoutCleanup (config, view, filerule); 72 72 } 73 73 # endif 74 74 75 return psphotReadoutCleanup (config, view, "PSPHOT.INPUT");75 return psphotReadoutCleanup (config, view, filerule); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.
