From babbe0d741c30fa9e6eeebc5aa044ced1c47aba0 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 13 Jun 2018 17:13:58 -0400 Subject: be sure to output REAL header keywords with scientific notation with capital 'E', per FITS standard. --- tksao/fitsy++/card.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- cgit v0.12