Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Epic Link:
-
Team:Data Release Production
-
Urgent?:No
Description
Now that SDF is up and running, I resumed working on applying the CTI correction to BOT run 13144. I ran the cpDeferredCharge.yaml task on two CCDs and it ran to completion without errors. However, when I tried to access the data with the butler, using:
test = butler.get('cpCtiCalib', detector=74, exposure=exposure, instrument='LSSTCam') |
I got an error that the trap array has the wrong length:
ValueError: Failure from formatter 'lsst.obs.base.formatters.fitsGeneric.FitsGenericFormatter' for dataset bc55b707-d46b-4beb-8656-309df4b94c83 (cpCtiCalib from file:///sdf/group/rubin/repo/main/u/cslage/sdf/BOT/cti_20220916/20220916T162216Z/cpCtiCalib/cpCtiCalib_LSSTCam_R20_S02_u_cslage_sdf_BOT_cti_20220916_20220916T162216Z.fits): ('CTI Amplifier %s coefficients for trap has illegal length %d.', 'C10', 1365)
|
This is caused because there are some NaNs in the trap array. Below is a list of the number of NaNs in the trap array - and these are in the amps that fail.
CCD = R13_S01
|
AMP len(table), numNans
|
C10 1398 0
|
C11 1398 0
|
C12 1398 0
|
C13 1398 1
|
C14 1398 0
|
C15 1398 1
|
C16 1398 1
|
C17 1398 0
|
C07 1398 0
|
C06 1398 0
|
C05 1398 0
|
C04 1398 0
|
C03 1398 0
|
C02 1398 0
|
C01 1398 0
|
C00 1398 0
|
CCD = R20_S02
|
AMP len(table), numNans
|
C10 1398 33
|
C11 1398 0
|
C12 1398 20
|
C13 1398 0
|
C14 1398 0
|
C15 1398 0
|
C16 1398 0
|
C17 1398 0
|
C07 1398 49
|
C06 1398 0
|
C05 1398 0
|
C04 1398 0
|
C03 1398 0
|
C02 1398 2
|
C01 1398 1
|
C00 1398 0
|
So we can write data that we can't read? Ideally we would do that "coefficients for trap has illegal length" test on write as well as read.