RequireFiniteRaDec#

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

Bases: Config

Select sources that have finite RA and Dec sky coordinate values

This object can be used as a lsst.pex.config.Config for 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

decColName

Name of column for Dec coordinate (str, default 'coord_dec')

raColName

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#

cataloglsst.afw.table.SourceCatalog or pandas.DataFrame

or astropy.table.Table

Catalog of sources to which the requirements will be applied.

Returns#

selectednumpy.ndarray

Boolean array indicating for each source whether it is selected (True means selected).