field_from_legacy#
- lsst.images.fields.field_from_legacy(legacy_bounded_field, bounds=None, unit=None)#
Convert a legacy
lsst.afw.math.BoundedFieldsubclass to aBaseFieldobject.- Parameters:
legacy_bounded_field (
TypeAliasType) – Legacy field to convert.bounds (
Bounds|None, default:None) – The bounds of the returned field, if they should be different from the bounding box oflegacy.unit (
UnitBase|None, default:None) – The units of the returned field (lsst.afw.math.BoundedFieldobjects do not know their units).
- Return type:
TypeAliasType