Changeset 13462
- Timestamp:
- May 21, 2007, 6:24:29 PM (19 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 5 edited
-
configure.ac (modified) (1 diff)
-
src/Makefile.am (modified) (1 diff)
-
src/ppSubArguments.c (modified) (2 diffs)
-
src/ppSubCamera.c (modified) (2 diffs)
-
src/ppSubReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/configure.ac
r13341 r13462 21 21 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 22 22 PKG_CHECK_MODULES([PPSTATS], [ppStats >= 1.0.0]) 23 PKG_CHECK_MODULES([PSPHOT], [psphot >= 0.9.0]) 23 24 24 25 dnl Set CFLAGS for build 25 26 IPP_STDOPTS 26 27 CFLAGS="${CFLAGS} -Wall -Werror -std=c99" 27 echo "PPSUB_CFLAGS: $PPSUB_CFLAGS"28 echo "PPSUB_LIBS: $PPSUB_LIBS"29 28 30 29 AC_SUBST([PPSUB_CFLAGS]) -
trunk/ppSub/src/Makefile.am
r13341 r13462 1 1 bin_PROGRAMS = ppSub 2 ppSub_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(P PSUB_CFLAGS)3 ppSub_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(P PSUB_LIBS)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) 4 4 5 5 ppSub_SOURCES = \ -
trunk/ppSub/src/ppSubArguments.c
r13393 r13462 17 17 { 18 18 fprintf(stderr, "\nPan-STARRS PSF-matched image subtraction\n\n"); 19 fprintf(stderr, "Usage: %s INPUT.fits REFERENCE.fits OUTPUT_ROOT\n", program); 19 fprintf(stderr, "Usage: %s INPUT.fits REFERENCE.fits OUTPUT_ROOT \n" 20 "\t[-psf REFERENCE.psf.fits|-psflist REFERENCE.list]\n", 21 program); 20 22 fprintf(stderr, "\n"); 21 23 psArgumentHelp(arguments); … … 139 141 assert(config); 140 142 143 pmConfigFileSetsMD(config->arguments, &argc, argv, "PSPHOT.PSF", "-psf", "-psflist"); 144 141 145 psMetadata *arguments = psMetadataAlloc(); // Command-line arguments 142 146 psMetadataAddStr(arguments, PS_LIST_TAIL, "-inmask", 0, "Input mask image", NULL); -
trunk/ppSub/src/ppSubCamera.c
r13371 r13462 6 6 #include <pslib.h> 7 7 #include <psmodules.h> 8 #include <psphot.h> 8 9 9 10 #include "ppSub.h" … … 97 98 } 98 99 100 // psPhot input 101 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 102 if (!psphot) { 103 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT"); 104 return false; 105 } 106 if (input->type != PM_FPA_FILE_IMAGE) { 107 psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE"); 108 return false; 109 } 110 111 if (!psphotDefineFiles(config, psphot)) { 112 psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files."); 113 return false; 114 } 115 99 116 return true; 100 117 } -
trunk/ppSub/src/ppSubReadout.c
r13393 r13462 6 6 #include <pslib.h> 7 7 #include <psmodules.h> 8 #include <psphot.h> 8 9 9 10 #include "ppSub.h" … … 174 175 #endif 175 176 177 psFree(kernels); 178 psFree(stamps); 179 psFree(solution); 176 180 177 psFree(kernels); 178 psFree(stamps); 179 psFree(solution); 180 return true; 181 pmFPAfile *photFile = psMetadataLookupPtr(NULL, config->files, "PSPHOT.INPUT"); 182 pmFPACopy(photFile->fpa, inRO->parent->parent->parent); 181 183 182 ERROR: 183 psFree(kernels); 184 psFree(stamps); 185 psFree(solution); 186 return false; 184 psphotReadout(config, view); 185 186 pmFPAfileActivate(config->files, false, "PSPHOT.INPUT"); 187 188 return true; 189 190 ERROR: 191 psFree(kernels); 192 psFree(stamps); 193 psFree(solution); 194 return false; 187 195 }
Note:
See TracChangeset
for help on using the changeset viewer.
