Changeset 7738
- Timestamp:
- Jun 28, 2006, 2:26:49 PM (20 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 2 added
- 6 edited
-
Makefile.am (modified) (2 diffs)
-
ppFocus.c (modified) (2 diffs)
-
ppFocusArguments.c (modified) (1 diff)
-
ppFocusFitFWHM.c (added)
-
ppFocusGetFWHM.c (added)
-
ppFocusParseCamera.c (modified) (1 diff)
-
ppImage.h (modified) (1 diff)
-
ppImageLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/Makefile.am
r7592 r7738 1 bin_PROGRAMS = ppImage pp Test1 bin_PROGRAMS = ppImage ppFocus ppTest 2 2 3 3 noinst_HEADERS = \ … … 23 23 ppImageAstrom.c 24 24 25 # ppImageParseCamera.c \ 26 # ppDetrendFlat.c \ 27 # ppImageWeights.c \ 28 # ppImageLoadPixels.c 29 # ppImageOutput.c 30 # ppImageDetrendPedestal.c 31 # ppImageOutput.c 32 # ppImagePhot.c 25 ppFocus_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PSASTRO_CFLAGS) $(ppImage_CFLAGS) 26 ppFocus_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PSPHOT_LIBS) $(PSASTRO_LIBS) 27 ppFocus_SOURCES = \ 28 ppFocus.c \ 29 ppFocusArguments.c \ 30 ppFocusParseCamera.c \ 31 ppFocusGetFWHM.c \ 32 ppFocusFitFWHM.c \ 33 ppImageLoop.c \ 34 ppImageCleanup.c \ 35 ppImageOptions.c \ 36 ppImageDetrendReadout.c \ 37 ppImageDetrendBias.c \ 38 ppImageDetrendNonLinear.c \ 39 ppImageRebinReadout.c \ 40 ppImageMosaic.c \ 41 ppImagePhotom.c \ 42 ppImageAstrom.c 33 43 34 44 ppTest_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(ppImage_CFLAGS) -
trunk/ppImage/src/ppFocus.c
r7706 r7738 25 25 } 26 26 27 28 29 30 // Image Arithmetic Loop 31 if (!ppImageLoop(config, options)) { 32 psErrorStackPrint(stderr, ""); 27 // we search the argument data for the named fileset (argname) 28 psArray *infiles = psMetadataLookupPtr(NULL, config->arguments, "INPUT"); 29 if (!infiles) { 30 psTrace("pmFPAfile", 5, "Failed to find INPUT in argument list"); 33 31 exit(1); 34 32 } 35 33 36 psLogMsg ("ppImage", 3, "complete ppImage run: %f sec\n", psTimerMark (TIMERNAME)); 34 // allocate vectors for analysis 35 psVector *focus = psVectorAlloc (infiles->n, PS_TYPE_F32); 36 psVector *fwhm = psVectorAlloc (infiles->n, PS_TYPE_F32); 37 38 for (int i = 0; i < infiles->n; i++) { 39 40 // Image Arithmetic Loop 41 if (!ppImageLoop(config, options)) { 42 psErrorStackPrint(stderr, ""); 43 exit(1); 44 } 45 46 // determine FWHM at reference location in image 47 // (also removes PPIMAGE.INPUT from config->files) 48 ppFocusGetFWHM (config, focus, fwhm); 49 50 // silently ignore failure for (i == infiles->n) 51 pmFPAfileDefineSingleFromArgs (NULL, config, "PPIMAGE.INPUT", "INPUT", i+1); 52 } 53 54 ppFocusFitFWHM (config, focus, fwhm); 55 56 psLogMsg ("ppFocus", 3, "complete ppFocus run: %f sec\n", psTimerMark (TIMERNAME)); 37 57 38 58 // Cleaning up … … 44 64 // - the input list is a set of independent images (not multiple files for a single image) 45 65 // - each pass to ppImageLoop performs the analysis on a different pmFPAfile 46 // - 66 // - after each ppImageLoop, grap the input pmFPAfile and extract the FWHM stats -
trunk/ppImage/src/ppFocusArguments.c
r7706 r7738 2 2 3 3 static void usage (void) { 4 fprintf (stderr, "USAGE: ppFocus [-file INPUT.fits] [-list INPUT.txt] OUTPUT\n");4 fprintf (stderr, "USAGE: ppFocus [-file focus.*.fits] [-list INPUT.txt] OUTPUT\n"); 5 5 exit (2); 6 6 } -
trunk/ppImage/src/ppFocusParseCamera.c
r7706 r7738 8 8 // the first input image defines the camera, and all recipes and options that follow 9 9 // select only the first file from the INPUT array 10 pmFPAfile *input = pmFPAfileDefine FromArgs (&status, config, "PPIMAGE.INPUT", "INPUT");10 pmFPAfile *input = pmFPAfileDefineSingleFromArgs (&status, config, "PPIMAGE.INPUT", "INPUT", 0); 11 11 if (!status) { 12 12 psError(PS_ERR_IO, false, "Failed to build FPA from PPIMAGE.INPUT"); -
trunk/ppImage/src/ppImage.h
r7677 r7738 45 45 void ppImageFileCheck (pmConfig *config); 46 46 47 // functions used by ppFocus 48 pmConfig *ppFocusArguments(int argc, char **argv); 49 ppImageOptions *ppFocusParseCamera (pmConfig *config); 50 bool ppFocusGetFWHM (pmConfig *config, psVector *focus, psVector *fwhm); 51 bool ppFocusFitFWHM (pmConfig *config, psVector *focus, psVector *fwhm); 52 47 53 #endif -
trunk/ppImage/src/ppImageLoop.c
r7733 r7738 7 7 pmCell *cell; 8 8 pmReadout *readout; 9 psMemId ID;10 9 11 10 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPIMAGE.INPUT"); … … 24 23 if (!chip->process || !chip->file_exists) { continue; } 25 24 26 ID = psMemGetId();27 25 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) return false; 28 26
Note:
See TracChangeset
for help on using the changeset viewer.
