Changeset 14404
- Timestamp:
- Aug 6, 2007, 9:32:53 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
ppStack/configure.ac (modified) (1 diff)
-
ppStack/src/Makefile.am (modified) (1 diff)
-
ppStack/src/ppStackArguments.c (modified) (2 diffs)
-
ppStack/src/ppStackCamera.c (modified) (1 diff)
-
ppStack/src/ppStackLoop.c (modified) (3 diffs)
-
ppSub/src/Makefile.am (modified) (1 diff)
-
ppSub/src/ppSubLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/configure.ac
r14174 r14404 17 17 AC_SYS_LARGEFILE 18 18 19 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0])19 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0]) 20 20 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 21 PKG_CHECK_MODULES([PPSTATS], [ppStats >= 1.0.0]) 21 PKG_CHECK_MODULES([PSPHOT], [psphot >= 0.8.0]) 22 PKG_CHECK_MODULES([PPSTATS], [ppStats >= 1.0.0]) 22 23 23 24 IPP_STDOPTS -
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; -
trunk/ppSub/src/Makefile.am
r13462 r14404 1 1 bin_PROGRAMS = ppSub 2 2 ppSub_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PSPHOT_CFLAGS) $(PPSUB_CFLAGS) 3 ppSub_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSPHOT_LIBS)$(PPSUB_LIBS)3 ppSub_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSPHOT_LIBS) $(PPSUB_LIBS) 4 4 5 5 ppSub_SOURCES = \ -
trunk/ppSub/src/ppSubLoop.c
r14296 r14404 8 8 #include <psmodules.h> 9 9 #include <ppStats.h> 10 #include <psphot.h> 10 11 11 12 #include "ppSub.h" … … 53 54 } 54 55 56 bool doPhotom = false; 57 if (psMetadataLookup(config->arguments, "PSPHOT.PSF")) { 58 doPhotom = true; 59 } 60 55 61 pmFPAview *view = pmFPAviewAlloc(0); // Pointer into FPA hierarchy 56 62 pmHDU *lastHDU = NULL; // Last HDU that was updated … … 129 135 } 130 136 137 if (doPhotom) { 138 if (!psphotReadout (config, view)) { 139 psError(psErrorCodeLast(), false, "failure in psphotReadout for stacked image\n"); 140 return false; 141 } 142 } 143 131 144 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 132 145 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
