New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a convenient way to get comment lines from an ASCII table #3136
Comments
When it comes to returning a |
+1 to have an option of putting the comments to |
Yes, putting this in |
Since a message, I wrote to astropy@scipy.org may have stimulated this, I thought I would comment on this question. My minimum need is just to get hold of the comments, since if I have them I can parse them however I choose. But what I would really prefer is something that was a keyword like approach, so that a comment line like
was interpreted so that Coord_Sys was the keyword and CYLIND was the value, analogous to the keyword system used for fits files. If this were the case, one could easily translate between FITS tables and ascii files. Just my two-cents. As I mentioned, just being able to get at the comments (without having to read the file multiple times) would be a help. |
@kslong See astropy/astropy-APEs#7 Unfortunately there is no standard format by which such a construction could simply be guessed, though the above is a proposal for such a format. |
It looks like Ipac already does this, i.e. comment lines go into |
I would say that I think we want to have any line in the file that is a comment whether or not it occurs in the data section. In particular a case like below would lose all comments because the header is just the first line:
|
I was going to say two more things:
|
Should this be closed now that #3222 is merged? |
Closed by #3222. |
Currently to get the comment lines from an ASCII data file you need to use
get_reader
:There should be a better way.
The text was updated successfully, but these errors were encountered: