BaseField#
- class lsst.images.fields.BaseField#
Bases:
ABCAn abstract base class for parametric or interpolated 2-d functions, generally representing some sort of calculated image.
Notes
The field hierarchy is closed to the types in this package, so we can enumerate all of the serializations and avoid any kind of extension system. All field types are immutable.
Field types implement the function call operator and both multiplication and division by a constant via operator overloading. Subclasses provide those operations by implementing the
_evaluateand_multiply_constanthooks (respectively).This interface will probably change in the future to incorporate options for dealing with out-of-bounds positions. At present the behavior for such positions is implementation-specific and should not be relied upon.
Attributes Summary
The region over which this field can be evaluated (
Bounds).Whether the field is spatially constant (
bool).The units of the field (
astropy.units.UnitBaseorNone).Methods Summary
__call__([point, x, y, quantity])Call self as a function.
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.
Convert to a legacy
lsst.afw.math.BoundedField.to_legacy_photo_calib(image_unit)Convert to a legacy
lsst.afw.image.PhotoCalib.Attributes Documentation
- unit#
The units of the field (
astropy.units.UnitBaseorNone).
Methods Documentation
- __call__(point=None, /, *, x=None, y=None, quantity=False)#
Call self as a function.
- 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.
- abstract render(bbox=None, *, dtype=None)#
Create an image realization of the field.
- to_legacy()#
Convert to a legacy
lsst.afw.math.BoundedField.- Return type:
TypeAliasType