lsst.meas.algorithms  21.0.0-22-g8939e615+158ca35639
Public Member Functions | Public Attributes | List of all members
lsst.meas.algorithms.loadReferenceObjects._FilterCatalog Class Reference

Public Member Functions

def __init__ (self, region)
 
def __call__ (self, refCat, catRegion)
 

Public Attributes

 region
 

Detailed Description

This is a private helper class which filters catalogs by
row based on the row being inside the region used to initialize
the class.

Parameters
----------
region : `lsst.sphgeom.Region`
    The spatial region which all objects should lie within

Definition at line 148 of file loadReferenceObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.algorithms.loadReferenceObjects._FilterCatalog.__init__ (   self,
  region 
)

Definition at line 158 of file loadReferenceObjects.py.

Member Function Documentation

◆ __call__()

def lsst.meas.algorithms.loadReferenceObjects._FilterCatalog.__call__ (   self,
  refCat,
  catRegion 
)
This call method on an instance of this class takes in a reference
catalog, and the region from which the catalog was generated.

If the catalog region is entirely contained within the region used to
initialize this class, then all the entries in the catalog must be
within the region and so the whole catalog is returned.

If the catalog region is not entirely contained, then the location for
each record is tested against the region used to initialize the class.
Records which fall inside this region are added to a new catalog, and
this catalog is then returned.

Parameters
---------
refCat : `lsst.afw.table.SourceCatalog`
    SourceCatalog to be filtered.
catRegion : `lsst.sphgeom.Region`
    Region in which the catalog was created

Definition at line 161 of file loadReferenceObjects.py.

Member Data Documentation

◆ region

lsst.meas.algorithms.loadReferenceObjects._FilterCatalog.region

Definition at line 159 of file loadReferenceObjects.py.


The documentation for this class was generated from the following file: