Changeset 23688 for trunk/psphot
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotDefineFiles.c (modified) (2 diffs)
-
psphot/src/psphotMaskReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/pap/psphot (added) merged: 23580,23596,23646
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphot.h
r23492 r23688 31 31 bool psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmDetections *detections, pmPSF *psf, psArray *sources); 32 32 bool psphotDefineFiles (pmConfig *config, pmFPAfile *input); 33 void psphotFilesActivate(pmConfig *config, bool state); 34 33 35 bool psphotSetMaskBits (pmConfig *config); 34 36 bool psphotSetMaskRecipe (pmConfig *config, psImageMaskType maskValue, psImageMaskType markValue); -
trunk/psphot/src/psphotDefineFiles.c
r14892 r23688 1 1 # include "psphotInternal.h" 2 3 // List of output files 4 static const char *outputFiles[] = { "PSPHOT.OUTPUT", "PSPHOT.RESID", "PSPHOT.BACKMDL", 5 "PSPHOT.BACKMDL.STDEV", "PSPHOT.BACKGND", "PSPHOT.BACKSUB", 6 "PSPHOT.PSF.SAVE", "SOURCE.PLOT.MOMENTS", "SOURCE.PLOT.PSFMODEL", 7 "SOURCE.PLOT.APRESID", NULL }; 2 8 3 9 // XXX we need to be able to distinguish several cases: … … 133 139 return true; 134 140 } 141 142 void psphotFilesActivate(pmConfig *config, bool state) 143 { 144 for (int i = 0; outputFiles[i]; i++) { 145 if (!pmFPAfileActivate(config->files, state, outputFiles[i])) { 146 psErrorClear(); 147 } 148 } 149 150 return; 151 } -
trunk/psphot/src/psphotMaskReadout.c
r23535 r23688 39 39 psImage *mk = readout->mask; 40 40 for (int j = 0; j < im->numRows; j++) { 41 for (int i = 0; i < im->numCols; i++) {42 if (isfinite(im->data.F32[j][i]) && isfinite(wt->data.F32[j][i])) continue;43 mk->data.PS_TYPE_IMAGE_MASK_DATA[j][i] |= maskBad;44 }41 for (int i = 0; i < im->numCols; i++) { 42 if (isfinite(im->data.F32[j][i]) && isfinite(wt->data.F32[j][i])) continue; 43 mk->data.PS_TYPE_IMAGE_MASK_DATA[j][i] |= maskBad; 44 } 45 45 } 46 46 }
Note:
See TracChangeset
for help on using the changeset viewer.
