makeCameraFromPath

lsst.afw.cameraGeom.makeCameraFromPath(cameraConfig, ampInfoPath, shortNameFunc, pupilFactoryClass=<class 'lsst.afw.cameraGeom.pupil.PupilFactory'>)

Make a Camera instance from a directory of ampInfo files

The directory must contain one ampInfo fits file for each detector in cameraConfig.detectorList. The name of each ampInfo file must be shortNameFunc(fullDetectorName) + “.fits”.

Parameters:
cameraConfigCameraConfig

Config describing camera and its detectors.

ampInfoPathstr

Path to ampInfo data files.

shortNameFunccallable

A function that converts a long detector name to a short one.

pupilFactoryClasstype, optional

Class to attach to camera; default is lsst.afw.cameraGeom.PupilFactory.

Returns:
cameralsst.afw.cameraGeom.Camera

New Camera instance.