Changeset 17227 for trunk/ppMerge/src/ppMerge.h
- Timestamp:
- Mar 28, 2008, 5:08:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMerge.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMerge.h
r8405 r17227 2 2 #define PP_MERGE_H 3 3 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 8 typedef 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 19 typedef 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 26 bool ppMergeArguments(int argc, char *argv[], // Command-line arguments 27 pmConfig *config // Configuration 28 ); 29 30 // Set up camera files 31 bool ppMergeCamera(pmConfig *config // Configuration 32 ); 33 34 // Measure scale and zero-points 35 bool ppMergeScaleZero(pmConfig *config // Configuration 36 ); 37 38 // Main loop to do the merging 39 bool ppMergeLoop(pmConfig *config // Configuration 40 ); 41 42 // Main loop for masks 43 bool ppMergeMask(pmConfig *config // Configuration 44 ); 45 46 // Read nominated input file 47 bool 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 54 bool 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 60 psArray *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 66 bool 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 72 psArray *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 79 psString ppMergeOutputFile(const pmConfig *config // Configuration 80 ); 6 81 7 82 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
