ProductField#
- final class lsst.images.fields.ProductField(operands)#
Bases:
BaseFieldA field that multiplies other fields lazily.
Attributes Summary
The region over which this field can be evaluated (
Bounds).Whether the field is spatially constant (
bool).The fields that are multiplied together (
tuple[BaseField, ...]).The units of the field (
astropy.units.UnitBaseorNone).Methods Summary
__call__([point, x, y, quantity])Call self as a function.
from_legacy(legacy[, unit, bounds])Convert from a legacy
lsst.afw.math.ProductBoundedField.make_legacy_photo_calib(image_unit)Make a legacy
lsst.afw.image.PhotoCalibfor an image with the given units, if that is possible without a photometric scaling field.render([bbox, dtype])Create an image realization of the field.
serialize(archive)Serialize the field to an output archive.
Convert to a legacy
lsst.afw.math.ProductBoundedField.to_legacy_photo_calib(image_unit)Convert to a legacy
lsst.afw.image.PhotoCalib.Attributes Documentation
- bounds#
- is_constant#
- unit#
Methods Documentation
- __call__(point=None, /, *, x=None, y=None, quantity=False)#
Call self as a function.
- static from_legacy(legacy, unit=None, bounds=None)#
Convert from a legacy
lsst.afw.math.ProductBoundedField.- Parameters:
legacy (
TypeAliasType) – Legacy field to convert.unit (
UnitBase|None, default:None) – The units of the returned field (lsst.afw.math.BoundedFieldobjects do not know their units).bounds (
Bounds|None, default:None) – The bounds of the returned field, if they should be different from the bounding box oflegacy.
- Return type:
- static make_legacy_photo_calib(image_unit)#
Make a legacy
lsst.afw.image.PhotoCalibfor an image with the given units, if that is possible without a photometric scaling field.
- render(bbox=None, *, dtype=None)#
Create an image realization of the field.
- serialize(archive)#
Serialize the field to an output archive.
- Parameters:
archive (
OutputArchive[Any]) – Archive to write to.- Return type:
- to_legacy()#
Convert to a legacy
lsst.afw.math.ProductBoundedField.- Return type:
TypeAliasType