LSST Applications 29.1.0,g0fba68d861+6b120c4394,g123d84c11c+8c5ae1fdc5,g1ec0fe41b4+191117f6ec,g1fd858c14a+c8450ae71a,g3533f9d6cb+a04f9ee0ab,g35bb328faa+8c5ae1fdc5,g3f0dcc2b1b+7df08700bd,g4178042926+b4254969db,g44ba364a48+04455b336b,g53246c7159+8c5ae1fdc5,g60b5630c4e+a04f9ee0ab,g663da51e9b+b05e6e1875,g67b6fd64d1+250bf6acd3,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g87e3079a85+d3fa38de54,g8852436030+cd899e2626,g89139ef638+250bf6acd3,g93a033419f+31ead11197,g989de1cb63+250bf6acd3,g9f33ca652e+f6053ecf14,ga1e959baac+5fbc491aed,ga2f891cd6c+a04f9ee0ab,gabe3b4be73+8856018cbb,gabf8522325+1f7e6d67b9,gac2eed3f23+250bf6acd3,gb1101e3267+0c331e9486,gb89ab40317+250bf6acd3,gcf25f946ba+cd899e2626,gd107969129+8964d67276,gd6cbbdb0b4+6bbecc8878,gde0f65d7ad+d65f9e019a,ge278dab8ac+eb3bbeb12f,ge410e46f29+250bf6acd3,gf5e32f922b+8c5ae1fdc5,gff02db199a+747430a128,gffe7e49bb4+a04f9ee0ab
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, tuple bands, Box bbox, Parameter|np.ndarray spectrum, Parameter|np.ndarray morph_params, Callable morph_func, Callable morph_grad, Callable morph_prox, Callable|np.ndarray morph_step, Callable|None prox_spectrum=None, float floor=1e-20) | |
float | semi_major (self) |
float | semi_minor (self) |
float | theta (self) |
np.ndarray | ellipse_params (self) |
np.ndarray | radial_params (self) |
EllipseFrame | frame (self) |
Callable | morph_prox (self) |
Callable | morph_grad (self) |
update (self, int it, np.ndarray input_grad) | |
float | y0 (self) |
tuple[float, float] | peak (self) |
float | x0 (self) |
np.ndarray | spectrum (self) |
np.ndarray | morph (self, CartesianFrame|None frame=None) |
Callable | prox_morph (self) |
Callable | grad_morph (self) |
Callable | morph_step (self) |
Image | get_model (self, CartesianFrame|None frame=None) |
np.ndarray | prox_spectrum (self, np.ndarray spectrum) |
np.ndarray | grad_spectrum (self, np.ndarray input_grad, np.ndarray spectrum, np.ndarray morph) |
bool | resize (self, Box model_box) |
None | parameterize (self, Callable parameterization) |
Box | bbox (self) |
tuple | bands (self) |
Public Attributes | |
ellipse_params | |
floor = floor | |
y0 | |
Protected Member Functions | |
np.ndarray | _get_morph (self, CartesianFrame|None frame=None) |
Protected Attributes | |
_spectrum = parameter(spectrum) | |
_params = parameter(morph_params) | |
_func = morph_func | |
_morph_grad = morph_grad | |
_morph_prox = morph_prox | |
Callable | _morph_step = morph_step |
Callable | _prox_spectrum = self.prox_spectrum |
tuple | _bands = bands |
Box | _bbox = bbox |
A radial density/surface brightness profile with elliptical symmetry Parameters ---------- bands: The bands used in the model. bbox: The bounding box that holds this component model. spectrum: The spectrum of the component. morph_params: The parameters passed to `morph_func` to generate the morphology in image space. morph_func: The function to generate the morphology based on `morphParams`. morph_grad: The function to calculate the gradient of the likelihood wrt the morphological parameters. morph_prox: The proximal operator for the morphology parameters. prox_spectrum: Proximal operator for the spectrum. If `prox_spectrum` is `None` then the default proximal operator `self.prox_spectrum` is used. floor: The minimum value of the spectrum, used to prevent divergences in the gradients.
Definition at line 838 of file parametric.py.
lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.__init__ | ( | self, | |
tuple | bands, | ||
Box | bbox, | ||
Parameter | np.ndarray | spectrum, | ||
Parameter | np.ndarray | morph_params, | ||
Callable | morph_func, | ||
Callable | morph_grad, | ||
Callable | morph_prox, | ||
Callable | np.ndarray | morph_step, | ||
Callable | None | prox_spectrum = None, | ||
float | floor = 1e-20 ) |
Definition at line 869 of file parametric.py.
|
protectedinherited |
The 2D image of the morphology This callable generates an image of the morphology in the given frame. Parameters ---------- frame: The frame (bounding box, pixel grid) that the image is placed in. Returns ------- result: The image of the morphology in the `frame`.
Definition at line 722 of file parametric.py.
|
inherited |
The bands in the component model
Definition at line 66 of file component.py.
|
inherited |
The bounding box that contains the component in the full image
Definition at line 61 of file component.py.
np.ndarray lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.ellipse_params | ( | self | ) |
The parameters used to generate the scaled radius
Definition at line 913 of file parametric.py.
EllipseFrame lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.frame | ( | self | ) |
The `EllipseFrame` that parameterizes the model
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
Definition at line 923 of file parametric.py.
|
inherited |
Generate the full model for this component
Reimplemented from lsst.scarlet.lite.component.Component.
Definition at line 767 of file parametric.py.
|
inherited |
The function that calculates the gradient of the morphological model
Definition at line 754 of file parametric.py.
|
inherited |
Gradient of the spectrum wrt. the component model Parameters ---------- input_grad: Gradient of the likelihood wrt the component model spectrum: The model of the spectrum. morph: The model of the morphology. Returns ------- result: The gradient of the likelihood wrt. the spectrum.
Definition at line 784 of file parametric.py.
|
inherited |
The morphological model
Definition at line 744 of file parametric.py.
Callable lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.morph_grad | ( | self | ) |
The function that calculates the gradient of the morphological model
Definition at line 933 of file parametric.py.
Callable lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.morph_prox | ( | self | ) |
The function used to constrain the morphological model
Definition at line 928 of file parametric.py.
|
inherited |
The function that calculates the gradient of the morphological model
Definition at line 761 of file parametric.py.
|
inherited |
Convert the component parameter arrays into Parameter instances
Reimplemented from lsst.scarlet.lite.component.Component.
Definition at line 827 of file parametric.py.
|
inherited |
The center of the component
Definition at line 693 of file parametric.py.
|
inherited |
The function used to constrain the morphological model
Definition at line 749 of file parametric.py.
|
inherited |
Apply a prox-like update to the spectrum Parameters ---------- spectrum: The spectrum of the model.
Definition at line 772 of file parametric.py.
np.ndarray lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.radial_params | ( | self | ) |
The parameters used to model the radial function
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
Definition at line 918 of file parametric.py.
|
inherited |
Resize the box that contains the model Not yet implemented, so for now the model box does not grow. If this is ever implemented in production, in the long run this will be based on a cutoff value for the model.
Reimplemented from lsst.scarlet.lite.component.Component.
Definition at line 818 of file parametric.py.
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.semi_major | ( | self | ) |
The length of the semi-major axis of the model
Definition at line 896 of file parametric.py.
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.semi_minor | ( | self | ) |
The length of the semi-minor axis of the model
Definition at line 901 of file parametric.py.
|
inherited |
The array of spectrum values
Definition at line 708 of file parametric.py.
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.theta | ( | self | ) |
The counter-clockwise rotation angle of the model from the x-axis.
Definition at line 906 of file parametric.py.
lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.update | ( | self, | |
int | it, | ||
np.ndarray | input_grad ) |
Update the component Parameters ---------- it: The current iteration of the optimizer. input_grad: Gradient of the likelihood wrt the component model
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
Definition at line 939 of file parametric.py.
|
inherited |
The x-center of the component
Definition at line 703 of file parametric.py.
|
inherited |
The y-center of the component
Definition at line 698 of file parametric.py.
|
protectedinherited |
Definition at line 57 of file component.py.
Definition at line 58 of file component.py.
|
protectedinherited |
Definition at line 681 of file parametric.py.
|
protectedinherited |
Definition at line 682 of file parametric.py.
|
protectedinherited |
Definition at line 683 of file parametric.py.
|
protectedinherited |
Definition at line 684 of file parametric.py.
|
protectedinherited |
Definition at line 680 of file parametric.py.
|
protectedinherited |
Definition at line 687 of file parametric.py.
|
protectedinherited |
Definition at line 679 of file parametric.py.
lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.ellipse_params |
Definition at line 925 of file parametric.py.
|
inherited |
Definition at line 690 of file parametric.py.
|
inherited |
Definition at line 695 of file parametric.py.