LsstHistory¶
-
class
lsst.meas.extensions.scarlet.LsstHistory(*args, **kwargs)¶ Bases:
lsst.meas.extensions.scarlet.LsstSourceLsstSource with attributes for traceback
Attributes Summary
coordThe coordinate in a ComponentTree.frameThe frame of this component morphNumpy view of the component morphology sedNumpy view of the component SED shapeShape of the image (Channel, Height, Width) step_morphstep_sedMethods Summary
backward_prior()Use the prior to update the gradient display_model([observation, ax, filters, Q, …])get_flux()Get flux in every band get_model([sed, morph, observation])Get the model for this component. modelToHeavy(filters[, xy0, observation, dtype])Convert the model to a MultibandFootprintmorphToHeavy(peakSchema[, xy0])Convert the morphology to a HeavyFootprintplot_history()Plot the position and convergence history of an object update()Default update parameters for an ExtendedSource update_history(it)Attributes Documentation
-
coord¶ The coordinate in a
ComponentTree.
-
frame¶ The frame of this component
-
morph¶ Numpy view of the component morphology
-
sed¶ Numpy view of the component SED
-
shape¶ Shape of the image (Channel, Height, Width)
-
step_morph¶
-
step_sed¶
Methods Documentation
-
backward_prior()¶ Use the prior to update the gradient
-
display_model(observation=None, ax=None, filters=None, Q=10, stretch=1, show=True)¶
-
get_flux()¶ Get flux in every band
-
get_model(sed=None, morph=None, observation=None)¶ Get the model for this component.
Parameters: Returns: - model: array or tensor
(Bands, Height, Width) image of the model
-
modelToHeavy(filters, xy0=Point2I(0, 0), observation=None, dtype=<class 'numpy.float32'>)¶ Convert the model to a
MultibandFootprint
-
morphToHeavy(peakSchema, xy0=Point2I(0, 0))¶ Convert the morphology to a
HeavyFootprint
-
plot_history()¶ Plot the position and convergence history of an object
-
update()¶ Default update parameters for an ExtendedSource
This method can be overwritten if a different set of constraints or update functions is desired.
-
update_history(it)¶
-