From 7699cb83fea8ae76ca571d12ee0340667c757904 Mon Sep 17 00:00:00 2001 From: William Joye Date: Fri, 15 Jun 2018 11:41:59 -0400 Subject: IIS: fixed corrupted colormap and colorbar numerics --- ds9/doc/release/r8.0.html | 2 ++ tksao/frame/context.C | 6 ++++-- tksao/frame/inversescale.C | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ds9/doc/release/r8.0.html b/ds9/doc/release/r8.0.html index 8eb6d3c..e5fad9a 100644 --- a/ds9/doc/release/r8.0.html +++ b/ds9/doc/release/r8.0.html @@ -20,6 +20,8 @@
  • 06.13.2018 FITSY++: be sure to output REAL header keywords with scientific notation with capital 'E', per FITS standard.
  • 06.14.2018 CATALOG: add Edit menu to Symbol dialog.
  • 06.14.2018 NRRD: fixed a problem exporting, an extra byte was being written.
  • +
  • 06.15.2018 IIS: fixed a problem introduced in version 7.6 with the colormap.
  • +
  • 06.15.2018 IIS: fixed a problem the values displayed on the colorbar.
  • xx.xx.2018 RELEASE version 8.0b1
  • diff --git a/tksao/frame/context.C b/tksao/frame/context.C index 756f771..03bf2c8 100644 --- a/tksao/frame/context.C +++ b/tksao/frame/context.C @@ -2537,8 +2537,10 @@ void Context::setIIS() { frScale.setClipMode(FrScale::USERCLIP); frScale.setMinMaxMode(FrScale::SCAN); - frScale.setULow(IISMIN); - frScale.setUHigh(IISMAX); + // frScale.setULow(IISMIN); + // frScale.setUHigh(IISMAX); + frScale.setULow(0); + frScale.setUHigh(IISSIZE); frScale.setColorScaleType(FrScale::IISSCALE); } diff --git a/tksao/frame/inversescale.C b/tksao/frame/inversescale.C index f562b96..c6c0ec7 100644 --- a/tksao/frame/inversescale.C +++ b/tksao/frame/inversescale.C @@ -179,6 +179,9 @@ HistEquInverseScale::HistEquInverseScale(int ss, double low, double high, IISInverseScale::IISInverseScale(int ss, double low, double high, Vector& iisz) : InverseScale(ss) { + low = IISMIN; + high = IISMAX; + if (size_==1) { level_[0] = high; return; @@ -201,4 +204,3 @@ IISInverseScale::IISInverseScale(int ss, double low, double high, Vector& iisz) level_[ii] = ((vv-IISMIN) * (iisz[1]-iisz[0]))/(IISMAX-IISMIN) + iisz[0]; } } - -- cgit v0.12