Changeset 26982 for trunk/ppSub/src/ppSubLoop.c
- Timestamp:
- Feb 17, 2010, 5:36:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubLoop.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubLoop.c
r26899 r26982 43 43 44 44 if (!ppSubSetMasks(config)) { 45 psError( PS_ERR_UNKNOWN, false, "Unable to set masks.");45 psError(psErrorCodeLast(), false, "Unable to set masks."); 46 46 return false; 47 47 } 48 48 49 49 if (!ppSubMatchPSFs(data)) { 50 psError( PS_ERR_UNKNOWN, false, "Unable to match PSFs.");50 psError(psErrorCodeLast(), false, "Unable to match PSFs."); 51 51 return false; 52 52 } … … 57 57 // generate the residual stamp grid for visualization 58 58 if (!ppSubResidualSampleJpeg(config)) { 59 psError( PS_ERR_UNKNOWN, false, "Unable to update.");59 psError(psErrorCodeLast(), false, "Unable to update."); 60 60 return false; 61 61 } … … 71 71 72 72 if (!ppSubLowThreshold(data)) { 73 psError( PS_ERR_UNKNOWN, false, "Unable to threshold images.");73 psError(psErrorCodeLast(), false, "Unable to threshold images."); 74 74 return false; 75 75 } … … 82 82 83 83 if (!ppSubDefineOutput("PPSUB.OUTPUT", config)) { 84 psError( PS_ERR_UNKNOWN, false, "Unable to define output.");84 psError(psErrorCodeLast(), false, "Unable to define output."); 85 85 return false; 86 86 } 87 87 88 88 if (!data->quality && !ppSubMakePSF(data)) { 89 psError( PS_ERR_UNKNOWN, false, "Unable to generate PSF.");89 psError(psErrorCodeLast(), false, "Unable to generate PSF."); 90 90 return false; 91 91 } 92 92 93 93 if (!ppSubReadoutSubtract(config)) { 94 psError( PS_ERR_UNKNOWN, false, "Unable to subtract images.");94 psError(psErrorCodeLast(), false, "Unable to subtract images."); 95 95 return false; 96 96 } … … 104 104 // Higher order background subtraction using psphot 105 105 if (!ppSubBackground(config)) { 106 psError( PS_ERR_UNKNOWN, false, "Unable to subtract background.");106 psError(psErrorCodeLast(), false, "Unable to subtract background."); 107 107 return false; 108 108 } … … 110 110 // Perform Variance correction (rescale within a modest range) 111 111 if (!ppSubVarianceRescale(config)) { 112 psError( PS_ERR_UNKNOWN, false, "Unable to rescale variance.");112 psError(psErrorCodeLast(), false, "Unable to rescale variance."); 113 113 return false; 114 114 } … … 120 120 121 121 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.OUTPUT", data)) { 122 psError( PS_ERR_UNKNOWN, false, "Unable to perform photometry.");122 psError(psErrorCodeLast(), false, "Unable to perform photometry."); 123 123 return false; 124 124 } … … 131 131 // Perform statistics on the cell 132 132 if (!ppSubReadoutStats(data)) { 133 psError( PS_ERR_UNKNOWN, false, "Unable to collect statistics");133 psError(psErrorCodeLast(), false, "Unable to collect statistics"); 134 134 return false; 135 135 } … … 137 137 // generate the binned image used to write the jpeg 138 138 if (!ppSubReadoutJpeg(config)) { 139 psError( PS_ERR_UNKNOWN, false, "Unable to update.");139 psError(psErrorCodeLast(), false, "Unable to update."); 140 140 return false; 141 141 } … … 149 149 150 150 if (data->inverse && !ppSubDefineOutput("PPSUB.INVERSE", config)) { 151 psError( PS_ERR_UNKNOWN, false, "Unable to define inverse.");151 psError(psErrorCodeLast(), false, "Unable to define inverse."); 152 152 return false; 153 153 } 154 154 155 155 if (!ppSubReadoutInverse(config)) { 156 psError( PS_ERR_UNKNOWN, false, "Unable to invert images.");156 psError(psErrorCodeLast(), false, "Unable to invert images."); 157 157 return false; 158 158 } … … 170 170 171 171 if (!data->quality && !ppSubReadoutPhotometry("PPSUB.INVERSE", data)) { 172 psError( PS_ERR_UNKNOWN, false, "Unable to perform photometry.");172 psError(psErrorCodeLast(), false, "Unable to perform photometry."); 173 173 return false; 174 174 }
Note:
See TracChangeset
for help on using the changeset viewer.
