Changeset 14404 for trunk/ppStack/src
- Timestamp:
- Aug 6, 2007, 9:32:53 AM (19 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 4 edited
-
Makefile.am (modified) (1 diff)
-
ppStackArguments.c (modified) (2 diffs)
-
ppStackCamera.c (modified) (1 diff)
-
ppStackLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/Makefile.am
r13464 r14404 1 1 bin_PROGRAMS = ppStack 2 2 3 ppStack_CFLAGS = $(PS MODULE_CFLAGS) $(PSLIB_CFLAGS) $(PPSTATS_CFLAGS)$(PPSTACK_CFLAGS)4 ppStack_LDFLAGS = $(PS MODULE_LIBS) $(PSLIB_LIBS) $(PPSTATS_LIBS)$(PPSTACK_LIBS)3 ppStack_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PPSTATS_CFLAGS) $(PPSTACK_CFLAGS) 4 ppStack_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PSPHOT_LIBS) $(PPSTATS_LIBS) $(PPSTACK_LIBS) 5 5 6 6 ppStack_SOURCES = \ -
trunk/ppStack/src/ppStackArguments.c
r14279 r14404 9 9 10 10 #include "ppStack.h" 11 12 // XXX add in the version info as in ppImage 11 13 12 14 // Print usage information and die … … 109 111 psMetadataAddU8(arguments, PS_LIST_TAIL, "-mask-blank", 0, "Mask value for blank region", 0); 110 112 113 // XXX I want to get this from the recipe as well. (same for everything else...) 114 psMetadataAddBool(arguments, PS_LIST_TAIL, "-photom", 0, "Mask value for blank region", FALSE); 115 111 116 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 3) { 112 117 usage(argv[0], arguments, config); -
trunk/ppStack/src/ppStackCamera.c
r14280 r14404 223 223 } 224 224 225 // For photometry, we operate on the chip-mosaicked image 226 // we create a copy of the mosaicked image for psphot so we can write out a clean image 227 bool mdok = false; 228 bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOM"); // perform photometry 229 if (doPhotom) { 230 // this file is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by 231 // psphotDefineFiles 232 pmFPAfile *psphotInput = pmFPAfileDefineFromFPA (config, output->fpa, 1, 1, "PSPHOT.INPUT"); 233 PS_ASSERT (psphotInput, false); 234 235 // define associated psphot input/output files 236 if (!psphotDefineFiles (config, psphotInput)) { 237 psError(PSPHOT_ERR_CONFIG, false, "Trouble defining the additional input/output files for psphot"); 238 return false; 239 } 240 } 241 225 242 return true; 226 243 } -
trunk/ppStack/src/ppStackLoop.c
r14007 r14404 8 8 #include <psmodules.h> 9 9 #include <ppStats.h> 10 #include <psphot.h> 10 11 11 12 #include "ppStack.h" … … 37 38 return false; 38 39 } 40 41 bool doPhotom = psMetadataLookupBool(&mdok, config->arguments, "PHOTOM"); // perform photometry 39 42 40 43 pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy … … 80 83 } 81 84 85 if (doPhotom) { 86 if (!psphotReadout (config, view)) { 87 psError(psErrorCodeLast(), false, "failure in psphotReadout for stacked image\n"); 88 return false; 89 } 90 } 91 82 92 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 83 93 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
