lsst.ip.diffim
13.0-22-g3839dbb+18
|
Measurement of Sources, specifically ones from difference images, for characterization as dipoles. More...
Static Public Attributes | |
ConfigClass = DipoleMeasurementConfig | |
Static Private Attributes | |
string | _DefaultName = "dipoleMeasurement" |
Measurement of Sources, specifically ones from difference images, for characterization as dipoles.
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This class provides a default configuration for running Source measurement on image differences.
These default plugins include:
These plugins enabled by default allow the user to test the hypothesis that the Source is a dipole. This includes a set of measurements derived from intermediate base classes DipoleCentroidAlgorithm and DipoleFluxAlgorithm. Their respective algorithm control classes are defined in DipoleCentroidControl and DipoleFluxControl. Each centroid and flux measurement will have _neg (negative) and _pos (positive lobe) fields.
The first set of measurements uses a "naive" alrogithm for centroid and flux measurements, implemented in NaiveDipoleCentroidControl and NaiveDipoleFluxControl. The algorithm uses a naive 3x3 weighted moment around the nominal centroids of each peak in the Source Footprint. These algorithms fill the table fields ip_diffim_NaiveDipoleCentroid* and ip_diffim_NaiveDipoleFlux*
The second set of measurements undertakes a joint-Psf model on the negative and positive lobe simultaneously. This fit simultaneously solves for the negative and positive lobe centroids and fluxes using non-linear least squares minimization. The fields are stored in table elements ip_diffim_PsfDipoleFlux*.
Because this Task is just a config for SourceMeasurementTask, the same result may be acheived by manually editing the config and running SourceMeasurementTask. For example:
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
No specific values are set in the Task metadata. However, the Source schema are modified to store the results of the dipole-specific measurements.
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The command line task interface supports a flag -d/–debug
to import debug.py from your PYTHONPATH
. The relevant contents of debug.py for this Task include:
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This code is dipoleMeasTask.py in the examples directory, and can be run as e.g.
Create a default source schema that we will append fields to as we add more algorithms:
Create the detection and measurement Tasks, with some minor tweaking of their configs:
Having fully initialied the schema, we create a Source table from it:
Run detection:
Because we are looking for dipoles, we need to merge the positive and negative detections:
Finally, perform measurement (both standard and dipole-specialized) on the merged sources:
Optionally display debugging information:
Definition at line 130 of file dipoleMeasurement.py.
|
staticprivate |
Definition at line 301 of file dipoleMeasurement.py.
|
static |
Definition at line 300 of file dipoleMeasurement.py.