[AstroPy] two columns with two character delimiter
Azalee Bostroem
abostroem at gmail.com
Thu Aug 18 20:18:39 EDT 2022
Hi,
The Gemini ITC requires a user defined spectrum to have columns separated by two spaces. Does anyone know how to write out an astropy table with this format? I tried the following:
format='ascii': this writes out columns separated by a space
delimiter=' ': this produces an error, delimiters are required to be one character
format='fixed_width', delimiter_pad=' ': the produces a variable number of spaces between columns since each number doesn’t have an identical number of digits
format='ascii', delimiter_pad=' ': this produces an error, delimiter_pad is only a keyword for fixed_width format
I know there are ways to do with outside of Table.write, but I’m curious if there is a way to achieve this format with Table.write?
Thanks,
Azalee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/astropy/attachments/20220818/154919d5/attachment.html>
More information about the AstroPy
mailing list