LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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 | _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 |
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 64 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 |
Definition at line 138 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 432 of file astrometry.py.
|
private |
Extract metadata from an exposure.
Definition at line 341 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] | maxMatchDistArcSec | maximum distance between reference objects and sources (arcsec); 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 363 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 179 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 149 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 136 of file astrometry.py.
|
static |
Definition at line 135 of file astrometry.py.