Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAD-172 Sky Background #432

Merged
merged 8 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
0.20.1 (unreleased)
-------------------

-
- Added sky background schema. [#432]

0.20.0 (2024-05-15)
-------------------
Expand Down
5 changes: 5 additions & 0 deletions src/rad/resources/manifests/datamodels-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ tags:
title: Outlier Detection information
description: |-
Outlier Detection information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/sky_background-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/sky_background-1.0.0
title: Sky Background Information
description: |-
Sky Background 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
39 changes: 39 additions & 0 deletions src/rad/resources/schemas/sky_background-1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/sky_background-1.0.0

title: Sky Background Information
type: object
properties:
level:
title: Sky Background Level
description: |
The sky background level in DN / s.
anyOf:
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
properties:
datatype:
enum: ["float64"]
PaulHuwe marked this conversation as resolved.
Show resolved Hide resolved
unit:
oneOf:
- tag: tag:stsci.edu:asdf/unit/unit-1.*
- tag: tag:astropy.org:astropy/units/unit-1.*
enum: ["DN / s", "MJy.sr**-1"]
- type: "null"
method:
title: Sky Background Method
description: |
The method by which the sky background was determined.
type: string
enum: ["None", "local", "global+match", "match", "global"]
subtracted:
title: Sky Background Subtraction Flag
description: |
A boolean value which indicates whether the sky background has
been subtracted form the image or not.
type: boolean
propertyOrder: [level, method, subtracted]
flowStyle: block
required: [level, method, subtracted]
...
2 changes: 2 additions & 0 deletions src/rad/resources/schemas/wfi_image-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ properties:
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
background:
tag: asdf://stsci.edu/datamodels/roman/tags/sky_background-1.0.0
required: [photometry, wcs]
data:
title: Science Data (DN / s) or (MJy / sr)
Expand Down