FixedWidthNoHeader¶
-
class
astropy.io.ascii.
FixedWidthNoHeader
(col_starts=None, col_ends=None, delimiter_pad=' ', bookend=True)[source] [edit on github]¶ Bases:
astropy.io.ascii.FixedWidth
Read or write a fixed width table which has no header line. Column names are either input (
names
keyword) or auto-generated. Column positions are determined either by input (col_starts
andcol_stops
keywords) or by splitting the first data line. In the latter case adelimiter
is required to split the data line.Examples:
# Bar delimiter in header and data | 1.2 | hello there | 3 | | 2.4 | many words | 7 | # Compact table having no delimiter and column positions specified as input 1.2hello there3 2.4many words 7
This class is just a convenience wrapper around the
FixedWidth
reader but withheader.start_line = None
anddata.start_line = 0
.See the Fixed-width Gallery for specific usage examples.