Changeset 14797
- Timestamp:
- Sep 10, 2007, 9:08:57 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ppMerge/src/ppMergeCombine.c (modified) (1 diff)
-
ppSim/src/ppSim.h (modified) (5 diffs)
-
ppSim/src/ppSimArguments.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r14356 r14797 154 154 } 155 155 156 float shutterRef ;// Reference shutter correction156 float shutterRef = NAN; // Reference shutter correction 157 157 if (options->shutter) { 158 158 shutterRef = pmShutterCorrectionReference(shutters->data[cellNum]); -
trunk/ppSim/src/ppSim.h
r14668 r14797 32 32 // Type of image to simulate 33 33 typedef enum { 34 PPSIM_TYPE_NONE, // No type set 34 35 PPSIM_TYPE_BIAS, // Bias image 35 36 PPSIM_TYPE_DARK, // Dark image … … 68 69 /// Parse command-line arguments 69 70 void ppSimArguments(int argc, char *argv[], ///< Command-line arguments 70 pmConfig *config ///< Configuration71 );71 pmConfig *config ///< Configuration 72 ); 72 73 73 74 /// Create output file … … 75 76 /// Returns a borrowed pointer to the FPA file. 76 77 pmFPAfile *ppSimCreate(pmConfig *config ///< Configuration 77 );78 ); 78 79 79 80 // Return bounds of a chip, based on the concepts 80 81 psRegion *ppSimChipBounds(const pmChip *chip, // Chip for which to determine size 81 pmFPAview *view // View for chip82 );82 pmFPAview *view // View for chip 83 ); 83 84 84 85 // Return bounds of an FPA, based on the concepts 85 86 psRegion *ppSimFPABounds(const pmFPA *fpa // FPA for which to determine size 86 );87 ); 87 88 88 89 /// Loop over the output file, generating simulated data 89 90 bool ppSimLoop(pmConfig *config ///< Configuration 90 );91 ); 91 92 92 93 psVector *ppSimMakeBiassec (pmCell *cell, pmConfig *config); … … 100 101 101 102 bool ppSimInitHeader(pmConfig *config, 102 pmFPA *fpa,103 pmChip *chip,104 pmCell *cell);103 pmFPA *fpa, 104 pmChip *chip, 105 pmCell *cell); 105 106 106 bool ppSimSaturate(pmReadout *readout, // Image to apply saturation107 const pmConfig *config); // Saturation level107 bool ppSimSaturate(pmReadout *readout, // Image to apply saturation 108 const pmConfig *config); // Saturation level 108 109 109 110 bool ppSimUpdateConceptsFPA (pmFPA *fpa, pmConfig *config); … … 113 114 114 115 bool ppSimAddNoise(psImage *signal, 115 psImage *variance,116 const pmCell *cell, 117 const pmConfig *config, 118 const psRandom *rng // Random number generator116 psImage *variance, 117 const pmCell *cell, 118 const pmConfig *config, 119 const psRandom *rng // Random number generator 119 120 ); 120 121 -
trunk/ppSim/src/ppSimArguments.c
r14667 r14797 77 77 usage(argv[0], arguments, config); 78 78 } 79 79 80 80 if (!psArgumentParse(arguments, &argc, argv)) { usage (argv[0], arguments, config); } 81 81 … … 84 84 psString formatName = psMetadataLookupStr(NULL, arguments, "-format"); // Name of format 85 85 if (formatName) { 86 // XXX delay the config below until ppSimCreate?86 // XXX delay the config below until ppSimCreate? 87 87 config->formatName = psMemIncrRefCounter(formatName); 88 88 … … 109 109 usage(argv[0], arguments, config); 110 110 } 111 ppSimType type ;// Type to simulate111 ppSimType type = PPSIM_TYPE_NONE; // Type to simulate 112 112 if (strcasecmp(typeStr, "BIAS") == 0) { 113 113 type = PPSIM_TYPE_BIAS; … … 122 122 usage(argv[0], arguments, config); 123 123 } 124 assert(type != PPSIM_TYPE_NONE); 124 125 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "TYPE", 0, "Exposure type", type); 125 126 … … 200 201 201 202 202 const char *psfClass = psMetadataLookupStr(NULL, arguments, "-psfclass"); // Filter name203 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "PSF.MODEL", 0, "PSF model class", psfClass);203 const char *psfClass = psMetadataLookupStr(NULL, arguments, "-psfclass"); // Filter name 204 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "PSF.MODEL", 0, "PSF model class", psfClass); 204 205 } 205 206
Note:
See TracChangeset
for help on using the changeset viewer.
