field_from_legacy_photo_calib#
- lsst.images.fields.field_from_legacy_photo_calib(legacy_photo_calib: LegacyPhotoCalib, bounds: Bounds, instrumental_unit: astropy.units.UnitBase = Unit('electron')) Field | None#
Convert a legacy
lsst.afw.image.PhotoCalibinto aBaseFieldobject.Parameters#
- legacy_photo_calib
Calibration object to convert.
- bounds
Bounds of the returned field.
- instrumental_unit
The instrumental units the legacy calibration transforms from. These will be used as the denominator of the units of the returned field, with
astropy.units.nJyas the numerator.
Returns#
BaseField|NoneA field that transforms instrumental units to
nJy, orNoneif the given calibration object was an identity mapping for a legacy image that already hadnJypixels.