Changeset 35751 for branches/eam_branches/ipp-20130509
- Timestamp:
- Jul 3, 2013, 1:46:47 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509
- Files:
-
- 5 edited
-
psLib/src/fits/psFitsScale.c (modified) (4 diffs)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotSignificanceImage.c (modified) (1 diff)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psLib/src/fits/psFitsScale.c
r31633 r35751 204 204 psTrace("psLib.fits", 5, "Mean: %lf Stdev: %lf", mean, stdev); 205 205 206 long range = 1 << options->stdevBits; // Range of values to carry standard deviation206 long range = 1L << options->stdevBits; // Range of values to carry standard deviation 207 207 *bscale = stdev / (double) range; 208 208 … … 217 217 // Put (mean - N sigma) at the lowest possible value: predominantly positive images 218 218 imageVal = mean - options->stdevNum * stdev; 219 diskVal = - (1 << (options->bitpix - 1)); 219 // diskVal = - (1 << (options->bitpix - 1)); 220 diskVal = - (1L << (options->bitpix - 1)); 220 221 break; 221 222 case PS_FITS_SCALE_STDEV_NEGATIVE: … … 224 225 // Put (mean + N sigma) at the highest possible value: predominantly negative images 225 226 imageVal = mean + options->stdevNum * stdev; 226 diskVal = (1 << (options->bitpix - 1)) - 1;227 diskVal = (1L << (options->bitpix - 1)) - 1; 227 228 break; 228 229 case PS_FITS_SCALE_STDEV_BOTH: … … 850 851 } 851 852 852 *blank = (1 << (options->bitpix - 1)) - 1;853 *blank = (1L << (options->bitpix - 1)) - 1; 853 854 854 855 switch (options->scaling) { -
branches/eam_branches/ipp-20130509/psphot
- Property svn:mergeinfo changed
/trunk/psphot merged: 35688
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/psphot/src
- Property svn:mergeinfo changed
/trunk/psphot/src merged: 35688
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130509/psphot/src/psphotSignificanceImage.c
r34086 r35751 102 102 smooth_wt->data.F32[j][i] = 0.0; 103 103 } else { 104 // XXX the value of 100 here (or 1000 before) must depend on the FWHM of the smoothing kernel, right?? 105 float v2 = value + PS_SQR(value/100.0); 106 smooth_wt->data.F32[j][i] = factor * PS_SQR(v2) / smooth_wt->data.F32[j][i]; 104 // XXX the value of 100 here (or 1000 before) must depend on the FWHM of the smoothing kernel, right?? 105 // float v2 = value + PS_SQR(value/100.0); 106 // CZW 2013-06-20: I don't think this hack was helping. 107 float v2 = value; 108 smooth_wt->data.F32[j][i] = factor * PS_SQR(v2) / smooth_wt->data.F32[j][i]; 107 109 } 108 110 } -
branches/eam_branches/ipp-20130509/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
