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
|
Match an input source catalog with objects from a reference catalog and solve for the WCS. More...
Public Member Functions | |
def | __init__ |
Construct an AstrometryTask. More... | |
def | run |
Load reference objects, match sources and optionally fit a WCS. More... | |
def | loadAndMatch |
Load reference objects overlapping an exposure and match to sources detected on that exposure. More... | |
def | solve |
Load reference objects overlapping an exposure, match to sources and fit a WCS. More... | |
Static Public Attributes | |
ConfigClass = AstrometryConfig | |
Private Member Functions | |
def | _computeMatchStatsOnSky |
def | _getExposureMetadata |
Extract metadata from an exposure. More... | |
def | _matchAndFitWcs |
Match sources to reference objects and fit a WCS. More... | |
Static Private Member Functions | |
def | _createMatchMetadata |
Static Private Attributes | |
string | _DefaultName = "astrometricSolver" |
Match an input source catalog with objects from a reference catalog and solve for the WCS.
Match input sourceCat with a reference catalog and solve for the Wcs
There are three steps, each performed by different subtasks:
Construct an AstrometryTask.
[in] | schema | ignored; available for compatibility with an older astrometry task |
[in] | kwargs | additional keyword arguments for pipe_base Task.__init__ |
Load reference objects, match sources and optionally fit a WCS. This is a thin layer around solve or loadAndMatch, depending on config.forceKnownWcs
[in,out] | exposure | exposure whose WCS is to be fit The following are read only:
|
[in] | sourceCat | catalog of sourceCat detected on the exposure (an lsst.afw.table.SourceCatalog) |
Load reference objects overlapping an exposure and match to sources detected on that exposure.
[in] | exposure | exposure whose WCS is to be fit |
[in] | sourceCat | catalog of sourceCat detected on the exposure (an lsst.afw.table.SourceCatalog) |
See AstrometryConfig
See meas_photocal_photocal_Example.
The command line task interface supports a flag -d
to import debug.py from your PYTHONPATH
; see Using lsstDebug to control debugging output for more about debug.py files.
The available variables in AstrometryTask are:
display
(bool) frame
(int) To investigate the Debug variables, put something like
into your debug.py file and run this task with the –debug
flag.
Definition at line 65 of file astrometry.py.
def lsst.meas.astrom.astrometry.AstrometryTask.__init__ | ( | self, | |
schema = None , |
|||
kwargs | |||
) |
Construct an AstrometryTask.
[in] | schema | ignored; available for compatibility with an older astrometry task |
[in] | kwargs | additional keyword arguments for pipe_base Task.__init__ |
Definition at line 139 of file astrometry.py.
|
private |
Compute on-sky radial distance statistics for a match list @param[in] matchList list of matches between reference object and sources; the distance field is the only field read and it must be set to distance in radians @return a pipe_base Struct containing these fields: - distMean clipped mean of on-sky radial separation - distStdDev clipped standard deviation of on-sky radial separation - maxMatchDist distMean + self.config.matchDistanceSigma*distStdDev
Definition at line 338 of file astrometry.py.
|
staticprivate |
Create matchMeta metadata required for regenerating the catalog This is copied from Astrom and I'm not sure why it is needed. @param bbox bounding box of exposure (an lsst.afw.geom.Box2I or Box2D) @param wcs WCS of exposure @param filterName Name of filter, used for magnitudes @return metadata about the field (a daf_base PropertyList)
Definition at line 448 of file astrometry.py.
|
private |
Extract metadata from an exposure.
Definition at line 357 of file astrometry.py.
|
private |
Match sources to reference objects and fit a WCS.
[in] | refCat | catalog of reference objects |
[in] | sourceCat | catalog of sourceCat detected on the exposure (an lsst.afw.table.SourceCatalog) |
[in] | refFluxField | field of refCat to use for flux |
[in] | bbox | bounding box of exposure (an lsst.afw.geom.Box2I) |
[in] | wcs | initial guess for WCS of exposure (an lsst.afw.image.Wcs) |
[in] | maxMatchDist | maximum on-sky distance between reference objects and sources (an lsst.afw.geom.Angle); if None then use the matcher's default |
[in] | exposure | exposure whose WCS is to be fit, or None; used only for the debug display |
Definition at line 379 of file astrometry.py.
def lsst.meas.astrom.astrometry.AstrometryTask.loadAndMatch | ( | self, | |
exposure, | |||
sourceCat | |||
) |
Load reference objects overlapping an exposure and match to sources detected on that exposure.
[in] | exposure | exposure whose WCS is to be fit |
[in] | sourceCat | catalog of sourceCat detected on the exposure (an lsst.afw.table.SourceCatalog) |
Definition at line 181 of file astrometry.py.
def lsst.meas.astrom.astrometry.AstrometryTask.run | ( | self, | |
exposure, | |||
sourceCat | |||
) |
Load reference objects, match sources and optionally fit a WCS.
This is a thin layer around solve or loadAndMatch, depending on config.forceKnownWcs
[in,out] | exposure | exposure whose WCS is to be fit The following are read only:
|
[in] | sourceCat | catalog of sourceCat detected on the exposure (an lsst.afw.table.SourceCatalog) |
Definition at line 151 of file astrometry.py.
def lsst.meas.astrom.astrometry.AstrometryTask.solve | ( | self, | |
exposure, | |||
sourceCat | |||
) |
Load reference objects overlapping an exposure, match to sources and fit a WCS.
Definition at line 241 of file astrometry.py.
|
staticprivate |
Definition at line 137 of file astrometry.py.
|
static |
Definition at line 136 of file astrometry.py.