Changeset 26982 for trunk/ppSub/src/ppSubMatchPSFs.c
- Timestamp:
- Feb 17, 2010, 5:36:13 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubMatchPSFs.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMatchPSFs.c
r26974 r26982 56 56 psAssert(photFile, "Need photometry file."); 57 57 if (!pmFPACopy(photFile->fpa, ro->parent->parent->parent)) { 58 psError(P S_ERR_UNKNOWN, false, "Unable to copy FPA for photometry");58 psError(PPSUB_ERR_CONFIG, false, "Unable to copy FPA for photometry"); 59 59 return false; 60 60 } … … 170 170 if (!pmSubtractionParamsScale(kernelSize, stampSize, kernelWidths, inFWHM, refFWHM, 171 171 scaleRef, scaleMin, scaleMax)) { 172 psError(P S_ERR_UNKNOWN, false, "Unable to scale parameters.");172 psError(PPSUB_ERR_DATA, false, "Unable to scale parameters."); 173 173 return false; 174 174 } … … 236 236 psFree(lists); 237 237 if (!detections->allSources) { 238 psError(P S_ERR_UNKNOWN, false, "Unable to merge source lists");238 psError(PPSUB_ERR_DATA, false, "Unable to merge source lists"); 239 239 psFree(detections); 240 240 return false; … … 262 262 pmSubtractionKernelsType type = pmSubtractionKernelsTypeFromString(typeStr); // Type of kernel 263 263 if (type == PM_SUBTRACTION_KERNEL_NONE) { 264 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unrecognised kernel type: %s", typeStr);264 psError(PPSUB_ERR_ARGUMENTS, true, "Unrecognised kernel type: %s", typeStr); 265 265 return false; 266 266 } … … 319 319 break; 320 320 default: 321 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "Invalid value for -convolve");321 psError(PPSUB_ERR_ARGUMENTS, false, "Invalid value for -convolve"); 322 322 return false; 323 323 } … … 325 325 326 326 if (!subScaleKernel(data, widths, &size, &footprint)) { 327 psError(P S_ERR_UNKNOWN, false, "Unable to scale kernel parameters");327 psError(PPSUB_ERR_DATA, false, "Unable to scale kernel parameters"); 328 328 return false; 329 329 } … … 391 391 return true; 392 392 } else { 393 psError(P S_ERR_UNKNOWN, false, "Unable to match images.");393 psError(PPSUB_ERR_DATA, false, "Unable to match images."); 394 394 return false; 395 395 }
Note:
See TracChangeset
for help on using the changeset viewer.
