From 9726fe3ae0e3005f77824e563c5c9b0308ed18c2 Mon Sep 17 00:00:00 2001 From: Paul Huwe <42071634+PaulHuwe@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:49:42 +0000 Subject: [PATCH] RAD-136 Add Slope and Error to Dark (#323) * Added slopes to dark. * Updated Changelog. --- CHANGES.rst | 2 +- .../schemas/reference_files/dark-1.0.0.yaml | 28 ++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 02dfbdc4..67263369 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ 0.17.2 (unreleased) ------------------- -- +- Added Slope and Error to Dark reference schema. [#323] 0.17.1 (2023-08-03) ------------------- diff --git a/src/rad/resources/schemas/reference_files/dark-1.0.0.yaml b/src/rad/resources/schemas/reference_files/dark-1.0.0.yaml index 921c1a3d..0760e288 100644 --- a/src/rad/resources/schemas/reference_files/dark-1.0.0.yaml +++ b/src/rad/resources/schemas/reference_files/dark-1.0.0.yaml @@ -69,7 +69,33 @@ properties: unit: tag: tag:astropy.org:astropy/units/unit-1.0.0 enum: ["DN"] + dark_slope: + title: Dark current slope array + description: | + The dark current slope array represents the slope of the + integrated number of counts due to the accumulation of dark + current electrons in the pixels for slope fitting purposes. + tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 + properties: + value: + tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 + datatype: float32 + ndim: 2 + unit: + tag: tag:astropy.org:astropy/units/unit-1.0.0 + enum: ["DN / s"] + dark_slope_error: + title: Uncertainty in dark current slope array + tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 + properties: + value: + tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 + datatype: float32 + ndim: 2 + unit: + tag: tag:astropy.org:astropy/units/unit-1.0.0 + enum: ["DN / s"] required: [meta, data, dq, err] flowStyle: block -propertyOrder: [meta, data, dq, err] +propertyOrder: [meta, data, dq, err, dark_slope, dark_slope_error] ...