IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7522


Ignore:
Timestamp:
Jun 11, 2006, 11:08:59 AM (20 years ago)
Author:
eugene
Message:

re-org / re-name to make more parallel with psphot

Location:
trunk/ppImage/src
Files:
4 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r7508 r7522  
    1010ppImage_SOURCES = \
    1111        ppImage.c \
    12         ppImageConfig.c \
     12        ppImageArguments.c \
     13        ppImageParseCamera.c \
     14        ppImageLoop.c \
     15        ppImageCleanup.c \
    1316        ppImageOptions.c \
    14         ppImageParseDetrend.c \
    15         ppImageLoop.c \
    1617        ppImageDetrendReadout.c \
    1718        ppImageDetrendBias.c \
    1819        ppImageDetrendNonLinear.c \
    1920        ppImageRebinReadout.c \
    20         ppImagePhot.c \
     21        ppImagePhotom.c \
    2122        ppMem.c
    2223
  • trunk/ppImage/src/ppImage.c

    r6849 r7522  
    99    // Determine camera, format from header if not already defined
    1010    // 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    }
    1216
    13     // Set various tasks (define optional operations)
    14     ppImageOptions *options = ppImageOptionsParse(config);
    15 
     17    // define recipe options
    1618    // 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    }
    1824
    1925    // Image Arithmetic Loop
    20     ppImageLoop(options, config);
     26    ppImageLoop(config, options);
     27
     28    psLogMsg ("psphot", 3, "complete psphot run: %f sec\n", psTimerMark ("complete"));
    2129
    2230    // 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);
    3132    return EXIT_SUCCESS;
    3233}
  • trunk/ppImage/src/ppImage.h

    r7508 r7522  
    77#include "psphot.h"
    88#include "ppImageOptions.h"
    9 #include "ppMem.h"
    109
    1110#define RECIPE_NAME "PHASE2"            // Name of the recipe to use
     
    1312
    1413// Get the configuration
    15 pmConfig *ppImageConfig(int *argc, char **argv);
     14pmConfig *ppImageArguments(int *argc, char **argv);
    1615
    1716// Determine what type of camera, and initialise
    18 bool ppImageParseDetrend(ppImageOptions *options, pmConfig *config);
     17ppImageOptions *ppImageParseCamera(pmConfig *config);
    1918
    2019// Loop over the input
    21 bool ppImageLoop(ppImageOptions *options, pmConfig *config);
     20bool ppImageLoop(pmConfig *config, ppImageOptions *options);
     21
     22// free memory, check for leaks
     23void ppImageCleanup (pmConfig *config, ppImageOptions *options);
    2224
    2325// perform the detrend analysis on the current readout
    24 bool ppImageDetrendReadout (ppImageOptions *options, pmConfig *config, pmFPAview *view);
     26bool ppImageDetrendReadout (pmConfig *config, ppImageOptions *options, pmFPAview *view);
    2527
    2628bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options);
     
    3537bool ppImagePhotom (pmConfig *config, pmFPAview *view);
    3638
    37 #endif // Pau.
     39#endif
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r7508 r7522  
    11#include "ppImage.h"
    22
    3 bool ppImageDetrendReadout (ppImageOptions *options, pmConfig *config, pmFPAview *view)
     3bool ppImageDetrendReadout (pmConfig *config, ppImageOptions *options, pmFPAview *view)
    44{
    55    // construct a view for the detrend images (which have only one readout)
  • trunk/ppImage/src/ppImageLoop.c

    r7508 r7522  
    11# include "ppImage.h"
    22
    3 bool ppImageLoop (ppImageOptions *options, pmConfig *config) {
     3bool ppImageLoop (pmConfig *config, ppImageOptions *options) {
    44
    55    bool status;
     
    3535
    3636                // perform the detrend analysis
    37                 ppImageDetrendReadout (options, config, view);
     37                ppImageDetrendReadout (config, options, view);
    3838
    3939                if (options->doBin1) ppImageRebinReadout (config, view, "PPIMAGE.BIN1");
Note: See TracChangeset for help on using the changeset viewer.