385 @param[in] nx: number of detectors in x
386 @param[in] ny: number of detectors in y
387 @param[in] sizeX: detector size in x (pixels)
388 @param[in] sizeY: detector size in y (pixels)
389 @param[in] gapX: gap between detectors in x (mm)
390 @param[in] gapY: gap between detectors in y (mm)
391 @param[in] pixelSize: pixel size (mm) (a float)
392 @param[in] plateScale: plate scale in arcsec/mm; 20.0 is for LSST
393 @param[in] radialDistortion: radial distortion, in mm/rad^2
394 (the r^3 coefficient of the radial distortion polynomial
395 that converts PUPIL in radians to FOCAL_PLANE in mm);
396 0.925 is the value Dave Monet measured for lsstSim data
398 Each detector will have one amplifier (with no raw information).
401 radialDistortCoeffs = [0.0, 1.0/pScaleRad, 0.0, radialDistortion/pScaleRad]
403 nativeSys = lsst.afw.cameraGeom.FOCAL_PLANE
405 lsst.afw.cameraGeom.PUPIL: focalPlaneToPupil,
412 cY = (iY - 0.5 * (nY - 1)) * (pixelSize * sizeY + gapY)
414 cX = (iX - 0.5 * (nX - 1)) * (pixelSize * sizeY + gapX)
416 detectorName =
"detector %d,%d" % (iX, iY)
417 detectorId = len(detectorList) + 1
421 serial = detectorName +
" serial",
423 ampExtent = ccdBBox.getDimensions(),
427 plateScale = plateScale,
428 radialDistortion = radialDistortion,
431 return lsst.afw.cameraGeom.Camera(
432 name =
"Simple Camera",
433 detectorList = detectorList,
434 transformMap = transformMap,