Changeset 14811
- Timestamp:
- Sep 10, 2007, 2:44:14 PM (19 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 5 edited
-
ppStack.h (modified) (1 diff)
-
ppStackArguments.c (modified) (2 diffs)
-
ppStackCamera.c (modified) (1 diff)
-
ppStackMatch.c (modified) (2 diffs)
-
ppStackReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStack.h
r14626 r14811 37 37 bool ppStackMatch(pmReadout *output, ///< Convolved readout 38 38 const pmReadout *input, ///< Readout to be convolved 39 const pmReadout *sourcesRO, ///< Readout with sources 39 40 const pmConfig *config ///< Configuration 40 41 ); -
trunk/ppStack/src/ppStackArguments.c
r14626 r14811 19 19 { 20 20 fprintf(stderr, "\nPan-STARRS Image combination\n\n"); 21 fprintf(stderr, "Usage: %s INPUTS.mdc OUTPUT_ROOT -target FWHM -stamps FILENAME\n"21 fprintf(stderr, "Usage: %s INPUTS.mdc OUTPUT_ROOT [-target FWHM] [-sources STAMPS.cmf]\n" 22 22 "where INPUTS.mdc contains various METADATAs, each with:\n" 23 23 "\tIMAGE(STR): Image filename\n" … … 101 101 assert(config); 102 102 103 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSTACK.SOURCES", "-sources", NULL); 104 103 105 psMetadata *arguments = psMetadataAlloc(); // Command-line arguments 104 106 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stamps", 0, "Stamps file with x,y,flux per line", NULL); -
trunk/ppStack/src/ppStackCamera.c
r14626 r14811 214 214 } 215 215 216 // Sources for use as stamps 217 bool status = false; // Found the file? 218 pmFPAfile *sources = pmFPAfileDefineFromArgs(&status, config, "PPSTACK.SOURCES", "PPSTACK.SOURCES"); 219 if (!status) { 220 psError(PS_ERR_IO, false, "Failed to load file definition PPSTACK.SOURCES"); 221 return false; 222 } 223 if (sources && sources->type != PM_FPA_FILE_CMF) { 224 psError(PS_ERR_IO, true, "PPSTACK.SOURCES is not of type CMF"); 225 return false; 226 } 227 216 228 // For photometry, we operate on the chip-mosaicked image 217 229 // we create a copy of the mosaicked image for psphot so we can write out a clean image -
trunk/ppStack/src/ppStackMatch.c
r14764 r14811 11 11 //#define TESTING 12 12 13 bool ppStackMatch(pmReadout *output, const pmReadout *input, const pmConfig *config) 13 bool ppStackMatch(pmReadout *output, const pmReadout *input, const pmReadout *sourcesRO, 14 const pmConfig *config) 14 15 { 15 16 // Look up appropriate values from the ppSub recipe … … 51 52 } 52 53 54 psArray *sources = psMetadataLookupPtr(&mdok, sourcesRO->analysis, "PSPHOT.SOURCES"); // Sources in image 55 53 56 // Do the image matching 54 if (!pmSubtractionMatch(output, input, NULL, footprint, regionSize, spacing, threshold, stampsName, 55 target, type, size, order, widths, orders, inner, ringsOrder, binning, optimum, 56 optWidths, optOrder, optThresh, iter, rej, maskBad, maskBlank)) { 57 if (!pmSubtractionMatch(output, input, NULL, footprint, regionSize, spacing, threshold, sources, 58 stampsName, target, type, size, order, widths, orders, inner, ringsOrder, 59 binning, optimum, optWidths, optOrder, optThresh, iter, rej, maskBad, 60 maskBlank)) { 57 61 psError(PS_ERR_UNKNOWN, false, "Unable to match images."); 58 62 return false; -
trunk/ppStack/src/ppStackReadout.c
r14765 r14811 34 34 // Get the input sources 35 35 psArray *stack = psArrayAllocEmpty(ARRAY_BUFFER); // The stack of inputs 36 pmReadout *sources = pmFPAfileThisReadout(config->files, view, "PPSTACK.SOURCES"); // Sources for stamps 36 37 psMetadataIterator *fileIter = psMetadataIteratorAlloc(config->files, PS_LIST_HEAD, 37 38 "^PPSTACK.INPUT$"); // Iterator over input files … … 82 83 // Generate convolved version of input 83 84 pmReadout *convolved = pmReadoutAlloc(NULL); // Convolved version of input readout 84 if (!ppStackMatch(convolved, ro, config)) {85 if (!ppStackMatch(convolved, ro, sources, config)) { 85 86 psError(PS_ERR_UNKNOWN, false, "Unable to match image %d.", fileNum); 86 87 psFree(stats);
Note:
See TracChangeset
for help on using the changeset viewer.
