field_from_legacy_background#

lsst.images.fields.field_from_legacy_background(legacy_background: LegacyBackground | LegacyBackgroundList, bounds: Bounds | None = None, unit: astropy.units.UnitBase | None = None) Field#

Convert a legacy lsst.afw.math.Background or lsst.afw.math.BackgroundList instance to a BaseField object.

Parameters#

legacy_background

Legacy background object to convert.

bounds

The bounds of the returned field, if they should be different from the bounding box of legacy_background.

unit

The units of the returned field (lsst.afw.math.Background objects do not know their units).