Changeset 7522
- Timestamp:
- Jun 11, 2006, 11:08:59 AM (20 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 4 added
- 2 deleted
- 5 edited
-
Makefile.am (modified) (1 diff)
-
ppImage.c (modified) (1 diff)
-
ppImage.h (modified) (3 diffs)
-
ppImageArguments.c (added)
-
ppImageCleanup.c (added)
-
ppImageConfig.c (deleted)
-
ppImageDetrendReadout.c (modified) (1 diff)
-
ppImageLoop.c (modified) (2 diffs)
-
ppImageParseCamera.c (added)
-
ppImagePhot.c (deleted)
-
ppImagePhotom.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/Makefile.am
r7508 r7522 10 10 ppImage_SOURCES = \ 11 11 ppImage.c \ 12 ppImageConfig.c \ 12 ppImageArguments.c \ 13 ppImageParseCamera.c \ 14 ppImageLoop.c \ 15 ppImageCleanup.c \ 13 16 ppImageOptions.c \ 14 ppImageParseDetrend.c \15 ppImageLoop.c \16 17 ppImageDetrendReadout.c \ 17 18 ppImageDetrendBias.c \ 18 19 ppImageDetrendNonLinear.c \ 19 20 ppImageRebinReadout.c \ 20 ppImagePhot .c \21 ppImagePhotom.c \ 21 22 ppMem.c 22 23 -
trunk/ppImage/src/ppImage.c
r6849 r7522 9 9 // Determine camera, format from header if not already defined 10 10 // Construct camera in preparation for reading 11 pmConfig *config = ppImageConfig(&argc, argv); 11 pmConfig *config = ppImageArguments(&argc, argv); 12 if (config == NULL) { 13 psErrorStackPrint(stderr, ""); 14 exit(1); 15 } 12 16 13 // Set various tasks (define optional operations) 14 ppImageOptions *options = ppImageOptionsParse(config); 15 17 // define recipe options 16 18 // define the active I/O files 17 ppImageParseDetrend(options, config); 19 ppImageOptions *options = ppImageParseCamera(config); 20 if (options == NULL) { 21 psErrorStackPrint(stderr, ""); 22 exit(1); 23 } 18 24 19 25 // Image Arithmetic Loop 20 ppImageLoop(options, config); 26 ppImageLoop(config, options); 27 28 psLogMsg ("psphot", 3, "complete psphot run: %f sec\n", psTimerMark ("complete")); 21 29 22 30 // Cleaning up 23 psFree(options); 24 psFree(config); 25 psTimerStop(); 26 psTraceReset(); 27 pmConceptsDone(); 28 pmConfigDone(); 29 // ppMemCheck(); 30 fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "ppImage"); 31 ppImageCleanup(config, options); 31 32 return EXIT_SUCCESS; 32 33 } -
trunk/ppImage/src/ppImage.h
r7508 r7522 7 7 #include "psphot.h" 8 8 #include "ppImageOptions.h" 9 #include "ppMem.h"10 9 11 10 #define RECIPE_NAME "PHASE2" // Name of the recipe to use … … 13 12 14 13 // Get the configuration 15 pmConfig *ppImage Config(int *argc, char **argv);14 pmConfig *ppImageArguments(int *argc, char **argv); 16 15 17 16 // Determine what type of camera, and initialise 18 bool ppImageParseDetrend(ppImageOptions *options,pmConfig *config);17 ppImageOptions *ppImageParseCamera(pmConfig *config); 19 18 20 19 // Loop over the input 21 bool ppImageLoop(ppImageOptions *options, pmConfig *config); 20 bool ppImageLoop(pmConfig *config, ppImageOptions *options); 21 22 // free memory, check for leaks 23 void ppImageCleanup (pmConfig *config, ppImageOptions *options); 22 24 23 25 // perform the detrend analysis on the current readout 24 bool ppImageDetrendReadout (p pImageOptions *options, pmConfig *config, pmFPAview *view);26 bool ppImageDetrendReadout (pmConfig *config, ppImageOptions *options, pmFPAview *view); 25 27 26 28 bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options); … … 35 37 bool ppImagePhotom (pmConfig *config, pmFPAview *view); 36 38 37 #endif // Pau.39 #endif -
trunk/ppImage/src/ppImageDetrendReadout.c
r7508 r7522 1 1 #include "ppImage.h" 2 2 3 bool ppImageDetrendReadout (p pImageOptions *options, pmConfig *config, pmFPAview *view)3 bool ppImageDetrendReadout (pmConfig *config, ppImageOptions *options, pmFPAview *view) 4 4 { 5 5 // construct a view for the detrend images (which have only one readout) -
trunk/ppImage/src/ppImageLoop.c
r7508 r7522 1 1 # include "ppImage.h" 2 2 3 bool ppImageLoop (p pImageOptions *options, pmConfig *config) {3 bool ppImageLoop (pmConfig *config, ppImageOptions *options) { 4 4 5 5 bool status; … … 35 35 36 36 // perform the detrend analysis 37 ppImageDetrendReadout ( options, config, view);37 ppImageDetrendReadout (config, options, view); 38 38 39 39 if (options->doBin1) ppImageRebinReadout (config, view, "PPIMAGE.BIN1");
Note:
See TracChangeset
for help on using the changeset viewer.
