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:
cameraConfig : CameraConfig

Config describing camera and its detectors.

ampInfoPath : str

Path to ampInfo data files.

shortNameFunc : callable

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

pupilFactoryClass : type, optional

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

Returns:
camera : lsst.afw.cameraGeom.Camera

New Camera instance.