- Timestamp:
- Dec 6, 2012, 6:32:19 PM (14 years ago)
- Location:
- branches/czw_branch/20120906/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120905/psphot (added) merged: 34408-34409,34415-34416,34428,34466,34565,34570,34575,34735,34747
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/psphot/src
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/psphot/src/psphotDefineFiles.c
r33963 r34772 1 1 # include "psphotInternal.h" 2 3 bool psphotINpsphotStack = false; 2 4 3 5 // List of output files … … 181 183 return; 182 184 } 185 186 // psphotGetFilerule 187 // Since psphotStack processes multipe FPAs at a time it has a different file rule structure than regular psphot. 188 // For the background output files we define a function psphotGetFilerule which given a base psphot file rule 189 // returns the corresponding psphotStack rule *if* the program is psphotStack. That is indicated by a global 190 // boolean which defaults to false, and psphotStack only sets to true 191 192 const char *psphotGetFilerule(const char *psphotRule) { 193 const char *rule = psphotRule; 194 if (psphotINpsphotStack) { 195 if (!strcmp(psphotRule, "PSPHOT.BACKMDL")) { 196 rule = "PSPHOT.STACK.BACKMDL"; 197 } else if (!strcmp(psphotRule, "PSPHOT.BACKMDL.STDEV")) { 198 rule = "PSPHOT.STACK.BACKMDL.STDEV"; 199 } else if (!strcmp(psphotRule, "PSPHOT.BACKSUB")) { 200 rule = "PSPHOT.STACK.BACKSUB"; 201 } else if (!strcmp(psphotRule, "PSPHOT.BACKGND")) { 202 rule = "PSPHOT.STACK.BACKGND"; 203 } else { 204 psAssert(0, "unsupported file rule %s", psphotRule); 205 } 206 } 207 return rule; 208 }
Note:
See TracChangeset
for help on using the changeset viewer.
