WeightedMeanDiaPsFlux¶
-
class
lsst.ap.association.
WeightedMeanDiaPsFlux
(config, name, metadata)¶ Bases:
lsst.ap.association.DiaObjectCalculationPlugin
Compute the weighted mean and mean error on the point source fluxes of the DiaSource measured on the difference image.
Additionally store number of usable data points.
Attributes Summary
APCORR_ORDER
CENTROID_ORDER
DEFAULT_CATALOGCALCULATION
FLUX_MOMENTS_CALCULATED
FLUX_ORDER
SHAPE_ORDER
inputCols
outputCols
plugType
registry
Methods Summary
calculate
(diaObject, diaSources, …)Compute the weighted mean and mean error of the point source flux. fail
(diaObject, columns[, error])Set diaObject position values to nan. getExecutionOrder
()Used to set the relative order of plugin execution. getLogName
()getTransformClass
()Get the measurement transformation appropriate to this plugin. Attributes Documentation
-
APCORR_ORDER
= 3.0¶
-
CENTROID_ORDER
= 0.0¶
-
DEFAULT_CATALOGCALCULATION
= 4.0¶
-
FLUX_MOMENTS_CALCULATED
= 5.0¶
-
FLUX_ORDER
= 2.0¶
-
SHAPE_ORDER
= 1.0¶
-
inputCols
= []¶
-
outputCols
= ['PSFluxMean', 'PSFluxMeanErr', 'PSFluxNdata']¶
-
plugType
= 'single'¶
-
registry
= <lsst.meas.base.pluginRegistry.PluginRegistry object>¶
Methods Documentation
-
calculate
(diaObject, diaSources, filterDiaFluxes, filterName, **kwargs)¶ Compute the weighted mean and mean error of the point source flux.
Parameters: - diaObject :
dict
Summary object to store values in.
- diaSources :
pandas.DataFrame
DataFrame representing all diaSources associated with this diaObject.
- filterDiaFluxes :
pandas.DataFrame
DataFrame representing diaSources associated with this diaObject that are observed in the band pass
filterName
.- filterName :
str
Simple, string name of the filter for the flux being calculated.
- diaObject :
-
fail
(diaObject, columns, error=None)¶ Set diaObject position values to nan.
Since we set an explicit value instead of nan for all, we override the fail method.
-
classmethod
getExecutionOrder
()¶ Used to set the relative order of plugin execution.
The values returned by
getExecutionOrder
are compared across all plugins, and smaller numbers run first.Notes
CatalogCalculationPlugin
s must run withBasePlugin.DEFAULT_CATALOGCALCULATION
or higher.All plugins must implement this method with an appropriate run level
-
getLogName
()¶
-
static
getTransformClass
()¶ Get the measurement transformation appropriate to this plugin.
This returns a subclass of
transforms.MeasurementTransform
, which may be instantiated with details of the algorithm configuration and then called with information about calibration and WCS to convert from raw measurement quantities to calibrated units. Calibrated data is then provided in a separate output table.Notes
By default, we copy everything from the input to the output without transformation.
-