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 160 of file loadReferenceObjects.py.
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 173 of file loadReferenceObjects.py.