BuildCameraFromAstrometryTask#

class lsst.drp.tasks.build_camera.BuildCameraFromAstrometryTask(**kwargs)#

Bases: Task

Build an lsst.afw.cameraGeom.Camera object out of the gbdes polynomials mapping from pixels to the tangent plane.

Parameters#

Methods Summary

make_ast_polymap_coeffs(order, xCoeffs, yCoeffs)

Convert polynomial coefficients in gbdes format to AST PolyMap input format.

run(mapParams, mapTemplate, detectorList, ...)

Convert the model parameters into a Camera object.

Methods Documentation

make_ast_polymap_coeffs(order, xCoeffs, yCoeffs)#

Convert polynomial coefficients in gbdes format to AST PolyMap input format.

Paramaters#

order: int

Polynomial order

xCoeffs, yCoeffs: list of float

Forward or inverse polynomial coefficients for the x and y axes of output, in this order:

x0y0, x1y0, x0y1, x2y0, x1y1, x0y2, …xNy0, xN-1y1, …x0yN

where N is the polynomial order.

Returns#

polyArraynp.ndarray

Array formatted for AST PolyMap input.

run(mapParams, mapTemplate, detectorList, visitList, inputCamera, rotationAngle)#

Convert the model parameters into a Camera object.

Parameters#

mapParamsdict [float]

Parameters that describe the per-detector and per-visit parts of the astrometric model.

mapTemplatedict

Dictionary describing the format of the astrometric model, following the convention in gbdes.

detectorListlist [int]

List of detector ids.

visitListlist [int]

List of ids for visits that were used to train the input model.

cameralsst.afw.cameraGeom.Camera

Camera object from which to take pupil function, name, and other properties.

rotationAnglefloat

Value in radians of the average rotation angle of the input visits.

Returns#

cameralsst.afw.cameraGeom.Camera

Camera object with transformations set by the input mapParams.