summaryrefslogtreecommitdiffstats
path: root/tksao/fitsy++
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-10-03 19:11:58 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-10-03 19:11:58 (GMT)
commita18d63abab08e41fe439e13da46e1e686933e9c0 (patch)
treec8cba64e0aaaf92d7666b8561311e2c73a379dfd /tksao/fitsy++
parent51dda5b5891a61740e50870dced3967bc1fea37c (diff)
downloadblt-a18d63abab08e41fe439e13da46e1e686933e9c0.zip
blt-a18d63abab08e41fe439e13da46e1e686933e9c0.tar.gz
blt-a18d63abab08e41fe439e13da46e1e686933e9c0.tar.bz2
FITSY++: FITS compression- fixed issue with keyword ZNAXIS3=0
Diffstat (limited to 'tksao/fitsy++')
-rw-r--r--tksao/fitsy++/compress.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/tksao/fitsy++/compress.C b/tksao/fitsy++/compress.C
index 96d7715..37d16c2 100644
--- a/tksao/fitsy++/compress.C
+++ b/tksao/fitsy++/compress.C
@@ -15,6 +15,8 @@ FitsCompress::FitsCompress(FitsFile* fits)
width_ = fits->getInteger("ZNAXIS1",0);
height_ = fits->getInteger("ZNAXIS2",0);
depth_ = fits->getInteger("ZNAXIS3",1);
+ if (depth_<1)
+ depth_ =1;
ww_ = fits->getInteger("ZTILE1",width_);
hh_ = fits->getInteger("ZTILE2",1);
dd_ = fits->getInteger("ZTILE3",1);