ReadTextCatalogConfig#

class lsst.meas.algorithms.ReadTextCatalogConfig(*args, **kw)#

Bases: Config

Attributes Summary

colnames

An ordered list of column names to use in ingesting the catalog.

delimiter

Delimiter to use when reading text reference files.

fill_values

A list giving [<match_string>, <fill_value>], which is used to mask the given values in the input file.

format

Format of files to read, from the astropy.table I/O list here:http://docs.astropy.org/en/stable/io/unified.html#built-in-table-readers-writers (str, default 'csv')

header_lines

Number of lines to skip when reading the text reference file.

replace_missing_floats_with_nan

If True, replace missing data in float columns with NaN instead of zero.

Attributes Documentation

colnames#

An ordered list of column names to use in ingesting the catalog. With an empty list, column names will be discovered from the first line after the skipped header lines. (List, default [])

delimiter#

Delimiter to use when reading text reference files. Comma is default. (str, default ',')

fill_values#

A list giving [<match_string>, <fill_value>], which is used to mask the given values in the input file. ‘0’ is suggested for the fill value in order to prevent changing the column datatype. The default behavior is to fill empty data with zeros. See https://docs.astropy.org/en/stable/io/ascii/read.html#bad-or-missing-values for more details.Use replace_missing_floats_with_nan to change floats to NaN instead of <fill_value>. (List, default None)

format#

Format of files to read, from the astropy.table I/O list here:http://docs.astropy.org/en/stable/io/unified.html#built-in-table-readers-writers (str, default 'csv')

header_lines#

Number of lines to skip when reading the text reference file. (int, default 0)

replace_missing_floats_with_nan#

If True, replace missing data in float columns with NaN instead of zero. If fill_values is set, this parameter with replace the floats identified as missing by fill_values, and the fill value from fill_values will be overridden with NaN for floats. (bool, default False)