field_from_legacy#

lsst.images.fields.field_from_legacy(legacy_bounded_field: LegacyBoundedField, bounds: Bounds | None = None, unit: astropy.units.UnitBase | None = None) Field#

Convert a legacy lsst.afw.math.BoundedField subclass to a BaseField object.

Parameters#

legacy_bounded_field

Legacy field to convert.

bounds

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

unit

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