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.Backgroundorlsst.afw.math.BackgroundListinstance to aBaseFieldobject.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.Backgroundobjects do not know their units).