LSSTApplications  17.0+124,17.0+14,17.0+73,18.0.0+37,18.0.0+80,18.0.0-4-g68ffd23+4,18.1.0-1-g0001055+12,18.1.0-1-g03d53ef+5,18.1.0-1-g1349e88+55,18.1.0-1-g2505f39+44,18.1.0-1-g5315e5e+4,18.1.0-1-g5e4b7ea+14,18.1.0-1-g7e8fceb+4,18.1.0-1-g85f8cd4+48,18.1.0-1-g8ff0b9f+4,18.1.0-1-ga2c679d+1,18.1.0-1-gd55f500+35,18.1.0-10-gb58edde+2,18.1.0-11-g0997b02+4,18.1.0-13-gfe4edf0b+12,18.1.0-14-g259bd21+21,18.1.0-19-gdb69f3f+2,18.1.0-2-g5f9922c+24,18.1.0-2-gd3b74e5+11,18.1.0-2-gfbf3545+32,18.1.0-26-g728bddb4+5,18.1.0-27-g6ff7ca9+2,18.1.0-3-g52aa583+25,18.1.0-3-g8ea57af+9,18.1.0-3-gb69f684+42,18.1.0-3-gfcaddf3+6,18.1.0-32-gd8786685a,18.1.0-4-gf3f9b77+6,18.1.0-5-g1dd662b+2,18.1.0-5-g6dbcb01+41,18.1.0-6-gae77429+3,18.1.0-7-g9d75d83+9,18.1.0-7-gae09a6d+30,18.1.0-9-gc381ef5+4,w.2019.45
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst.obs.test.testCamera.TestCamera Class Reference
Inheritance diagram for lsst.obs.test.testCamera.TestCamera:

Public Member Functions

def __new__ (cls)
 
def __init__ (self)
 

Detailed Description

A simple test Camera.

Notes
-----
The camera has one ccd with name "0".
That CCD has four amplifiers with names "00", "01", "10", and "11".

The camera is modeled after a small portion of the LSST sim
Summer 2012 camera: a single detector with four amplifiers,
consisting of raft 2,2 sensor 0,0, half of channels 0,0 0,1 1,0 and 1,1
(the half closest to the Y centerline).

Note that the Summer 2012 camera has one very weird feature:
the bias region (rawHOverscanBbox) is actually a prescan
(it appears before the data pixels).

A raw image has the sky in the same orientation on all amplifier
subregions, so no amplifier subregions need their pixels to be flipped.

Standard keys are:

* ``amp``: amplifier number: one of 00, 01, 10, 11
* ``ccd``: ccd number: always 0
* ``visit``: exposure number; test data includes one exposure
    with visit=1

Definition at line 31 of file testCamera.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.test.testCamera.TestCamera.__init__ (   self)

Definition at line 75 of file testCamera.py.

75  def __init__(self):
76  pass
77 
def __init__(self, minimum, dataRange, Q)

Member Function Documentation

◆ __new__()

def lsst.obs.test.testCamera.TestCamera.__new__ (   cls)

Definition at line 58 of file testCamera.py.

58  def __new__(cls):
59  plateScale = geom.Angle(20, geom.arcseconds) # plate scale, in angle on sky/mm
60  # Radial distortion is modeled as a radial polynomial that converts from focal plane (in mm)
61  # to field angle (in radians). Thus the coefficients are:
62  # C0: always 0, for continuity at the center of the focal plane; units are rad
63  # C1: 1/plateScale; units are rad/mm
64  # C2: usually 0; units are rad/mm^2
65  # C3: radial distortion; units are rad/mm^3
66  radialCoeff = np.array([0.0, 1.0, 0.0, 0.925]) / plateScale.asRadians()
67  fieldAngleToFocalPlane = afwGeom.makeRadialTransform(radialCoeff)
68  focalPlaneToFieldAngle = fieldAngleToFocalPlane.inverted()
69 
70  camera = cameraGeom.Camera.Builder("test")
71  cls._makeDetectors(camera, focalPlaneToFieldAngle)
72  camera.setTransformFromFocalPlaneTo(cameraGeom.FIELD_ANGLE, focalPlaneToFieldAngle)
73  return camera.finish()
74 
A class representing an angle.
Definition: Angle.h:127
std::shared_ptr< TransformPoint2ToPoint2 > makeRadialTransform(std::vector< double > const &forwardCoeffs, std::vector< double > const &inverseCoeffs)
A purely radial polynomial distortion.

The documentation for this class was generated from the following file: