Changeset 15608
- Timestamp:
- Nov 13, 2007, 12:02:34 PM (18 years ago)
- Location:
- trunk/pswarp/src
- Files:
-
- 1 added
- 3 edited
-
Makefile.am (modified) (1 diff)
-
pswarp.h (modified) (1 diff)
-
pswarpLoop.c (modified) (3 diffs)
-
pswarpPixelFraction.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/Makefile.am
r15412 r15608 14 14 pswarpMatchRange.c \ 15 15 pswarpParseCamera.c \ 16 pswarpPixelFraction.c \ 16 17 pswarpTransformReadout_Opt.c \ 17 18 pswarpVersion.c 18 # pswarpTransformReadout.c19 19 20 20 noinst_HEADERS = \ -
trunk/pswarp/src/pswarp.h
r14874 r15608 55 55 bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy); 56 56 57 bool pswarpDefineSkycell (pmFPAfile **outFile, pmConfig **outConfig, pmConfig *config, const char *filename, const char *argname); 57 bool pswarpDefineSkycell (pmFPAfile **outFile, pmConfig **outConfig, pmConfig *config, 58 const char *filename, const char *argname); 59 60 /// Check to see if the readout has a minimum fraction of "lit" pixels 61 bool pswarpPixelFraction(const pmReadout *readout, ///< Readout to inspect 62 psMetadata *stats, ///< Statistics to update with the result 63 const pmConfig *config ///< Configuration 64 ); 65 -
trunk/pswarp/src/pswarpLoop.c
r14901 r15608 215 215 pmCell *outCell = output->parent; // Output cell 216 216 pmChip *outChip = outCell->parent; // Output chip 217 pmFPA *outFPA = outChip->parent; // Output FPA 217 pmFPA *outFPA = outChip->parent; // Output FP 218 219 if (!pswarpPixelFraction(output, stats, config)) { 220 // Don't write output images, and don't bother about anything else 221 output->data_exists = outCell->data_exists = outChip->data_exists = false; 222 psFree(cells); 223 psFree(view); 224 goto COMPLETED; 225 } 218 226 219 227 if (!pmConceptsAverageCells(outCell, cells, NULL, NULL, false)) { 220 228 psError(PS_ERR_UNKNOWN, false, "Unable to average cell concepts."); 221 229 psFree(stats); 230 psFree(cells); 222 231 psFree(view); 223 232 return false; … … 266 275 view->chip = view->cell = view->readout = 0; 267 276 if (!psphotReadout(config, view)) { 268 psError(psErrorCodeLast(), false, "Unable to determine PSF for warped image.\n");269 ps Free(view);270 return false;277 // Can't do anything about it; let it continue 278 psErrorStackPrint(stderr, "Unable to determine PSF for warped image.\n"); 279 psErrorClear(); 271 280 } 272 281 psFree(view); … … 319 328 // Now done with the skycell side of things 320 329 330 COMPLETED: 321 331 // Write out summary statistics 322 332 if (stats) {
Note:
See TracChangeset
for help on using the changeset viewer.
