Skip to content

Commit f9822f7

Browse files
authored
RAD-172 Sky Background (#432)
* Initial attempt. * Initial commit. * Added unit to sky background level. * Updated unit tags.
1 parent 093271a commit f9822f7

4 files changed

Lines changed: 47 additions & 1 deletion

File tree

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0.20.1 (unreleased)
22
-------------------
33

4-
-
4+
- Added sky background schema. [#432]
55

66
0.20.0 (2024-05-15)
77
-------------------

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ tags:
130130
title: Outlier Detection information
131131
description: |-
132132
Outlier Detection information
133+
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/sky_background-1.0.0
134+
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/sky_background-1.0.0
135+
title: Sky Background Information
136+
description: |-
137+
Sky Background Information
133138
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
134139
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0
135140
title: Resample information
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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/sky_background-1.0.0
5+
6+
title: Sky Background Information
7+
type: object
8+
properties:
9+
level:
10+
title: Sky Background Level
11+
description: |
12+
The sky background level in DN / s.
13+
anyOf:
14+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
15+
properties:
16+
datatype:
17+
enum: ["float64"]
18+
unit:
19+
oneOf:
20+
- tag: tag:stsci.edu:asdf/unit/unit-1.*
21+
- tag: tag:astropy.org:astropy/units/unit-1.*
22+
enum: ["DN / s", "MJy.sr**-1"]
23+
- type: "null"
24+
method:
25+
title: Sky Background Method
26+
description: |
27+
The method by which the sky background was determined.
28+
type: string
29+
enum: ["None", "local", "global+match", "match", "global"]
30+
subtracted:
31+
title: Sky Background Subtraction Flag
32+
description: |
33+
A boolean value which indicates whether the sky background has
34+
been subtracted form the image or not.
35+
type: boolean
36+
propertyOrder: [level, method, subtracted]
37+
flowStyle: block
38+
required: [level, method, subtracted]
39+
...

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ properties:
2626
tag: asdf://stsci.edu/datamodels/roman/tags/outlier_detection-1.0.0
2727
source_detection:
2828
tag: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
29+
background:
30+
tag: asdf://stsci.edu/datamodels/roman/tags/sky_background-1.0.0
2931
required: [photometry, wcs]
3032
data:
3133
title: Science Data (DN / s) or (MJy / sr)

0 commit comments

Comments
 (0)