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
|
Fit a TAN-SIP WCS given a list of reference object/source matches. More...
Public Member Functions | |
def | fitWcs |
Fit a TAN-SIP WCS from a list of reference object/source matches. More... | |
def | initialWcs |
def | rejectMatches |
def | plotFit |
Static Public Member Functions | |
def | updateRefCentroids |
def | updateSourceCoords |
Static Public Attributes | |
ConfigClass = FitTanSipWcsConfig | |
Private Member Functions | |
def | _fitWcs |
Static Private Attributes | |
string | _DefaultName = "fitWcs" |
Fit a TAN-SIP WCS given a list of reference object/source matches.
Fit a TAN-SIP WCS given a list of reference object/source matches. See CreateWithSip.h for information about the fitting algorithm.
Fit a TAN-SIP WCS from a list of reference object/source matches.
[in,out] | matches | a list of reference object/source matches (an lsst::afw::table::ReferenceMatchVector) The following fields are read:
|
[in] | initWcs | initial WCS |
[in] | bbox | the region over which the WCS will be valid (an lsst:afw::geom::Box2I); if None or an empty box then computed from matches |
[in,out] | refCat | reference object catalog, or None. If provided then all centroids are updated with the new WCS, otherwise only the centroids for ref objects in matches are updated. Required fields are "centroid_x", "centroid_y", "coord_ra", and "coord_dec". |
[in,out] | sourceCat | source catalog, or None. If provided then coords are updated with the new WCS; otherwise only the coords for sources in matches are updated. Required fields are "slot_Centroid_x", "slot_Centroid_y", and "coord_ra", and "coord_dec". |
FitTanSipWcsTask is a subtask of AstrometryTask, which is called by PhotoCalTask. See meas_photocal_photocal_Example.
FitTanSipWcsTask does not support any debug variables.
Definition at line 57 of file fitTanSipWcs.py.
|
private |
Fit a Wcs based on the matches and a guess Wcs
Definition at line 204 of file fitTanSipWcs.py.
def lsst.meas.astrom.fitTanSipWcs.FitTanSipWcsTask.fitWcs | ( | self, | |
matches, | |||
initWcs, | |||
bbox = None , |
|||
refCat = None , |
|||
sourceCat = None |
|||
) |
Fit a TAN-SIP WCS from a list of reference object/source matches.
[in,out] | matches | a list of reference object/source matches (an lsst::afw::table::ReferenceMatchVector) The following fields are read:
|
[in] | initWcs | initial WCS |
[in] | bbox | the region over which the WCS will be valid (an lsst:afw::geom::Box2I); if None or an empty box then computed from matches |
[in,out] | refCat | reference object catalog, or None. If provided then all centroids are updated with the new WCS, otherwise only the centroids for ref objects in matches are updated. Required fields are "centroid_x", "centroid_y", "coord_ra", and "coord_dec". |
[in,out] | sourceCat | source catalog, or None. If provided then coords are updated with the new WCS; otherwise only the coords for sources in matches are updated. Required fields are "slot_Centroid_x", "slot_Centroid_y", and "coord_ra", and "coord_dec". |
Definition at line 102 of file fitTanSipWcs.py.
def lsst.meas.astrom.fitTanSipWcs.FitTanSipWcsTask.initialWcs | ( | self, | |
matches, | |||
wcs | |||
) |
Generate a guess Wcs from the astrometric matches We create a Wcs anchored at the center of the matches, with the scale of the input Wcs. This is necessary because matching returns only matches with no estimated Wcs, and the input Wcs is a wild guess. We're using the best of each: positions from the matches, and scale from the input Wcs.
Definition at line 184 of file fitTanSipWcs.py.
def lsst.meas.astrom.fitTanSipWcs.FitTanSipWcsTask.plotFit | ( | self, | |
matches, | |||
wcs, | |||
rejected | |||
) |
Plot the fit We create four plots, for all combinations of (dx, dy) against (x, y). Good points are black, while rejected points are red.
Definition at line 247 of file fitTanSipWcs.py.
def lsst.meas.astrom.fitTanSipWcs.FitTanSipWcsTask.rejectMatches | ( | self, | |
matches, | |||
wcs, | |||
rejected | |||
) |
Flag deviant matches We return a boolean numpy array indicating whether the corresponding match should be rejected. The previous list of rejections is used so we can calculate uncontaminated statistics.
Definition at line 211 of file fitTanSipWcs.py.
|
static |
Update centroids in a collection of reference objects, given a WCS
Definition at line 225 of file fitTanSipWcs.py.
|
static |
Update coords in a collection of sources, given a WCS
Definition at line 237 of file fitTanSipWcs.py.
|
staticprivate |
Definition at line 99 of file fitTanSipWcs.py.
|
static |
Definition at line 98 of file fitTanSipWcs.py.