Changeset 14806
- Timestamp:
- Sep 10, 2007, 2:08:40 PM (19 years ago)
- Location:
- trunk/ppSub/src
- Files:
-
- 3 edited
-
ppSubArguments.c (modified) (2 diffs)
-
ppSubCamera.c (modified) (5 diffs)
-
ppSubReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r14747 r14806 18 18 fprintf(stderr, "\nPan-STARRS PSF-matched image subtraction\n\n"); 19 19 fprintf(stderr, "Usage: %s INPUT.fits REFERENCE.fits OUTPUT_ROOT \n" 20 "\t[-psf REFERENCE.psf.fits] \n\n"20 "\t[-psf REFERENCE.psf.fits] [-sources REFERENCE.cmf]\n\n" 21 21 "This subtracts the convolved REFERENCE from the INPUT, by default.\n", 22 22 program); … … 177 177 psArgumentGet(argc, argv, "-psf") ? true : false); 178 178 pmConfigFileSetsMD(config->arguments, &argc, argv, "PSPHOT.PSF", "-psf", NULL); 179 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL); 179 180 180 181 psMetadata *arguments = psMetadataAlloc(); // Command-line arguments -
trunk/ppSub/src/ppSubCamera.c
r14741 r14806 28 28 pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK"); 29 29 if (!status) { 30 psError (PS_ERR_UNKNOWN, false, " failed to load find definition");30 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.MASK"); 31 31 return NULL; 32 32 } … … 39 39 pmFPAfile *inputWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.WEIGHT", "INPUT.WEIGHT"); 40 40 if (!status) { 41 psError (PS_ERR_UNKNOWN, false, " failed to load find definition");41 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.WEIGHT"); 42 42 return NULL; 43 43 } … … 62 62 pmFPAfile *refMask = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.MASK", "REF.MASK"); 63 63 if (!status) { 64 psError (PS_ERR_UNKNOWN, false, " failed to load find definition");64 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.MASK"); 65 65 return NULL; 66 66 } … … 73 73 pmFPAfile *refWeight = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.WEIGHT", "REF.WEIGHT"); 74 74 if (!status) { 75 psError (PS_ERR_UNKNOWN, false, " failed to load find definition");75 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.WEIGHT"); 76 76 return NULL; 77 77 } … … 128 128 psFree(view); 129 129 130 pmFPAfile *sources = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.SOURCES", "SOURCES"); 131 if (!sources) { 132 psError(PS_ERR_IO, false, "Failed to load file definition PPSUB.SOURCES"); 133 return false; 134 } 135 if (ref->type != PM_FPA_FILE_CMF) { 136 psError(PS_ERR_IO, true, "PPSUB.SOURCES is not of type CMF"); 137 return false; 138 } 139 130 140 // psPhot input 131 141 if (psMetadataLookup(config->arguments, "PSPHOT.PSF")) { -
trunk/ppSub/src/ppSubReadout.c
r14751 r14806 83 83 } 84 84 85 if (!pmSubtractionMatch(outRO, refRO, inRO, footprint, regionSize, spacing, threshold, stampsName, 86 NAN, type, size, order, widths, orders, inner, ringsOrder, binning, optimum, 87 optWidths, optOrder, optThresh, iter, rej, maskBad, maskBlank)) { 85 psArray *sources = psMetadataLookupPtr(&mdok, refRO->analysis, "PSPHOT.SOURCES"); // Sources in image 86 87 if (!pmSubtractionMatch(outRO, refRO, inRO, footprint, regionSize, spacing, threshold, sources, 88 stampsName, NAN, type, size, order, widths, orders, inner, ringsOrder, 89 binning, optimum, optWidths, optOrder, optThresh, iter, rej, maskBad, 90 maskBlank)) { 88 91 psError(PS_ERR_UNKNOWN, false, "Unable to match images."); 89 92 psFree(outRO);
Note:
See TracChangeset
for help on using the changeset viewer.
