IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2008, 5:08:31 PM (18 years ago)
Author:
Paul Price
Message:

Merging in pap_branch_080320 --- modernised version of ppMerge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.h

    r8405 r17227  
    22#define PP_MERGE_H
    33
    4 #define TIMERNAME "ppMerge"
    5 #define PPMERGE_RECIPE "PPMERGE"
     4#define TIMERNAME "ppMerge"             // Name for timer
     5#define PPMERGE_RECIPE "PPMERGE"        // Recipe name
     6
     7// Type of frame to merge
     8typedef enum {
     9    PPMERGE_TYPE_UNKNOWN,               // Unknown type
     10    PPMERGE_TYPE_BIAS,                  // Bias frame
     11    PPMERGE_TYPE_DARK,                  // (Multi-)Dark frame
     12    PPMERGE_TYPE_MASK,                  // Mask frame
     13    PPMERGE_TYPE_SHUTTER,               // Shutter frame
     14    PPMERGE_TYPE_FLAT,                  // Flat-field frame (dome or sky)
     15    PPMERGE_TYPE_FRINGE,                // Fringe frame
     16} ppMergeType;
     17
     18// Files, for activation
     19typedef enum {
     20    PPMERGE_FILES_ALL,                  // All files
     21    PPMERGE_FILES_INPUT,                // Input files
     22    PPMERGE_FILES_OUTPUT                // Output files
     23} ppMergeFiles;
     24
     25// Parse command-line arguments and recipe
     26bool ppMergeArguments(int argc, char *argv[], // Command-line arguments
     27                      pmConfig *config  // Configuration
     28    );
     29
     30// Set up camera files
     31bool ppMergeCamera(pmConfig *config     // Configuration
     32    );
     33
     34// Measure scale and zero-points
     35bool ppMergeScaleZero(pmConfig *config  // Configuration
     36    );
     37
     38// Main loop to do the merging
     39bool ppMergeLoop(pmConfig *config       // Configuration
     40    );
     41
     42// Main loop for masks
     43bool ppMergeMask(pmConfig *config       // Configuration
     44    );
     45
     46// Read nominated input file
     47bool ppMergeFileReadInput(const pmConfig *config, // Configuration
     48                          pmReadout *readout, // Readout into which to read
     49                          int num,      // Number of file in sequence
     50                          int rows      // Number of rows to read at once
     51    );
     52
     53// Open nominated input file
     54bool ppMergeFileOpenInput(pmConfig *config, // Configuration
     55                          const pmFPAview *view, // View to open
     56                          int num       // Number of file in sequence
     57    );
     58
     59// Set the data level for files specified by name; return an array of the files
     60psArray *ppMergeFileDataLevel(const pmConfig *config, // Configuration
     61                              const char *name, // Name of files
     62                              pmFPALevel level // Level for file data level
     63    );
     64
     65// Activate/deactivate a list of files
     66bool ppMergeFileActivate(const pmConfig *config, // Configuration
     67                         ppMergeFiles files, // Files to turn on/off
     68                         bool state     // Activation state
     69    );
     70
     71// Activate/deactivate a single element for a list; return array of files
     72psArray *ppMergeFileActivateSingle(const pmConfig *config, // Configuration
     73                                   ppMergeFiles files, // Files to turn on/off
     74                                   bool state,   // Activation state
     75                                   int num // Number of file in sequence
     76    );
     77
     78// Return name of output pmFPAfile
     79psString ppMergeOutputFile(const pmConfig *config // Configuration
     80    );
    681
    782#endif
Note: See TracChangeset for help on using the changeset viewer.