RequireFiniteRaDec#
- class lsst.meas.algorithms.RequireFiniteRaDec(*args, **kw)#
Bases:
ConfigSelect sources that have finite RA and Dec sky coordinate values
This object can be used as a
lsst.pex.config.Configfor configuring the column names to check for “coord_ra” and “coord_dec” keys.This will select against objects for which either the RA or Dec coordinate entries are not numpy.isfinite().
Attributes Summary
Name of column for Dec coordinate (
str, default'coord_dec')Name of column for RA coordinate (
str, default'coord_ra')Methods Summary
apply(catalog)Apply the sky coordinate requirements to a catalog
Attributes Documentation
- decColName#
Name of column for Dec coordinate (
str, default'coord_dec')
- raColName#
Name of column for RA coordinate (
str, default'coord_ra')
Methods Documentation
- apply(catalog)#
Apply the sky coordinate requirements to a catalog
Returns whether the sources were selected.
Parameters#
- catalog
lsst.afw.table.SourceCatalogorpandas.DataFrame or
astropy.table.TableCatalog of sources to which the requirements will be applied.
Returns#
- selected
numpy.ndarray Boolean array indicating for each source whether it is selected (True means selected).
- catalog