Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
When trying to process HSC g-band data for exposure 106126 detector 33, the ISR task fails with the error:
Failed to initialise spline for type akima, length 1 {0}
|
This exposure was part of a larger run, running the $CP_PIPE_DIR/pipelines/cpSky.yaml pipeline to produce sky frames; all HSC-g detector 33 ISR tasks failed for this run.
On closer inspection, detector 33 is unusual, with amps 0 and 1 saturated, and amps 2 and 3 seemingly producing usable scientific results. An example raw image for the above data ID is attached to this ticket, for reference.
An example log showing the above error is also attached to this ticket.
This appears to be a failure only on Amp 0.
In any case, when there are insufficient points, the fitter now returns a scalar float value. The measureVectorOverscan then identifies this case, applies that scalar value as the overscan fit and returns a mask that fully masks the amplifier (this is redundant in the case of HSC detector 33, as both the overscan mask and the defects will mask that amplifier).
I've also run a test with a non-spline fitter (CHEB) which does the correct thing, even though that fitType does run successfully (returning an array of floats, which does not trigger this work around).