Skip to content

Commit 982fe1b

Browse files
RAD-161: Bit Mask to Resample (#401)
* Initial commit. * Updated Changelog. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added outlier detection group and good_bits. * Update Changelog. * Removed outlier_detection from wfi_mosaic. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6271ba5 commit 982fe1b

5 files changed

Lines changed: 35 additions & 3 deletions

File tree

CHANGES.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@
2626

2727
- Create the flux step schema. [#395]
2828

29+
- Create ``outlier_detection`` schema and add bit mask field to both it and ``resample``. [#401]
30+
2931
- Add source_catalog and segmentation_map schemas for Level 2 and Level 3 files. [#393]
3032

31-
0.19.0 (2024-02-09)
33+
34+
0.19.0 (2024-02-09)
3235
-------------------
3336

3437
- Added streamlined Level 3 Mosaic metadata schemas. [#334]

src/rad/resources/manifests/datamodels-1.0.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ tags:
125125
title: Level 3 Calibration Step status information
126126
description: |-
127127
Level 3 Calibration Step status information
128+
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/outlier_detection-1.0.0
129+
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/outlier_detection-1.0.0
130+
title: Outlier Detection information
131+
description: |-
132+
Outlier Detection information
128133
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
129134
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0
130135
title: Resample information
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
%YAML 1.1
2+
---
3+
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
4+
id: asdf://stsci.edu/datamodels/roman/schemas/outlier_detection-1.0.0
5+
6+
title: Outlier Detection Information
7+
type: object
8+
properties:
9+
good_bits:
10+
title: Bit Mask
11+
description: |
12+
Bit mask parameter sent to resample.
13+
type: string
14+
propertyOrder: [good_bits]
15+
flowStyle: block
16+
required: [good_bits]
17+
...

src/rad/resources/schemas/resample-1.0.0.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ id: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0
66
title: Resample Information
77
type: object
88
properties:
9+
good_bits:
10+
title: Bit Mask
11+
description: |
12+
Bit mask used in resample.
13+
type: string
914
pixel_scale_ratio:
1015
title: Pixel Scale Ratio
1116
description: |
@@ -44,7 +49,7 @@ properties:
4449
variance map ("ivm").
4550
type: string
4651
enum: ["exptime", "ivm"]
47-
propertyOrder: [members, pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
52+
propertyOrder: [good_bits, members, pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
4853
flowStyle: block
49-
required: [members, pixel_scale_ratio, pixfrac, weight_type]
54+
required: [good_bits, members, pixel_scale_ratio, pixfrac, weight_type]
5055
...

src/rad/resources/schemas/wfi_image-1.0.0.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ properties:
2222
- type: "null"
2323
photometry:
2424
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
25+
outlier_detection:
26+
tag: asdf://stsci.edu/datamodels/roman/tags/outlier_detection-1.0.0
2527
source_detection:
2628
tag: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
2729
required: [photometry, wcs]

0 commit comments

Comments
 (0)