ReadoutCorner#

class lsst.images.cameras.ReadoutCorner(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: StrEnum

Enumeration of the possible readout corners of an amplifier.

Attributes Summary

Methods Summary

apply_flips(*, y, x)

Return the new readout corner after applying the given flips.

as_flips()

Return a tuple indicating how the image needs to be flipped to bring the readout corner to LL.

from_flips(*, y, x)

Construct from booleans indicating how the image needs to be flipped to bring the readout corner to LL.

from_legacy(legacy_readout_corner)

Convert from lsst.afw.cameraGeom.ReadoutCorner.

to_legacy()

Convert to lsst.afw.cameraGeom.ReadoutCorner.

Attributes Documentation

LL = 'LL'#
LR = 'LR'#
UL = 'UL'#
UR = 'UR'#

Methods Documentation

apply_flips(*, y, x)#

Return the new readout corner after applying the given flips.

Parameters:
  • y (bool) – Whether to flip in the y direction.

  • x (bool) – Whether to flip in the x direction.

Return type:

ReadoutCorner

as_flips()#

Return a tuple indicating how the image needs to be flipped to bring the readout corner to LL.

Return type:

YX[bool]

classmethod from_flips(*, y, x)#

Construct from booleans indicating how the image needs to be flipped to bring the readout corner to LL.

Parameters:
  • y (bool) – Whether the image is flipped in the y direction.

  • x (bool) – Whether the image is flipped in the x direction.

Return type:

ReadoutCorner

classmethod from_legacy(legacy_readout_corner)#

Convert from lsst.afw.cameraGeom.ReadoutCorner.

Parameters:

legacy_readout_corner (TypeAliasType) – Legacy readout corner to convert.

Return type:

ReadoutCorner

to_legacy()#

Convert to lsst.afw.cameraGeom.ReadoutCorner.

Return type:

TypeAliasType

This page was last modified on .