|
LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
Classes | |
| class | Monotonicity |
Functions | |
| np.ndarray | prox_connected (np.ndarray morph, Sequence[Sequence[int]] centers) |
| tuple[int, int] | get_peak (np.ndarray image, tuple[int, int] center, int radius=1) |
| tuple[np.ndarray, np.ndarray, tuple[int, int, int, int]] | prox_monotonic_mask (np.ndarray x, tuple[int, int] center, int center_radius=1, float variance=0.0, int max_iter=3) |
| np.ndarray | uncentered_operator (np.ndarray x, Callable func, tuple[int, int]|None center=None, float|None fill=None, **kwargs) |
| prox_sdss_symmetry (np.ndarray x) | |
| np.ndarray | prox_uncentered_symmetry (np.ndarray x, tuple[int, int]|None center=None, float|None fill=None) |
| tuple[int, int] lsst.scarlet.lite.operators.get_peak | ( | np.ndarray | image, |
| tuple[int, int] | center, | ||
| int | radius = 1 ) |
Search around a location for the maximum flux
For monotonicity it is important to start at the brightest pixel
in the center of the source. This may be off by a pixel or two,
so we search for the correct center before applying
monotonic_tree.
Parameters
----------
image:
The image of the source.
center:
The suggested center of the source.
radius:
The number of pixels around the `center` to search
for a higher flux value.
Returns
-------
new_center:
The true center of the source.
Definition at line 255 of file operators.py.
| np.ndarray lsst.scarlet.lite.operators.prox_connected | ( | np.ndarray | morph, |
| Sequence[Sequence[int]] | centers ) |
Remove all pixels not connected to the center of a source.
Parameters
----------
morph:
The morphology that is being constrained.
centers:
The `(cy, cx)` center of any sources that all pixels must be
connected to.
Returns
-------
result:
The morphology with all pixels that are not connected to a center
postion set to zero.
Definition at line 11 of file operators.py.
| tuple[np.ndarray, np.ndarray, tuple[int, int, int, int]] lsst.scarlet.lite.operators.prox_monotonic_mask | ( | np.ndarray | x, |
| tuple[int, int] | center, | ||
| int | center_radius = 1, | ||
| float | variance = 0.0, | ||
| int | max_iter = 3 ) |
Apply monotonicity from any path from the center
Parameters
----------
x:
The input image that the mask is created for.
center:
The location of the center of the mask.
center_radius:
Radius from the center pixel to search for a better center
(ie. a pixel in `X` with higher flux than the pixel given by
`center`).
If `center_radius == 0` then the `center` pixel is assumed
to be correct.
variance:
The average variance in the image.
This is used to allow pixels to be non-monotonic up to `variance`,
so setting `variance=0` will force strict monotonicity in the mask.
max_iter:
Maximum number of iterations to interpolate non-monotonic pixels.
Returns
-------
valid:
Boolean array of pixels that are monotonic.
model:
The model with invalid pixels masked out.
bounds:
The bounds of the valid monotonic pixels.
Definition at line 288 of file operators.py.
| lsst.scarlet.lite.operators.prox_sdss_symmetry | ( | np.ndarray | x | ) |
SDSS/HSC symmetry operator
This function uses the *minimum* of the two
symmetric pixels in the update.
Parameters
----------
x:
The array to make symmetric.
Returns
-------
result:
The updated `x`.
Definition at line 423 of file operators.py.
| np.ndarray lsst.scarlet.lite.operators.prox_uncentered_symmetry | ( | np.ndarray | x, |
| tuple[int, int] | None | center = None, | ||
| float | None | fill = None ) |
Symmetry with off-center peak
Symmetrize X for all pixels with a symmetric partner.
Parameters
----------
x:
The parameter to update.
center:
The center pixel coordinates to apply the symmetry operator.
fill:
The value to fill the region that cannot be made symmetric.
When `fill` is `None` then the region of `X` that is not symmetric
is not constrained.
Returns
-------
result:
The update function based on the specified parameters.
Definition at line 444 of file operators.py.
| np.ndarray lsst.scarlet.lite.operators.uncentered_operator | ( | np.ndarray | x, |
| Callable | func, | ||
| tuple[int, int] | None | center = None, | ||
| float | None | fill = None, | ||
| ** | kwargs ) |
Only apply the operator on a centered patch
In some cases, for example symmetry, an operator might not make
sense outside of a centered box. This operator only updates
the portion of `X` inside the centered region.
Parameters
----------
x:
The parameter to update.
func:
The function (or operator) to apply to `x`.
center:
The location of the center of the sub-region to
apply `func` to `x`.
fill:
The value to fill the region outside of centered
`sub-region`, for example `0`. If `fill` is `None`
then only the subregion is updated and the rest of
`x` remains unchanged.
Returns
-------
result:
`x`, with an operator applied based on the shifted center.
Definition at line 356 of file operators.py.