JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Method to get column names in a FITS table #93

Closed kbarbary closed 6 years ago

kbarbary commented 6 years ago

I was surprised that this doesn't already exist, but it's straightforward to add.

Column names are already determined as part of show(::IO, ::TableHDU) and show(::IO, ::ASCIITableHDU). One would just have to pull out some of that code into a separate function.

colnames might be a good function name for this. DataFrames extends Base.names for this purpose, but the definition of Base.names is, I think, inconsistent with this usage.