field_from_legacy#

lsst.images.fields.field_from_legacy(legacy_bounded_field, bounds=None, unit=None)#

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

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 of legacy.

  • unit (UnitBase | None, default: None) – The units of the returned field (lsst.afw.math.BoundedField objects do not know their units).

Return type:

TypeAliasType

This page was last modified on .