DRAGONS
DRAGONS copied to clipboard
`measureIQ` for N&S is broken in 3.1.x
Branch: release/3.1.x
measureIQ
for N&S issues warning and cannot find any good sources. Used to work. Not urgent, I'm not holding 3.1 for this, but it should be looked at at some point.
================================================================================
RECIPE: measureIQ
================================================================================
PRIMITIVE: measureIQ
--------------------
PRIMITIVE: tileArrays
---------------------
WARNING - N20080112S0398_skyCorrected.fits has nothing to tile, as tile_all=False but each array has only one amplifier.
.
/home/pipetest/testconda/susd3.9_20220816-test/lib/python3.9/site-packages/numpy/lib/function_base.py:4527: RuntimeWarning: invalid value encountered in subtract
diff_b_a = subtract(b, a)
/home/pipetest/testconda/susd3.9_20220816-test/lib/python3.9/site-packages/numpy/lib/function_base.py:4527: RuntimeWarning: invalid value encountered in subtract
diff_b_a = subtract(b, a)
/home/pipetest/testconda/susd3.9_20220816-test/lib/python3.9/site-packages/numpy/lib/function_base.py:4527: RuntimeWarning: invalid value encountered in subtract
diff_b_a = subtract(b, a)
WARNING - No good sources found in N20080112S0398_skyCorrected.fits
.
Wrote N20080112S0398_iqMeasured.fits in output directory
reduce completed successfully.
To reproduce:
reduce -r measureIQ N20080112S0398_skyCorrected.fits
The file N20080112S0398_skyCorrected.fits
can be found here: https://drive.google.com/drive/folders/1eJgTxJN0FwmW8zF-YTWztSuny7pmV2iu?usp=share_link
The input was produce with this recipe:
p.prepare()
p.addDQ()
p.addVAR(read_noise=True)
p.overscanCorrect()
p.ADUToElectrons()
p.addVAR(poisson_noise=True)
p.findAcquisitionSlits()
p.skyCorrectNodAndShuffle()