Multiband Pixel class
This represent acts as a container for a single pixel
(scalar) in multiple bands.
Parameters
----------
singles : `sequence`
Either a list of single band objects or an array of values.
filters : `list`
List of filter names. If `singles` is an `OrderedDict` or
a `MultibandPixel` then this argument is ignored,
otherwise it is required.
position : `Point2I`
Location of the pixel in the parent image.
Unlike other objects that inherit from `MultibandBase`,
`MultibandPixel` objects don't have a full `Box2I`
bounding box, since they only contain a single pixel,
so the bounding box cannot be inherited from the
list of `singles`.
Definition at line 33 of file _multiband.py.
lsst.afw.image._image._multiband.MultibandPixel._slice |
( |
| self, |
|
|
| filters, |
|
|
| filterIndex, |
|
|
| indices ) |
|
protected |
Slice the current object and return the result
Different inherited classes will handling slicing differently,
so this method must be overloaded in inherited classes.
Parameters
----------
filters: `list` of `str`
List of filter names for the slice. This is a subset of the
filters in the parent multiband object
filterIndex: `list` of `int` or `slice`
Index along the filter dimension
indices: `tuple` of remaining indices
`MultibandBase.__getitem__` separates the first (filter)
index from the remaining indices, so `indices` is a tuple
of all of the indices that come after `filter` in the
`args` passed to `MultibandBase.__getitem__`.
Returns
-------
result: `object`
Sliced version of the current object, which could be the
same class or a different class depending on the
slice being made.
Reimplemented from lsst.afw.multiband.MultibandBase.
Definition at line 124 of file _multiband.py.