Changeset 28013 for trunk/psphot/src/psphotAddNoise.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotAddNoise.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/psphot.20100506 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotAddNoise.c
r26894 r28013 1 1 # include "psphotInternal.h" 2 2 3 bool psphotAddNoise (pmConfig *config, const pmFPAview *view ) {4 return psphotAddOrSubNoise (config, view, true);3 bool psphotAddNoise (pmConfig *config, const pmFPAview *view, const char *filerule) { 4 return psphotAddOrSubNoise (config, view, filerule, true); 5 5 } 6 6 7 bool psphotSubNoise (pmConfig *config, const pmFPAview *view ) {8 return psphotAddOrSubNoise (config, view, f alse);7 bool psphotSubNoise (pmConfig *config, const pmFPAview *view, const char *filerule) { 8 return psphotAddOrSubNoise (config, view, filerule, false); 9 9 } 10 10 11 11 // for now, let's store the detections on the readout->analysis for each readout 12 bool psphotAddOrSubNoise (pmConfig *config, const pmFPAview *view, bool add)12 bool psphotAddOrSubNoise (pmConfig *config, const pmFPAview *view, const char *filerule, bool add) 13 13 { 14 14 bool status = true; … … 23 23 // loop over the available readouts 24 24 for (int i = 0; i < num; i++) { 25 if (!psphotAddOrSubNoiseReadout (config, view, "PSPHOT.INPUT", i, recipe, add)) {26 psError (PSPHOT_ERR_CONFIG, false, "failed on to modify noise for PSPHOT.INPUT entry %d", i);25 if (!psphotAddOrSubNoiseReadout (config, view, filerule, i, recipe, add)) { 26 psError (PSPHOT_ERR_CONFIG, false, "failed on to modify noise for %s entry %d", filerule, i); 27 27 return false; 28 28 } … … 31 31 } 32 32 33 bool psphotAddOrSubNoiseReadout (pmConfig *config, const pmFPAview *view, const char *file name, int index, psMetadata *recipe, bool add) {33 bool psphotAddOrSubNoiseReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe, bool add) { 34 34 35 35 bool status = false; … … 39 39 40 40 // find the currently selected readout 41 pmFPAfile *file = pmFPAfileSelectSingle(config->files, file name, index); // File of interest41 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest 42 42 psAssert (file, "missing file?"); 43 43
Note:
See TracChangeset
for help on using the changeset viewer.
