get_reader

astropy.io.ascii.get_reader(Reader=None, Inputter=None, Outputter=None, **kwargs)[source]

Initialize a table reader allowing for common customizations. Most of the default behavior for various parameters is determined by the Reader class.

Parameters
ReaderBaseReader

Reader class (DEPRECATED). Default is Basic.

InputterBaseInputter

Inputter class

OutputterBaseOutputter

Outputter class

delimiterstr

Column delimiter string

commentstr

Regular expression defining a comment line in table

quotecharstr

One-character string to quote fields containing special characters

header_startint

Line index for the header line not counting comment or blank lines. A line with only whitespace is considered blank.

data_startint

Line index for the start of data not counting comment or blank lines. A line with only whitespace is considered blank.

data_endint

Line index for the end of data not counting comment or blank lines. This value can be negative to count from the end.

convertersdict

Dict of converters.

data_SplitterBaseSplitter

Splitter class to split data columns.

header_SplitterBaseSplitter

Splitter class to split header columns.

nameslist

List of names corresponding to each data column.

include_nameslist, optional

List of names to include in output.

exclude_nameslist

List of names to exclude from output (applied after include_names).

fill_valuestuple, list of tuple

Specification of fill values for bad or missing table values.

fill_include_nameslist

List of names to include in fill_values.

fill_exclude_nameslist

List of names to exclude from fill_values (applied after fill_include_names).

Returns
readerBaseReader subclass

ASCII format reader instance