Changeset 17672 for branches/eam_branch_20080511/ppSim/src/ppSim.h
- Timestamp:
- May 13, 2008, 4:56:38 PM (18 years ago)
- File:
-
- 1 edited
-
branches/eam_branch_20080511/ppSim/src/ppSim.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSim.h
r17630 r17672 13 13 #include <psmodules.h> 14 14 #include <psastro.h> 15 #include <psphot.h> 15 16 16 17 #define PPSIM_RECIPE "PPSIM" … … 18 19 19 20 // Compare a value with minimum and maximum values, replacing where required. 20 #define COMPARE(VALUE,MIN,MAX) { \21 if (VALUE < MIN) { MIN = VALUE; } \22 if (VALUE > MAX) { MAX = VALUE; } \21 #define COMPARE(VALUE,MIN,MAX) { \ 22 if (VALUE < MIN) { MIN = VALUE; } \ 23 if (VALUE > MAX) { MAX = VALUE; } \ 23 24 } 24 25 … … 70 71 71 72 /// Parse command-line arguments 72 void ppSimArguments(int argc, char *argv[], ///< Command-line arguments73 bool ppSimArguments(int argc, char **argv, ///< Command-line arguments 73 74 pmConfig *config ///< Configuration 74 );75 ); 75 76 76 77 /// Create output file … … 78 79 /// Returns a borrowed pointer to the FPA file. 79 80 pmFPAfile *ppSimCreate(pmConfig *config ///< Configuration 80 );81 ); 81 82 82 83 // Return bounds of a chip, based on the concepts 83 84 psRegion *ppSimChipBounds(const pmChip *chip, // Chip for which to determine size 84 85 pmFPAview *view // View for chip 85 );86 ); 86 87 87 88 // Return bounds of an FPA, based on the concepts 88 89 psRegion *ppSimFPABounds(const pmFPA *fpa // FPA for which to determine size 89 );90 ); 90 91 91 92 /// Loop over the output file, generating simulated data 92 93 bool ppSimLoop(pmConfig *config ///< Configuration 93 );94 ); 94 95 95 96 psVector *ppSimMakeBiassec (pmCell *cell, pmConfig *config); … … 98 99 bool ppSimMakeSky (pmReadout *readout, psImage *expCorr, ppSimType type, pmConfig *config); 99 100 100 psArray *ppSimLoadSpots (pmFPA *fpa, pmConfig *config);101 bool ppSimLoadSpots (pmFPA *fpa, pmConfig *config); 101 102 102 103 bool ppSimLoadStars (psArray *stars, pmFPA *fpa, pmConfig *config); … … 147 148 float ppSimMagToFlux (float mag, float zp); 148 149 150 float ppSimArgToRecipeF32(bool *status, 151 psMetadata *options, // Target to which to add value 152 const char *recipeName, // Name for value in the recipe 153 psMetadata *arguments, // Command-line arguments 154 const char *argName // Argument name in the command-line arguments 155 ); 156 157 int ppSimArgToRecipeS32(bool *status, 158 psMetadata *options, // Target to which to add value 159 const char *recipeName, // Name for value in the recipe 160 psMetadata *arguments, // Command-line arguments 161 const char *argName // Argument name in the command-line arguments 162 ); 163 164 char *ppSimArgToRecipeStr(bool *status, 165 psMetadata *options, // Target to which to add value 166 const char *recipeName, // Name for value in the recipe 167 psMetadata *arguments, // Command-line arguments 168 const char *argName // Argument name in the command-line arguments 169 ); 170 171 ppSimType ppSimTypeFromString (char *typeStr); 172 char *ppSimTypeToString (ppSimType type); 173 174 float ppSimGetZeroPoint (psMetadata *recipe, char *filter); 175 149 176 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
