summaryrefslogtreecommitdiffstats
path: root/tksao
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-13 21:13:58 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-13 21:13:58 (GMT)
commitbabbe0d741c30fa9e6eeebc5aa044ced1c47aba0 (patch)
tree149e1a9af1c9bacb49491c6b57ef01899a76036a /tksao
parent4ea9be66298b2f33f90fee95f078a1c9eb49a0f3 (diff)
downloadblt-babbe0d741c30fa9e6eeebc5aa044ced1c47aba0.zip
blt-babbe0d741c30fa9e6eeebc5aa044ced1c47aba0.tar.gz
blt-babbe0d741c30fa9e6eeebc5aa044ced1c47aba0.tar.bz2
be sure to output REAL header keywords with scientific notation with capital 'E', per FITS standard.
Diffstat (limited to 'tksao')
-rw-r--r--tksao/fitsy++/card.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/tksao/fitsy++/card.C b/tksao/fitsy++/card.C
index e3b24dd..1645d68 100644
--- a/tksao/fitsy++/card.C
+++ b/tksao/fitsy++/card.C
@@ -93,7 +93,8 @@ FitsCard& FitsCard::setReal(const char* name, double value,
memset(card_+8, ' ', FTY_CARDLEN-8);
ostringstream str;
- str << "= " << setw(20) << setprecision(prec) << value;
+ str << "= " << setw(20) << setprecision(prec)
+ << uppercase << value << nouppercase;
if (comment)
str << " / " << comment;
memcpy(card_+8,str.str().c_str(),str.str().length());