LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Abstract base class to load objects from reference catalogs. More...
Public Member Functions | |
def | loadPixelBox |
Load reference objects that overlap a pixel-based rectangular region. More... | |
def | loadSkyCircle |
Load reference objects that overlap a circular sky region. More... | |
Static Public Member Functions | |
def | makeMinimalSchema |
Make the standard schema for reference object catalogs. More... | |
Static Public Attributes | |
ConfigClass = LoadReferenceObjectsConfig | |
Private Member Functions | |
def | _addFluxAliases |
Static Private Member Functions | |
def | _trimToBBox |
Remove objects outside a given pixel-based bbox and set centroid and hasCentroid fields. More... | |
Static Private Attributes | |
__metaclass__ = abc.ABCMeta | |
string | _DefaultName = "LoadReferenceObjects" |
Abstract base class to load objects from reference catalogs.
Abstract base class for tasks that load objects from a reference catalog in a particular region of the sky.
Implementations must subclass this class, override the loadSkyCircle method, and will typically override the value of ConfigClass with a task-specific config class.
Reference object catalogs are instances of lsst.afw.table.SimpleCatalog with the following schema (other fields may also be present):
See LoadReferenceObjectsConfig for a base set of configuration parameters. Most subclasses will add configuration variables.
Definition at line 82 of file loadReferenceObjects.py.
|
private |
Add aliases for camera filter fluxes to the schema If self.config.defaultFilter then adds these aliases: camFlux: <defaultFilter>_flux camFluxSigma: <defaultFilter>_fluxSigma, if the latter exists For each camFilter: refFilter in self.config.filterMap adds these aliases: <camFilter>_camFlux: <refFilter>_flux <camFilter>_camFluxSigma: <refFilter>_fluxSigma, if the latter exists @throw RuntimeError if any reference flux field is missing from the schema
Definition at line 226 of file loadReferenceObjects.py.
|
staticprivate |
Remove objects outside a given pixel-based bbox and set centroid and hasCentroid fields.
[in] | refCat | a catalog of objects (an lsst.afw.table.SimpleCatalog, or other table type that supports getCoord() on records) |
[in] | bbox | pixel region (an afwImage.Box2D) |
[in] | wcs | WCS used to convert sky position to pixel position (an lsst.afw.math.WCS) |
Definition at line 205 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.loadPixelBox | ( | self, | |
bbox, | |||
wcs, | |||
filterName = None , |
|||
calib = None |
|||
) |
Load reference objects that overlap a pixel-based rectangular region.
The search algorith works by searching in a region in sky coordinates whose center is the center of the bbox and radius is large enough to just include all 4 corners of the bbox. Stars that lie outside the bbox are then trimmed from the list.
[in] | bbox | bounding box for pixels (an lsst.afw.geom.Box2I or Box2D) |
[in] | wcs | WCS (an lsst.afw.image.Wcs) |
[in] | filterName | name of camera filter, or None or blank for the default filter |
[in] | calib | calibration, or None if unknown |
Definition at line 145 of file loadReferenceObjects.py.
def lsst.meas.algorithms.loadReferenceObjects.LoadReferenceObjectsTask.loadSkyCircle | ( | self, | |
ctrCoord, | |||
radius, | |||
filterName = None |
|||
) |
Load reference objects that overlap a circular sky region.
[in] | ctrCoord | center of search region (an lsst.afw.geom.Coord) |
[in] | radius | radius of search region (an lsst.afw.geom.Angle) |
[in] | filterName | name of filter, or None for the default filter; used for flux values in case we have flux limits (which are not yet implemented) |
Definition at line 187 of file loadReferenceObjects.py.
|
static |
Make the standard schema for reference object catalogs.
[in] | filterNameList | list of filter names; used to create filterName_flux fields |
[in] | addFluxSigma | if True then include flux sigma fields |
[in] | addIsPhotometric | if True add field "photometric" |
[in] | addIsResolved | if True add field "resolved" |
[in] | addIsVariable | if True add field "variable" |
Definition at line 266 of file loadReferenceObjects.py.
|
staticprivate |
Definition at line 140 of file loadReferenceObjects.py.
|
staticprivate |
Definition at line 142 of file loadReferenceObjects.py.
|
static |
Definition at line 141 of file loadReferenceObjects.py.