Changeset 27167 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Mar 3, 2010, 3:17:09 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackLoop.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackLoop.c
r27166 r27167 61 61 if (!ppStackSetup(options, config)) { 62 62 psError(psErrorCodeLast(), false, "Unable to setup."); 63 psFree(options);64 63 return false; 65 64 } … … 72 71 if (!ppStackPrepare(options, config)) { 73 72 psError(psErrorCodeLast(), false, "Unable to prepare for stacking."); 74 psFree(options);75 73 return false; 76 74 } … … 80 78 if (options->quality) { 81 79 // Can't do anything else 82 #if 083 pmFPAview *view = pmFPAviewAlloc(0);// Pointer into FPA hierarchy84 view->chip = view->cell = view->readout = 0;85 for (int i = 0; i < options->num; i++) {86 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); // File of interest87 pmReadout *ro = pmFPAviewThisReadout(view, file->fpa); // Readout of interest88 if (ro) {89 ro->data_exists = false;90 }91 }92 psFree(view);93 #endif94 80 return true; 95 81 } … … 99 85 if (!ppStackConvolve(options, config)) { 100 86 psError(psErrorCodeLast(), false, "Unable to convolve images."); 101 psFree(options);102 87 return false; 103 88 } … … 122 107 if (!stack) { 123 108 psError(psErrorCodeLast(), false, "Unable to initialise stack threads."); 124 psFree(options);125 109 return false; 126 110 } … … 130 114 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 131 115 psFree(stack); 132 psFree(options);133 116 return false; 134 117 } … … 139 122 psError(psErrorCodeLast(), false, "Unable to perform initial combination."); 140 123 psFree(stack); 141 psFree(options);142 124 return false; 143 125 } … … 151 133 psError(psErrorCodeLast(), false, "Unable to reject pixels."); 152 134 psFree(stack); 153 psFree(options);154 135 return false; 155 136 } … … 171 152 psError(psErrorCodeLast(), false, "Unable to perform final combination."); 172 153 psFree(stack); 173 psFree(options);174 154 return false; 175 155 } … … 182 162 psError(psErrorCodeLast(), false, "Unable to clean up."); 183 163 psFree(stack); 184 psFree(options);185 164 return false; 186 165 } … … 197 176 if (!stack) { 198 177 psError(psErrorCodeLast(), false, "Unable to initialise stack threads."); 199 psFree(options);200 178 return false; 201 179 } … … 204 182 psError(psErrorCodeLast(), false, "Unable to perform unconvolved combination."); 205 183 psFree(stack); 206 psFree(options);207 184 return false; 208 185 } … … 219 196 if (!ppStackPhotometry(options, config)) { 220 197 psError(psErrorCodeLast(), false, "Unable to perform photometry."); 221 psFree(options);222 198 return false; 223 199 } … … 229 205 if (!ppStackFinish(options, config)) { 230 206 psError(psErrorCodeLast(), false, "Unable to finish up."); 231 psFree(options);232 207 return false; 233 208 } 234 209 ppStackMemDump("finish"); 235 236 psFree(options);237 210 238 211 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
