From c1497295379d22ba565937ee94ec242ec16ab53f Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 15 Mar 2017 15:42:54 -0400 Subject: IIS: fixed a minor problem if encode WCS is not LINEAR --- tksao/frame/fitsimage.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C index 477896b..920740f 100644 --- a/tksao/frame/fitsimage.C +++ b/tksao/frame/fitsimage.C @@ -1029,7 +1029,11 @@ const char* FitsImage::getValue(const Vector& v) else if (val > IISMAX) str << ends; else - str << ((val-1) * (iisz_[1]-iisz_[0]))/(IISMAX-1) + iisz_[0] << ends; + // W_LINEAR =1 + if (iiszt_ == 1) + str << ((val-1) * (iisz_[1]-iisz_[0]))/(IISMAX-1) + iisz_[0] << ends; + else + str << val << ends; memcpy(buf,str.str().c_str(), str.str().length()); return buf; -- cgit v0.12