PhotonTransferCurveSolveConfig#
- class lsst.cp.pipe.PhotonTransferCurveSolveConfig(*args, **kw)#
Bases:
PipelineTaskConfigConfiguration for fitting measured covariances.
Attributes Summary
Maximum number of adu to use for amp offset gain ratio fixup.
Minimum number of adu to use for amp offset gain ratio fixup.
Bin the image by this factor in both dimensions.
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Required number of consecutive points/fluxes in the PTC where the variance decreases in order to find a first estimate of the PTC turn-off.
Do gain ratio fixup based on amp offsets? Deprecated: This option has been deprecated and will be removed after v30.
Use bootstrap for the PTC fit parameters and errors?.
Use 'legacy' computation for PTC turnoff selection.
Model the roll-off in the PTC turnoff as a exponential decay.
Subtract long-range covariances before FULLCOVARIANCE fit, beyond startLongRangeCovariances? (
bool, defaultFalse)The amount to extend the mask beyond the initial PTC turnoff to fit the rolloff.
Minimum value of the Gaussian histogram KS test p-value to be used in PTC fit.
If there are any outliers in the initial fit that have mean greater than maxSignalInitialPtcOutlierFit, then no points that have this delta mean from the previous
goodpoint are allowed.Maximum number of iterations in full model fit for FULLCOVARIANCE ptcFitType (
int, default3)Maximum number of iterations for outlier rejection in PTC.
Maximum values (inclusive) of mean signal (in adu) below which to consider, per amp.
Maximum percent difference between the model with saturation rolloff and the model without to set the PTC turnoff.
Maximum signal considered for intial outlier fit.
Maximum range of measured covariances as in Astier+19 (
int, default10)Maximum range up to where to fit covariances as in Astier+19, for the FULLCOVARIANCE model.This is different from maximumRangeCovariancesAstier.It should be less or equal than maximumRangeCovariancesAstier.The number of parameters for this model is 3*maximumRangeCovariancesAstierFullCovFit^2 + 1, so increase with care so that the fit is not too slow.
Minimum values (inclusive) of mean signal (in adu) per amp to use.
The code looks for a pivot signal point after which the variance starts decreasing at high-flux to exclude then from the PTC model fit.
If doSubtractLongRangeCovariances is True, polynomial degree to fit data beyond startLongRangeCovariances.
Degree of polynomial to fit the PTC, when 'ptcFitType'=POLYNOMIAL.
Fit PTC to Eq.
Flag to enable/disable saving of log output for a task, enabled by default.
Scale maxSignalInitialPtcOutlierFit and maxDeltaInitialPtcOutlierFit by approximate gain? If yes then maxSignalInitialPtcOutlierFit and maxDeltaInitialPtcOutlierFit are assumed to have units of electrons, otherwise adu.
sigma clip for full model fit for FULLCOVARIANCE ptcFitType (
float, default5.0)Sigma cut for outlier rejection in PTC.
If doSubtractLongRangeCovariances is True, subtract covariances beyond this range.
Methods Summary
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- ampOffsetGainRatioMaxAdu#
Maximum number of adu to use for amp offset gain ratio fixup. Deprecated: This option has been deprecated and will be removed after v30. (
float, default20000.0)
- ampOffsetGainRatioMinAdu#
Minimum number of adu to use for amp offset gain ratio fixup. Deprecated: This option has been deprecated and will be removed after v30. (
float, default1000.0)
- binSize#
Bin the image by this factor in both dimensions. (
int, default1)
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
- consecutivePointsVarDecreases#
Required number of consecutive points/fluxes in the PTC where the variance decreases in order to find a first estimate of the PTC turn-off. Only used if doLegacyTurnoffSelection is True. Deprecated: This option has been deprecated and will be removed after v30. (
int, default2)Valid Range = [2,inf)
- doAmpOffsetGainRatioFixup#
Do gain ratio fixup based on amp offsets? Deprecated: This option has been deprecated and will be removed after v30. (
bool, defaultFalse)
- doFitBootstrap#
Use bootstrap for the PTC fit parameters and errors?. (
bool, defaultFalse)
- doLegacyTurnoffSelection#
Use ‘legacy’ computation for PTC turnoff selection. If set to False, then the KS test p-value selection will be used instead. Deprecated: This option has been deprecated and will be removed after v30. (
bool, defaultFalse)
- doModelPtcRolloff#
Model the roll-off in the PTC turnoff as a exponential decay. (
bool, defaultFalse)
- doSubtractLongRangeCovariances#
Subtract long-range covariances before FULLCOVARIANCE fit, beyond startLongRangeCovariances? (
bool, defaultFalse)
- extendRollofSearchMaskSizeAdu#
The amount to extend the mask beyond the initial PTC turnoff to fit the rolloff. Only used if doModelPtcRolloff=True (units: adu). (
float, default5000.0)
- ksTestMinPvalue#
Minimum value of the Gaussian histogram KS test p-value to be used in PTC fit. (
float, default0.01)
- maxDeltaInitialPtcOutlierFit#
If there are any outliers in the initial fit that have mean greater than maxSignalInitialPtcOutlierFit, then no points that have this delta mean from the previous
goodpoint are allowed. If scaleMaxSignalInitialPtcOutlierFit=True then the units are electrons; otherwise adu. (float, default9000.0)
- maxIterFullFitCovariancesAstier#
Maximum number of iterations in full model fit for FULLCOVARIANCE ptcFitType (
int, default3)
- maxIterationsPtcOutliers#
Maximum number of iterations for outlier rejection in PTC. (
int, default2)Valid Range = [0,inf)
- maxMeanSignal#
Maximum values (inclusive) of mean signal (in adu) below which to consider, per amp. The same cut is applied to all amps if this dictionary is of the form {‘ALL_AMPS’: value} (
Dict, default{'ALL_AMPS': 1000000.0})
- maxPtcRolloffDeviation#
Maximum percent difference between the model with saturation rolloff and the model without to set the PTC turnoff. Only used if doModelPtcRolloff=True. (
float, default0.01)
- maxSignalInitialPtcOutlierFit#
Maximum signal considered for intial outlier fit. This should be below the PTC turnoff to ensure accurate outlier rejection. If scaleMaxSignalInitialPtcOutlierFit=True then the units are electrons; otherwise adu. (
float, default50000.0)
- maximumRangeCovariancesAstier#
Maximum range of measured covariances as in Astier+19 (
int, default10)
- maximumRangeCovariancesAstierFullCovFit#
Maximum range up to where to fit covariances as in Astier+19, for the FULLCOVARIANCE model.This is different from maximumRangeCovariancesAstier.It should be less or equal than maximumRangeCovariancesAstier.The number of parameters for this model is 3*maximumRangeCovariancesAstierFullCovFit^2 + 1, so increase with care so that the fit is not too slow. (
int, default10)
- minMeanSignal#
Minimum values (inclusive) of mean signal (in adu) per amp to use. The same cut is applied to all amps if this parameter [
dict] is passed as {‘ALL_AMPS’: value} (Dict, default{'ALL_AMPS': 0.0})
- minVarPivotSearch#
The code looks for a pivot signal point after which the variance starts decreasing at high-flux to exclude then from the PTC model fit. However, sometimes at low fluxes, the variance decreases slightly. Set this variable for the variance value, in adu^2, after which the pivot should be sought. Only used if doLegacyTurnoffSelection is True. Deprecated: This option has been deprecated and will be removed after v30. (
float, default10000)
- polyDegLongRangeCovariances#
If doSubtractLongRangeCovariances is True, polynomial degree to fit data beyond startLongRangeCovariances. (
int, default1)
- polynomialFitDegree#
Degree of polynomial to fit the PTC, when ‘ptcFitType’=POLYNOMIAL. Deprecated: This field is no longer used. Will be removed after v30. (
int, default3)
- ptcFitType#
Fit PTC to Eq. 16 or Eq. 20 in Astier+19. (
str, default'EXPAPPROXIMATION')Allowed values:
'EXPAPPROXIMATION'Approximation in Astier+19 (Eq. 16).
'FULLCOVARIANCE_NO_B'Full covariances model in Astier+19 (Eq. 15)
'FULLCOVARIANCE'Full covariances model in Astier+19 (Eq. 20)
'None'Field is optional
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- scaleMaxSignalInitialPtcOutlierFit#
Scale maxSignalInitialPtcOutlierFit and maxDeltaInitialPtcOutlierFit by approximate gain? If yes then maxSignalInitialPtcOutlierFit and maxDeltaInitialPtcOutlierFit are assumed to have units of electrons, otherwise adu. (
bool, defaultTrue)
- sigmaClipFullFitCovariancesAstier#
sigma clip for full model fit for FULLCOVARIANCE ptcFitType (
float, default5.0)
- sigmaCutPtcOutliers#
Sigma cut for outlier rejection in PTC. (
float, default5.0)
- startLongRangeCovariances#
If doSubtractLongRangeCovariances is True, subtract covariances beyond this range. It should be less than maximumRangeCovariancesAstier. (
int, default4)
Methods Documentation
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.