summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++/gzip.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-08-16 19:36:46 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-08-16 19:36:46 (GMT)
commit71d7ecdf091e45f2119a12e879dfbfa64caba8f8 (patch)
tree36ec9b72d80fcb0cc135f33fb8b1bfcd7014926f /tksao/fitsy++/gzip.C
parent3c6296742a7a916b8306390cb929f81f9c59da24 (diff)
downloadblt-71d7ecdf091e45f2119a12e879dfbfa64caba8f8.zip
blt-71d7ecdf091e45f2119a12e879dfbfa64caba8f8.tar.gz
blt-71d7ecdf091e45f2119a12e879dfbfa64caba8f8.tar.bz2
FITS compression- fixed a problem with ZQUANTIZ=NO_DITHER
Diffstat (limited to 'tksao/fitsy++/gzip.C')
-rw-r--r--tksao/fitsy++/gzip.C8
1 files changed, 5 insertions, 3 deletions
diff --git a/tksao/fitsy++/gzip.C b/tksao/fitsy++/gzip.C
index f62cafb..05effdf 100644
--- a/tksao/fitsy++/gzip.C
+++ b/tksao/fitsy++/gzip.C
@@ -267,14 +267,15 @@ template <class T> int FitsGzipm<T>::compressed(T* dest, char* sptr,
size_t id = kk*FitsCompressm<T>::width_*FitsCompressm<T>::height_ + jj*FitsCompressm<T>::width_ + ii;
T val =0;
switch (FitsCompressm<T>::quantize_) {
- case FitsCompress::NODITHER:
+ case FitsCompress::NONE:
val = FitsCompressm<T>::getValue((float*)obuf+ll,zs,zz,blank);
break;
+ case FitsCompress::NODITHER:
case FitsCompress::SUBDITHER1:
case FitsCompress::SUBDITHER2:
val = FitsCompressm<T>::getValue((int*)obuf+ll,zs,zz,blank);
break;
- }
+ }
dest[id] = val;
}
break;
@@ -305,9 +306,10 @@ template <class T> int FitsGzipm<T>::compressed(T* dest, char* sptr,
size_t id = kk*FitsCompressm<T>::width_*FitsCompressm<T>::height_ + jj*FitsCompressm<T>::width_ + ii;
T val =0;
switch (FitsCompressm<T>::quantize_) {
- case FitsCompress::NODITHER:
+ case FitsCompress::NONE:
val = FitsCompressm<T>::getValue((double*)obuf+ll,zs,zz,blank);
break;
+ case FitsCompress::NODITHER:
case FitsCompress::SUBDITHER1:
case FitsCompress::SUBDITHER2:
val = FitsCompressm<T>::getValue((long long*)obuf+ll,zs,zz,blank);