CellField#
- final class lsst.images.cells.CellField(bounds, array, unit=None)#
Bases:
BaseFieldA piecewise 2-d function on a cell-coadd grid.
- Parameters:
bounds (
CellGridBounds) – Description of the cell grid and any missing cells. Array entries for missing cells should be NaN.array (
ndarray) – A 2-d array of cell values with shapebounds.subgrid_size.as_tuple().unit (
UnitBase|None, default:None) – Units of the field values, orNoneif dimensionless.
Notes
CellFieldis not directly serializable and is not included in theFieldunion type alias as a result. AMappingofCellFieldis instead serializable viaCellApertureCorrectionMapSerializationModel.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.
from_legacy_aperture_correction(legacy, bounds)Convert from a legacy
lsst.cell_coadds.StitchedApertureCorrection.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.quantity_in_cell(key)Return the quantity (value with units) of the field in the cell with the given index.
render([bbox, dtype])Create an image realization of the field.
Convert to a legacy
lsst.afw.math.BoundedField.Convert to a legacy
lsst.cell_coadds.StitchedApertureCorrection.to_legacy_photo_calib(image_unit)Convert to a legacy
lsst.afw.image.PhotoCalib.value_in_cell(key)Return the value of the field in the cell with the given index.
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_aperture_correction(legacy, bounds)#
Convert from a legacy
lsst.cell_coadds.StitchedApertureCorrection.- Parameters:
legacy (
TypeAliasType) – Legacy field to convert.bounds (
CellGridBounds) – The grid and bounds of the returned field.
- 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.
- quantity_in_cell(key)#
Return the quantity (value with units) of the field in the cell with the given index.
- 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
- to_legacy_aperture_correction()#
Convert to a legacy
lsst.cell_coadds.StitchedApertureCorrection.- Return type:
TypeAliasType