PhotonTransferCurveSolveTask

PhotonTransferCurveSolveTask combines the partial photon transfer curve (PTC) datasets from pairs of flats, and produces the complete curve, fitting the gains, read noises, and measuring the covariances.

Processing summary

PhotonTransferCurveSolveTask runs these operations:

  1. Collates the multiple single-pair input PTC datasets.

  2. Fits either a full-covariance model, or one of two simpler approximations (polynomial and Astier+19 exponential approximation).

  3. Persists the final complete dataset to disk.

Python API summary

from lsst.cp.pipe.ptc.cpSolvePtcTask import PhotonTransferCurveSolveTask
classPhotonTransferCurveSolveTask(*, config=None, log=None, initInputs=None, **kwargs)

Task to fit the PTC from flat covariances...

attributeconfig

Access configuration fields and retargetable subtasks.

methodrun(inputCovariances, camera=None, inputExpList=None)

Fit measure covariances to different models...

See also

See the PhotonTransferCurveSolveTask API reference for complete details.

Retargetable subtasks

No subtasks.

Configuration fields

connections

Data type

lsst.pipe.base.config.Connections

Field type

ConfigField

Configurations describing the connections of the PipelineTask to datatypes

doFitBootstrap

Default
False
Field type

bool Field

Use bootstrap for the PTC fit parameters and errors?.

initialNonLinearityExclusionThresholdNegative

Default
0.25
Field type

float RangeField

Range

[0.0,1.0)

Initially exclude data points with a variance that are more than a factor of this from being linear in the negative direction, from the PTC fit. Note that these points will also be excluded from the non-linearity fit. This is done before the iterative outlier rejection, to allow an accurate determination of the sigmas for said iterative fit.

initialNonLinearityExclusionThresholdPositive

Default
0.05
Field type

float RangeField

Range

[0.0,1.0)

Initially exclude data points with a variance that are more than a factor of this from being linear in the positive direction, from the PTC fit. Note that these points will also be excluded from the non-linearity fit. This is done before the iterative outlier rejection, to allow an accurate determination of the sigmas for said iterative fit.

maxIterFullFitCovariancesAstier

Default
3
Field type

int Field

Maximum number of iterations in full model fit for FULLCOVARIANCE ptcFitType

maxIterationsPtcOutliers

Default
2
Field type

int Field

Maximum number of iterations for outlier rejection in PTC.

maximumRangeCovariancesAstier

Default
8
Field type

int Field

Maximum range of covariances as in Astier+19

minMeanRatioTest

Default
20000
Field type

float Field

In the initial test to screen out bad points with a ratio test, points with low flux can get inadvertantly screened. This test only screens out points with flux above this value.

minVarPivotSearch

Default
10000
Field type

float Field

The code looks for a pivot signal point after which the variance starts decreasing at high-flux to exclude then form 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.

polynomialFitDegree

Default
3
Field type

int Field

Degree of polynomial to fit the PTC, when ‘ptcFitType’=POLYNOMIAL.

ptcFitType

Default
'POLYNOMIAL'
Field type

str ChoiceField (optional)

Choices
'POLYNOMIAL'

n-degree polynomial (use ‘polynomialFitDegree’ to set ‘n’).

'EXPAPPROXIMATION'

Approximation in Astier+19 (Eq. 16).

'FULLCOVARIANCE'

Full covariances model in Astier+19 (Eq. 20)

None

Field is optional

Fit PTC to Eq. 16, Eq. 20 in Astier+19, or to a polynomial.

saveLogOutput

Default
True
Field type

bool Field

Flag to enable/disable saving of log output for a task, enabled by default.

saveMetadata

Default
True
Field type

bool Field

Flag to enable/disable metadata saving for a task, enabled by default.

sigmaClipFullFitCovariancesAstier

Default
5.0
Field type

float Field

sigma clip for full model fit for FULLCOVARIANCE ptcFitType

sigmaCutPtcOutliers

Default
5.0
Field type

float Field

Sigma cut for outlier rejection in PTC.