Changeset 27004 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Feb 18, 2010, 6:42:01 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackLoop.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
trunk/ppStack/src/ppStackLoop.c
r26117 r27004 22 22 psTrace("ppStack", 1, "Setup....\n"); 23 23 if (!ppStackSetup(options, config)) { 24 psError( PS_ERR_UNKNOWN, false, "Unable to setup.");24 psError(psErrorCodeLast(), false, "Unable to setup."); 25 25 psFree(options); 26 26 return false; … … 33 33 psTrace("ppStack", 1, "Preparation for stacking: merging sources, determining target PSF....\n"); 34 34 if (!ppStackPrepare(options, config)) { 35 psError( PS_ERR_UNKNOWN, false, "Unable to prepare for stacking.");35 psError(psErrorCodeLast(), false, "Unable to prepare for stacking."); 36 36 psFree(options); 37 37 return false; … … 45 45 psTrace("ppStack", 1, "Convolving inputs to target PSF....\n"); 46 46 if (!ppStackConvolve(options, config)) { 47 psError( PS_ERR_UNKNOWN, false, "Unable to convolve images.");47 psError(psErrorCodeLast(), false, "Unable to convolve images."); 48 48 psFree(options); 49 49 return false; … … 58 58 ppStackThreadData *stack = ppStackThreadDataSetup(options, config, true); 59 59 if (!stack) { 60 psError( PS_ERR_IO, false, "Unable to initialise stack threads.");60 psError(psErrorCodeLast(), false, "Unable to initialise stack threads."); 61 61 psFree(options); 62 62 return false; … … 65 65 // Prepare for combination 66 66 if (!ppStackCombinePrepare(stack, options, config)) { 67 psError( PS_ERR_UNKNOWN, false, "Unable to prepare for combination.");67 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 68 68 psFree(stack); 69 69 psFree(options); … … 74 74 psTrace("ppStack", 1, "Initial stack of convolved images....\n"); 75 75 if (!ppStackCombineInitial(stack, options, config)) { 76 psError( PS_ERR_UNKNOWN, false, "Unable to perform initial combination.");76 psError(psErrorCodeLast(), false, "Unable to perform initial combination."); 77 77 psFree(stack); 78 78 psFree(options); … … 86 86 psTrace("ppStack", 1, "Reject pixels....\n"); 87 87 if (!ppStackReject(options, config)) { 88 psError( PS_ERR_UNKNOWN, false, "Unable to reject pixels.");88 psError(psErrorCodeLast(), false, "Unable to reject pixels."); 89 89 psFree(stack); 90 90 psFree(options); … … 98 98 psTrace("ppStack", 2, "Final stack of convolved images....\n"); 99 99 if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, false, false)) { 100 psError( PS_ERR_UNKNOWN, false, "Unable to perform final combination.");100 psError(psErrorCodeLast(), false, "Unable to perform final combination."); 101 101 psFree(stack); 102 102 psFree(options); … … 109 109 psTrace("ppStack", 2, "Cleaning up after combination....\n"); 110 110 if (!ppStackCleanup(stack, options, config)) { 111 psError( PS_ERR_UNKNOWN, false, "Unable to clean up.");111 psError(psErrorCodeLast(), false, "Unable to clean up."); 112 112 psFree(stack); 113 113 psFree(options); … … 125 125 ppStackThreadData *stack = ppStackThreadDataSetup(options, config, false); 126 126 if (!stack) { 127 psError( PS_ERR_IO, false, "Unable to initialise stack threads.");127 psError(psErrorCodeLast(), false, "Unable to initialise stack threads."); 128 128 psFree(options); 129 129 return false; … … 131 131 psTrace("ppStack", 2, "Stack of unconvolved images....\n"); 132 132 if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config, false, true)) { 133 psError( PS_ERR_UNKNOWN, false, "Unable to perform unconvolved combination.");133 psError(psErrorCodeLast(), false, "Unable to perform unconvolved combination."); 134 134 psFree(stack); 135 135 psFree(options); … … 147 147 psTrace("ppStack", 1, "Photometering stacked image....\n"); 148 148 if (!ppStackPhotometry(options, config)) { 149 psError( PS_ERR_UNKNOWN, false, "Unable to perform photometry.");149 psError(psErrorCodeLast(), false, "Unable to perform photometry."); 150 150 psFree(options); 151 151 return false; … … 157 157 psTrace("ppStack", 1, "Finishing up....\n"); 158 158 if (!ppStackFinish(options, config)) { 159 psError( PS_ERR_UNKNOWN, false, "Unable to finish up.");159 psError(psErrorCodeLast(), false, "Unable to finish up."); 160 160 psFree(options); 161 161 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
