Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ip_isr, obs_subaru, pipe_drivers
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:DRP S17-2
-
Team:Data Release Production
Description
The darktime can be NaN if not set explicitly in the obs package's makeRawVisitInfo. Any scaling of an exposure by the darktime can therefore result in a useless image full of NaN values. We therefore need to catch the case isnan(darktime) wherever we use it: pipe_drivers for construction of the dark, and ip_isr for application of the dark.
Russell Owen, I hope you like this solution better than the solution from
DM-8962.price@price-laptop:~/LSST/pipe/drivers (tickets/DM-9004=) $ git sub
commit 4a0c73c86d258cf14632930a66ac618ace9eb91f
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jan 16 13:16:31 2017 -0500
constructCalibs: check for non-finite darktime
Scaling by a non-finite darktime can destroy the image.
This is important because the darktime defaults to NAN
unless set explicitly by the obs package.
python/lsst/pipe/drivers/constructCalibs.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
price@price-laptop:~/LSST/ip/isr (tickets/DM-9004=) $ git sub
commit 2ed0dcfbcf1afdc8d3001575d8312119669b74b9
Author: Paul Price <price@astro.princeton.edu>
Date: Mon Jan 16 13:19:22 2017 -0500
IsrTask: check for non-finite darktime
Scaling by a non-finite darktime can destroy the image.
This is important because the darktime defaults to NAN
unless set explicitly by the obs package.
python/lsst/ip/isr/isrTask.py | 10 ++++++++--
tests/testBiasAndDarkCorrection.py | 41 ++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 2 deletions(-)