Changeset 23672 for branches/pap/ppSub/src/ppSub.h
- Timestamp:
- Apr 1, 2009, 5:17:21 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppSub/src/ppSub.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppSub/src/ppSub.h
r23599 r23672 22 22 #define PPSUB_RECIPE "PPSUB" /// Name of the recipe to use 23 23 24 // Output files, for activation/deactivation 25 typedef enum { 26 PPSUB_FILES_IMAGE = 0x01, // Image files 27 PPSUB_FILES_PHOT = 0x02, // Photometry files 28 PPSUB_FILES_ALL = 0xFF, // All files 29 } ppSubFiles; 30 31 /// Data for processing 32 typedef struct { 33 psErrorCode quality; /// Quality code; 0 for no problem 34 psMetadata *stats; /// Statistics 35 } ppSubData; 36 37 /// Constructor 38 ppSubData *ppSubDataAlloc(void); 39 24 40 /// Setup the arguments parsing 25 41 bool ppSubArgumentsSetup(int argc, char *argv[], ///< Command-line arguments … … 41 57 /// Perform PSF-matched image subtraction on the readout 42 58 bool ppSubReadout(pmConfig *config, ///< Configuration 43 p sMetadata *stats, ///< Statistics, for output59 ppSubData *data, ///< Processing data 44 60 const pmFPAview *view ///< View of readout to subtract 45 61 ); … … 53 69 /// looking up the parameters in the recipe and supplying them to the function pmSubtractionMatch() 54 70 bool ppSubMatchPSFs(pmConfig *config, ///< Configuration 71 ppSubData *data, ///< Processing data 55 72 const pmFPAview *view ///< View of active readout 56 73 ); … … 63 80 /// Photometry stage 1: measure the PSF from the minuend image 64 81 bool ppSubMakePSF(pmConfig *config, ///< Configuration 65 p sMetadata *stats, ///< Statistics, for output82 ppSubData *data, ///< Processing data 66 83 const pmFPAview *view ///< View of active readout 67 84 ); … … 75 92 /// Photometry stage 2: find and measure sources on the subtracted image 76 93 bool ppSubReadoutPhotometry(pmConfig *config, ///< Configuration 77 p sMetadata *stats, ///< Statistics, for output94 ppSubData *data, ///< Processing data 78 95 const pmFPAview *view ///< View of active readout 79 96 ); … … 81 98 /// Renormalize, update headers and generate JPEGs 82 99 bool ppSubReadoutUpdate(pmConfig *config, ///< Configuration 83 p sMetadata *stats, ///< Statistics for output, or NULL100 ppSubData *data, ///< Processing data 84 101 const pmFPAview *view ///< View of active readout 85 102 ); … … 97 114 void ppSubVersionPrint(void); 98 115 116 /// Mark the data quality as bad and prepare to suspend processing 117 void ppSubDataQuality(pmConfig *config, ///< Configuration 118 ppSubData *data, ///< Processing data 119 psErrorCode error,///< Error code 120 ppSubFiles files ///< Files to deactivate 121 ); 99 122 100 123 // Copy every instance of a single keyword from one metadata to another
Note:
See TracChangeset
for help on using the changeset viewer.
