BuildCameraFromAstrometryTask#
- class lsst.drp.tasks.build_camera.BuildCameraFromAstrometryTask(**kwargs)#
Bases:
TaskBuild an
lsst.afw.cameraGeom.Cameraobject out of thegbdespolynomials 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:
listoffloat 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#
- polyArray
np.ndarray Array formatted for AST PolyMap input.
- order:
- run(mapParams, mapTemplate, detectorList, visitList, inputCamera, rotationAngle)#
Convert the model parameters into a Camera object.
Parameters#
- mapParams
dict[float] Parameters that describe the per-detector and per-visit parts of the astrometric model.
- mapTemplate
dict Dictionary describing the format of the astrometric model, following the convention in
gbdes.- detectorList
list[int] List of detector ids.
- visitList
list[int] List of ids for visits that were used to train the input model.
- camera
lsst.afw.cameraGeom.Camera Camera object from which to take pupil function, name, and other properties.
- rotationAngle
float Value in radians of the average rotation angle of the input visits.
Returns#
- camera
lsst.afw.cameraGeom.Camera Camera object with transformations set by the input mapParams.
- mapParams