FixedWidthNoHeader#
- class astropy.io.ascii.FixedWidthNoHeader(col_starts=None, col_ends=None, delimiter_pad=' ', bookend=True)[源代码]#
基类:
FixedWidth
没有标题行的固定宽度表格。
读取时,列名可以是输入 (
names
关键字)或自动生成。位置由输入决定 (col_starts
和col_stops
关键字)或拆分第一个数据行。在后一种情况下adelimiter
拆分数据线时需要。实例:
# 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
这个类只是一个方便的包装
FixedWidth
读者,但是header_start=None
和data_start=0
.请参阅 固定宽度画廊 有关特定用法的示例。