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.BoundedFieldsubclass to aBaseFieldobject.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.BoundedFieldobjects do not know their units).