Changeset 23704 for branches/pap/ppSub/src/ppSubReadout.c
- Timestamp:
- Apr 3, 2009, 11:58:24 AM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppSub/src/ppSubReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppSub/src/ppSubReadout.c
r23688 r23704 21 21 #include "ppSub.h" 22 22 23 bool ppSubReadout( pmConfig *config, ppSubData *data, const pmFPAview *view)23 bool ppSubReadout(const char *name, bool reverse, pmConfig *config, ppSubData *data, const pmFPAview *view) 24 24 { 25 psTimerStart("PPSUB_MATCH"); 25 psAssert(name, "Require name"); 26 psAssert(config, "Require configuration"); 27 psAssert(data, "Require data"); 28 psAssert(view, "Require view"); 26 29 27 if (!ppSubSetMasks(config, view)) { 28 psError(PS_ERR_UNKNOWN, false, "Unable to set masks."); 29 return false; 30 } 31 32 if (!ppSubMatchPSFs(config, data, view)) { 33 psError(PS_ERR_UNKNOWN, false, "Unable to match PSFs."); 34 return false; 35 } else if (data->quality) { 36 // Can't do anything at all 37 return true; 38 } 39 40 if (!ppSubDefineOutput(config, view)) { 30 if (!ppSubDefineOutput(name, config, data, view)) { 41 31 psError(PS_ERR_UNKNOWN, false, "Unable to define output."); 42 32 return false; 43 33 } 44 34 45 if (!data->quality && !ppSubMakePSF( config, data, view)) {35 if (!data->quality && !ppSubMakePSF(name, config, data, view)) { 46 36 psError(PS_ERR_UNKNOWN, false, "Unable to generate PSF."); 47 37 return false; 48 38 } 49 39 50 if (!ppSubReadoutSubtract( config, view)) {40 if (!ppSubReadoutSubtract(name, reverse, config, view)) { 51 41 psError(PS_ERR_UNKNOWN, false, "Unable to subtract images."); 52 42 return false; … … 54 44 55 45 // Higher order background subtraction using psphot 56 if (!ppSubBackground( config, view)) {46 if (!ppSubBackground(name, config, view)) { 57 47 psError(PS_ERR_UNKNOWN, false, "Unable to subtract background."); 58 48 return false; 59 49 } 60 50 61 if (!data->quality && !ppSubReadoutPhotometry(config, data, view)) {51 if (!data->quality && data->!ppSubReadoutPhotometry(name, config, data, view)) { 62 52 psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry."); 63 53 return false; 64 54 } 65 55 66 if (!ppSubReadoutUpdate( config, data, view)) {56 if (!ppSubReadoutUpdate(name, config, data, view)) { 67 57 psError(PS_ERR_UNKNOWN, false, "Unable to update."); 68 58 return false; 69 59 } 70 60 61 62 63 71 64 return true; 72 65 }
Note:
See TracChangeset
for help on using the changeset viewer.
