field_from_legacy_photo_calib#

lsst.images.fields.field_from_legacy_photo_calib(legacy_photo_calib, bounds, instrumental_unit=Unit('electron'))#

Convert a legacy lsst.afw.image.PhotoCalib into a BaseField object.

Parameters:
  • legacy_photo_calib (TypeAliasType) – Calibration object to convert.

  • bounds (Bounds) – Bounds of the returned field.

  • instrumental_unit (UnitBase, default: Unit("electron")) – The instrumental units the legacy calibration transforms from. These will be used as the denominator of the units of the returned field, with astropy.units.nJy as the numerator.

Returns:

A field that transforms instrumental units to nJy, or None if the given calibration object was an identity mapping for a legacy image that already had nJy pixels.

Return type:

BaseField | None

This page was last modified on .