<div dir="ltr">Hi, <div><br></div><div>I have a question about io.fits</div><div><br></div><div>I wonder if I just miss something obvious, or it can only be done as a later fix. Let me explain my problem. </div><div><br></div><div>When adding a card to the header, I can do that as </div><div><br></div><div>header["NEW_KEY"]=("SOME_VALUE","this is an example")</div><div>and in the header I get </div><div>NEW_KEY = "SOME_VALUE"   \ this is an example</div><div><br></div><div>So with a keyword. </div><div><br></div><div>Now, when I define a new column like</div><div><br></div><div>col = [fits.Column(name="Vmag",format="E",unit="mag",ascii=False)]</div><div>I can create a binary table</div><div>tab = fits.BinTableHDU.from_columns(columns=col)</div><div><br></div><div>The header then is created with a TTYPE keyword with a value, but without a comment.</div><div>Comments are sometimes very useful, and so I checked. </div><div><br></div><div>I can define </div><div>col = [fits.Column(name=("Vmag","some comment"),format="E",unit="mag",ascii=False)]<br clear="all"><div>which goes some way to being able to have a TTYPE keyword with value and comment, </div><div>but then trying to create the binary table HDU as before, it fails. </div><div><br></div><div>Am I missing something? </div><div><br></div><div>I can probably go back in and modify the header to add comments once I have the bintable HDU defined, but it seems so inelegant I did not even try. </div><div><br></div><div><br></div><div>    Paul</div><div><br></div>-- <br><div dir="ltr"><br>* * * * * * * * <a href="http://www.mssl.ucl.ac.uk/~npmk/" target="_blank">http://www.mssl.ucl.ac.uk/~npmk/</a> * * * *<br>Dr. N.P.M. Kuin      (<a href="mailto:n.kuin@ucl.ac.uk" target="_blank">n.kuin@ucl.ac.uk</a>)      <br>phone +44-(0)1483 (prefix) -204927 (work) <br>mobile <a href="tel:%2B44%280%297806985366" value="+447806985366" target="_blank">+44(0)7806985366</a>  skype ID: npkuin<br>Mullard Space Science Laboratory  – University College London  –<br>Holmbury St Mary – Dorking – Surrey RH5 6NT–  U.K.</div>
</div></div>