diff --git a/CHANGES.rst b/CHANGES.rst index f7843555..aa0354bd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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] diff --git a/src/rad/resources/manifests/datamodels-1.0.yaml b/src/rad/resources/manifests/datamodels-1.0.yaml index dcf29b89..f3d34364 100644 --- a/src/rad/resources/manifests/datamodels-1.0.yaml +++ b/src/rad/resources/manifests/datamodels-1.0.yaml @@ -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 diff --git a/src/rad/resources/schemas/outlier_detection-1.0.0.yaml b/src/rad/resources/schemas/outlier_detection-1.0.0.yaml new file mode 100644 index 00000000..8baf9b6c --- /dev/null +++ b/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] +... diff --git a/src/rad/resources/schemas/resample-1.0.0.yaml b/src/rad/resources/schemas/resample-1.0.0.yaml index 53b22f22..0bb75226 100644 --- a/src/rad/resources/schemas/resample-1.0.0.yaml +++ b/src/rad/resources/schemas/resample-1.0.0.yaml @@ -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: | @@ -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] ... diff --git a/src/rad/resources/schemas/wfi_image-1.0.0.yaml b/src/rad/resources/schemas/wfi_image-1.0.0.yaml index 7823fc57..7d4851b4 100644 --- a/src/rad/resources/schemas/wfi_image-1.0.0.yaml +++ b/src/rad/resources/schemas/wfi_image-1.0.0.yaml @@ -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]