Construct the FITS header string from the key, value and comment
Definition at line 134 of file fitsDecompressor.cc.
References i, and str.
137 unsigned int totSize = 0;
140 if (
_key.length() > 8)
142 str <<
_key.substr(0, 8);
148 totSize += _key.length();
152 for (
int i=totSize;
i<8;
i++)
164 for (;totSize<30-
_value.length();totSize++)
169 str <<
_value.substr(0,70);
175 totSize += _value.size();
185 unsigned int commentSize = 80 - totSize;
186 if (
_comment.length() > commentSize)
188 str <<
_comment.substr(0,commentSize);
189 totSize += commentSize;
194 totSize += _comment.length();
200 for (
int i=totSize;
i<80;
i++)
207 cout <<
"Error |" <<
_fitsString <<
"| is not of length 80" << endl;