LSSTApplications
17.0+103,17.0+11,17.0+61,18.0.0+13,18.0.0+25,18.0.0+5,18.0.0+52,18.0.0-4-g68ffd23,18.1.0-1-g0001055+8,18.1.0-1-g03d53ef+1,18.1.0-1-g1349e88+28,18.1.0-1-g2505f39+22,18.1.0-1-g380d4d4+27,18.1.0-1-g5315e5e+1,18.1.0-1-g5e4b7ea+10,18.1.0-1-g7e8fceb+1,18.1.0-1-g85f8cd4+23,18.1.0-1-g9a6769a+13,18.1.0-1-ga1a4c1a+22,18.1.0-1-gd55f500+17,18.1.0-12-g42eabe8e+10,18.1.0-14-gd04256d+15,18.1.0-16-g430f6a53+1,18.1.0-17-gd2166b6e4,18.1.0-18-gb5d19ff+1,18.1.0-2-gfbf3545+7,18.1.0-2-gfefb8b5+16,18.1.0-3-g52aa583+13,18.1.0-3-g62b5e86+14,18.1.0-3-g8f4a2b1+17,18.1.0-3-g9bc06b8+7,18.1.0-3-gb69f684+9,18.1.0-4-g1ee41a7+1,18.1.0-5-g6dbcb01+13,18.1.0-5-gc286bb7+3,18.1.0-6-g48bdcd3+2,18.1.0-6-gd05e160+9,18.1.0-7-gc4d902b+2,18.1.0-7-gebc0338+8,18.1.0-9-gae7190a+10,w.2019.38
LSSTDataManagementBasePackage
|
Use astrometry.net to match input sources with a reference catalog and solve for the Wcs. More...
Public Member Functions | |
def | __init__ (self, schema, refObjLoader=None, kwds) |
Create the astrometric calibration task. More... | |
def | run (self, exposure, sourceCat) |
Load reference objects, match sources and optionally fit a WCS. More... | |
def | solve (self, exposure, sourceCat) |
Match with reference sources and calculate an astrometric solution. More... | |
def | distort (self, sourceCat, exposure) |
Calculate distorted source positions. More... | |
def | loadAndMatch (self, exposure, sourceCat, bbox=None) |
Load reference objects overlapping an exposure and match to sources detected on that exposure. More... | |
def | refitWcs (self, sourceCat, exposure, matches) |
A final Wcs solution after matching and removing distortion. More... | |
Public Attributes | |
distortedName | |
centroidXKey | |
centroidYKey | |
centroidXErrKey | |
centroidYErrKey | |
centroidFlagKey | |
centroidKey | |
centroidErrKey | |
solver | |
Static Public Attributes | |
ConfigClass = ANetAstrometryConfig | |
Use astrometry.net to match input sources with a reference catalog and solve for the Wcs.
The actual matching and solving is done by the 'solver'; this Task serves as a wrapper for taking into account the known optical distortion.
Use astrometry.net to match input sources with a reference catalog and solve for the Wcs.
Create the astrometric calibration task. Most arguments are simply passed onto pipe.base.Task.
schema | An lsst::afw::table::Schema used to create the output lsst.afw.table.SourceCatalog |
refObjLoader | The AstrometryTask constructor requires a refObjLoader. In order to make this task retargettable for AstrometryTask it needs to take the same arguments. This argument will be ignored since it uses its own internal loader. |
**kwds | keyword arguments to be passed to the lsst.pipe.base.task.Task constructor |
A centroid field "centroid.distorted" (used internally during the Task's operation) will be added to the schema.
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) |
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 ANetAstrometryTask are:
display
frame
pause
See A complete example of using PhotoCalTask.
To investigate the Debug variables, put something like
into your debug.py file and run photoCalTask.py with the –debug
flag.
Definition at line 66 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.__init__ | ( | self, | |
schema, | |||
refObjLoader = None , |
|||
kwds | |||
) |
Create the astrometric calibration task.
Most arguments are simply passed onto pipe.base.Task.
schema | An lsst::afw::table::Schema used to create the output lsst.afw.table.SourceCatalog |
refObjLoader | The AstrometryTask constructor requires a refObjLoader. In order to make this task retargettable for AstrometryTask it needs to take the same arguments. This argument will be ignored since it uses its own internal loader. |
**kwds | keyword arguments to be passed to the lsst.pipe.base.task.Task constructor |
A centroid field "centroid.distorted" (used internally during the Task's operation) will be added to the schema.
Definition at line 139 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.distort | ( | self, | |
sourceCat, | |||
exposure | |||
) |
Calculate distorted source positions.
CCD images are often affected by optical distortion that makes the astrometric solution higher order than linear. Unfortunately, most (all?) matching algorithms require that the distortion be small or zero, and so it must be removed. We do this by calculating (un-)distorted positions, based on a known optical distortion model in the Ccd.
The distortion correction moves sources, so we return the distorted bounding box.
[in] | exposure | Exposure to process |
[in,out] | sourceCat | SourceCatalog; getX() and getY() will be used as inputs, with distorted points in "centroid.distorted" field. |
Definition at line 230 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.loadAndMatch | ( | self, | |
exposure, | |||
sourceCat, | |||
bbox = None |
|||
) |
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) |
[in] | bbox | bounding box go use for finding reference objects; if None, use exposure's bbox |
Definition at line 284 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.refitWcs | ( | self, | |
sourceCat, | |||
exposure, | |||
matches | |||
) |
A final Wcs solution after matching and removing distortion.
Specifically, fitting the non-linear part, since the linear part has been provided by the matching engine.
sourceCat | Sources on exposure, an lsst.afw.table.SourceCatalog |
exposure | Exposure of interest, an lsst.afw.image.ExposureF or D |
matches | Astrometric matches, as a list of lsst.afw.table.ReferenceMatch |
Definition at line 376 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.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 169 of file anetAstrometry.py.
def lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.solve | ( | self, | |
exposure, | |||
sourceCat | |||
) |
Match with reference sources and calculate an astrometric solution.
[in,out] | exposure | Exposure to calibrate; wcs is updated |
[in] | sourceCat | catalog of measured sources (an lsst.afw.table.SourceCatalog) |
The reference catalog actually used is up to the implementation of the solver; it will be manifested in the returned matches as a list of lsst.afw.table.ReferenceMatch objects (i.e. of lsst.afw.table.Match with first
being of type lsst.afw.table.SimpleRecord and second
type lsst.afw.table.SourceRecord — the reference object and matched object respectively).
Definition at line 195 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidErrKey |
Definition at line 164 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidFlagKey |
Definition at line 161 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidKey |
Definition at line 163 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidXErrKey |
Definition at line 157 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidXKey |
Definition at line 153 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidYErrKey |
Definition at line 159 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.centroidYKey |
Definition at line 155 of file anetAstrometry.py.
|
static |
Definition at line 136 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.distortedName |
Definition at line 152 of file anetAstrometry.py.
lsst.meas.extensions.astrometryNet.anetAstrometry.ANetAstrometryTask.solver |
Definition at line 166 of file anetAstrometry.py.