- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppSubKernel 12 ppSubErrorCodes.h 13 ppSubErrorCodes.c 14 ppSubVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src/ppSubReadout.c
r21524 r24244 21 21 #include "ppSub.h" 22 22 23 bool ppSubReadout( pmConfig *config, psMetadata *stats, const pmFPAview *view)23 bool ppSubReadout(const char *name, bool reverse, ppSubData *data, const pmFPAview *view) 24 24 { 25 psTimerStart("PPSUB_MATCH"); 25 psAssert(data, "Require processing data"); 26 pmConfig *config = data->config; // Configuration 27 psAssert(config, "Require configuration"); 26 28 27 if (!ppSubSetMasks(config, view)) { 28 psError(PS_ERR_UNKNOWN, false, "Unable to set masks."); 29 return false; 30 } 29 psAssert(name, "Require name"); 30 psAssert(view, "Require view"); 31 31 32 if (!ppSubMatchPSFs(config, view)) { 33 psError(PS_ERR_UNKNOWN, false, "Unable to match PSFs."); 34 return false; 35 } 36 37 if (!ppSubDefineOutput(config, view)) { 32 if (!ppSubDefineOutput(name, config, data, view)) { 38 33 psError(PS_ERR_UNKNOWN, false, "Unable to define output."); 39 34 return false; 40 35 } 41 36 42 if (! ppSubMakePSF(config, view)) {37 if (!data->quality && !ppSubMakePSF(name, config, data, view)) { 43 38 psError(PS_ERR_UNKNOWN, false, "Unable to generate PSF."); 44 39 return false; 45 40 } 46 41 47 if (!ppSubReadoutSubtract( config, view)) {42 if (!ppSubReadoutSubtract(name, reverse, config, view)) { 48 43 psError(PS_ERR_UNKNOWN, false, "Unable to subtract images."); 49 44 return false; … … 51 46 52 47 // Higher order background subtraction using psphot 53 if (!ppSubBackground( config, view)) {48 if (!ppSubBackground(name, config, view)) { 54 49 psError(PS_ERR_UNKNOWN, false, "Unable to subtract background."); 55 50 return false; 56 51 } 57 52 58 if (! ppSubReadoutPhotometry(config, stats, view)) {53 if (!data->quality && data->!ppSubReadoutPhotometry(name, config, data, view)) { 59 54 psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry."); 60 55 return false; 61 56 } 62 57 63 if (!ppSubReadoutUpdate( config, stats, view)) {58 if (!ppSubReadoutUpdate(name, config, data, view)) { 64 59 psError(PS_ERR_UNKNOWN, false, "Unable to update."); 65 60 return false; 66 61 } 67 62 63 64 65 68 66 return true; 69 67 }
Note:
See TracChangeset
for help on using the changeset viewer.
