Skip to content

Commit

Permalink
RAD-161: Bit Mask to Resample (#401)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
PaulHuwe and pre-commit-ci[bot] committed Apr 4, 2024
1 parent 6271ba5 commit 982fe1b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGES.rst
Expand Up @@ -26,9 +26,12 @@

- Create the flux step schema. [#395]

- Create ``outlier_detection`` schema and add bit mask field to both it and ``resample``. [#401]

- Add source_catalog and segmentation_map schemas for Level 2 and Level 3 files. [#393]

0.19.0 (2024-02-09)

0.19.0 (2024-02-09)
-------------------

- Added streamlined Level 3 Mosaic metadata schemas. [#334]
Expand Down
5 changes: 5 additions & 0 deletions src/rad/resources/manifests/datamodels-1.0.yaml
Expand Up @@ -125,6 +125,11 @@ tags:
title: Level 3 Calibration Step status information
description: |-
Level 3 Calibration Step status information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/outlier_detection-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/outlier_detection-1.0.0
title: Outlier Detection information
description: |-
Outlier Detection information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0
title: Resample information
Expand Down
17 changes: 17 additions & 0 deletions src/rad/resources/schemas/outlier_detection-1.0.0.yaml
@@ -0,0 +1,17 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/outlier_detection-1.0.0

title: Outlier Detection Information
type: object
properties:
good_bits:
title: Bit Mask
description: |
Bit mask parameter sent to resample.
type: string
propertyOrder: [good_bits]
flowStyle: block
required: [good_bits]
...
9 changes: 7 additions & 2 deletions src/rad/resources/schemas/resample-1.0.0.yaml
Expand Up @@ -6,6 +6,11 @@ id: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0
title: Resample Information
type: object
properties:
good_bits:
title: Bit Mask
description: |
Bit mask used in resample.
type: string
pixel_scale_ratio:
title: Pixel Scale Ratio
description: |
Expand Down Expand Up @@ -44,7 +49,7 @@ properties:
variance map ("ivm").
type: string
enum: ["exptime", "ivm"]
propertyOrder: [members, pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
propertyOrder: [good_bits, members, pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
flowStyle: block
required: [members, pixel_scale_ratio, pixfrac, weight_type]
required: [good_bits, members, pixel_scale_ratio, pixfrac, weight_type]
...
2 changes: 2 additions & 0 deletions src/rad/resources/schemas/wfi_image-1.0.0.yaml
Expand Up @@ -22,6 +22,8 @@ properties:
- type: "null"
photometry:
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
outlier_detection:
tag: asdf://stsci.edu/datamodels/roman/tags/outlier_detection-1.0.0
source_detection:
tag: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
required: [photometry, wcs]
Expand Down

0 comments on commit 982fe1b

Please sign in to comment.