- Timestamp:
- Oct 24, 2012, 3:56:18 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/psphot
- Property svn:mergeinfo changed
/trunk/psphot merged: 34492-34493,34528,34540,34542,34559-34560
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot/src
- Property svn:mergeinfo changed
/trunk/psphot/src merged: 34492-34493,34528,34540,34542,34559-34560
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot/src/psphotDefineFiles.c
r33963 r34570 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.
