IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:46:47 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psLib/src/fits/psFitsScale.c

    r31633 r35751  
    204204    psTrace("psLib.fits", 5, "Mean: %lf Stdev: %lf", mean, stdev);
    205205
    206     long range = 1 << options->stdevBits;  // Range of values to carry standard deviation
     206    long range = 1L << options->stdevBits;  // Range of values to carry standard deviation
    207207    *bscale = stdev / (double) range;
    208208
     
    217217        // Put (mean - N sigma) at the lowest possible value: predominantly positive images
    218218        imageVal = mean - options->stdevNum * stdev;
    219         diskVal = - (1 << (options->bitpix - 1));
     219        // diskVal = - (1 << (options->bitpix - 1));
     220        diskVal = - (1L << (options->bitpix - 1));
    220221        break;
    221222      case PS_FITS_SCALE_STDEV_NEGATIVE:
     
    224225        // Put (mean + N sigma) at the highest possible value: predominantly negative images
    225226        imageVal = mean + options->stdevNum * stdev;
    226         diskVal = (1 << (options->bitpix - 1)) - 1;
     227        diskVal = (1L << (options->bitpix - 1)) - 1;
    227228        break;
    228229      case PS_FITS_SCALE_STDEV_BOTH:
     
    850851    }
    851852
    852     *blank = (1 << (options->bitpix - 1)) - 1;
     853    *blank = (1L << (options->bitpix - 1)) - 1;
    853854
    854855    switch (options->scaling) {
  • branches/eam_branches/ipp-20130509/psphot

  • branches/eam_branches/ipp-20130509/psphot/src

  • branches/eam_branches/ipp-20130509/psphot/src/psphotSignificanceImage.c

    r34086 r35751  
    102102                smooth_wt->data.F32[j][i] = 0.0;
    103103            } 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];
    107109            }
    108110        }
  • 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.