SampleCoordinateConverter

class lsst.cbp.testUtils.SampleCoordinateConverter(detectorFracPosList=None, holeFracPosList=None, telFlipX=False, cbpFlipX=False)

Bases: object

An object containing a CoordinateConverter and the information used to create it.

Parameters:
detectorFracPosListiterable of pair of float (optional)

Position of the center of each detector, as a fraction of the width and height of the detector. The first element must have value (0, 0). See the field of the same name for more information. Defaults to:

(
    (0, 0),
    (1.01, 0),  # 1.01: leave a 1% gap
    (-4, 7),    # a corner detector in the LSST camera
)
holeFracPosListiterable of pair of float (optional)

Positions of holes on a given detector, as a fraction of the distance from lower left corner to upper right corner. Thus (0.5, 0.5) is centered on the detector. Defaults to ((0, 0), (0.75, 0.75)).

Notes

Attributes

detectorWidthPixint

Width of each detector, in pixels.

detectorHeightPixint

Height of each detector, in pixels.

pixelSizeMmfloat

Width = height of each pixel, in mm.

plateScalelsst.geom.Angle

Plate scale: in angle on the sky per mm on the focal plane.

detectorFracPosListiterable of pair of float

Position of the center of each detector, as a fraction of the width and height of the detector. For instance (0, 0) is a detector centered on the focal plane and (1, 0) is adjacent to a centered detector, in the direction of increasing focal plane x.

holeFracPosListiterable of pair of float

Positions of holes on a given detector, as a fraction of the distance from lower left corner to upper right corner. Thus (0.5, 0.5) is centered on the detector.

cameraGeomlsst.afw.cameraGeom.Camera

Camera geometry. There will be one detector per entry in detectorFracPosList with names “D0”, “D1”, … Detector “D0” is centered on the focal plane.

configlsst.cbp.CoordinateConverterConfig

Basic configuration for coordinateConverter.

maskInfolsst.cbp.MaskInfo

CBP mask information.

coordinateConverterlsst.cbp.CoordinateConverter

The test coordinate converter.

Methods Summary

makeCameraGeom()

Make a camera geometry.

makeCoordinateConverterConfig(telFlipX, cbpFlipX)

Make a coordinate converter config.

makeMaskInfo()

Make mask information.

Methods Documentation

makeCameraGeom()

Make a camera geometry.

Returns:
cameraGeomlsst.afw.cameraGeom.Camera

Camera geometry.

Notes

There is one field per entry in self.detectorFracPosList with specifications set by self.detectorWidthPix, self.detectorHeightPix, and self.pixelSizeMm.

The plate scale is set by self.plateScale and the amount of optical distortion is fixed.

All detectors have the same shape (unlike LSST) and orientation (unlike HSC). Varying these is not necessary for testing the CBP and having all detectors the same simplifies the code.

makeCoordinateConverterConfig(telFlipX, cbpFlipX)

Make a coordinate converter config.

Parameters:
telFlipXbool

Flip the telescope focal plane.

cbpFlipXbool

Flip the CBP focal plane.

Returns:
configlsst.cbp.CoordinateConverterConfig

Coordinate converter config.

makeMaskInfo()

Make mask information.

Returns:
maskInfolsst.cbp.MaskInfo

Mask info.

Notes

The mask will have one hole per entry in self.holeFracPosList per detector.

self.cameraGeom and self.config must be set before calling this method.