field_from_legacy_photo_calib#
- lsst.images.fields.field_from_legacy_photo_calib(legacy_photo_calib, bounds, instrumental_unit=Unit('electron'))#
Convert a legacy
lsst.afw.image.PhotoCalibinto aBaseFieldobject.- Parameters:
legacy_photo_calib (
TypeAliasType) – Calibration object to convert.bounds (
Bounds) – Bounds of the returned field.instrumental_unit (
UnitBase, default:Unit("electron")) – The instrumental units the legacy calibration transforms from. These will be used as the denominator of the units of the returned field, withastropy.units.nJyas the numerator.
- Returns:
A field that transforms instrumental units to
nJy, orNoneif the given calibration object was an identity mapping for a legacy image that already hadnJypixels.- Return type: