- Timestamp:
- May 10, 2010, 5:24:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/psphotSkyReplace.c
r27657 r27909 1 1 # include "psphotInternal.h" 2 2 3 bool psphotSkyReplace (pmConfig *config, const pmFPAview *view )3 bool psphotSkyReplace (pmConfig *config, const pmFPAview *view, const char *filerule) 4 4 { 5 5 bool status = true; … … 15 15 for (int i = 0; i < num; i++) { 16 16 if (i == chisqNum) continue; // skip chisq image 17 if (!psphotSkyReplaceReadout (config, view, "PSPHOT.INPUT", i)) {18 psError (PSPHOT_ERR_CONFIG, false, "failed to replace sky for PSPHOT.INPUT entry %d", i);17 if (!psphotSkyReplaceReadout (config, view, filerule, i)) { 18 psError (PSPHOT_ERR_CONFIG, false, "failed to replace sky for %s entry %d", filerule, i); 19 19 return false; 20 20 } … … 25 25 // XXX make this an option? 26 26 // in order to successfully replace the sky, we must define a corresponding file... 27 bool psphotSkyReplaceReadout (pmConfig *config, const pmFPAview *view, const char *file name, int index) {27 bool psphotSkyReplaceReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index) { 28 28 29 29 psTimerStart ("psphot.skyreplace"); 30 30 31 31 // find the currently selected readout 32 pmFPAfile *file = pmFPAfileSelectSingle(config->files, file name, index); // File of interest32 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest 33 33 psAssert (file, "missing file?"); 34 34
Note:
See TracChangeset
for help on using the changeset viewer.
