Skip to content

Commit b7f55fc

Browse files
authored
make associations schema static (#702)
2 parents e516721 + db07961 commit b7f55fc

5 files changed

Lines changed: 109 additions & 6 deletions

File tree

changes/702.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make unused associations schema static.

latest/datamodels.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,6 @@ tags:
243243
description: |-
244244
Multiple Accumulation Table Reference File Schema
245245
# Misc
246-
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/associations-1.0.0
247-
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/associations-1.0.0
248-
title: Association table
249-
description: |-
250-
Association table
251246
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/cal_logs-1.0.0
252247
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/cal_logs-1.0.0
253248
title: Calibration log messages

latest/static.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,8 @@ tags:
179179
title: Guide window schema
180180
description: |-
181181
Guide window schema
182+
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/associations-1.0.0
183+
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/associations-1.0.0
184+
title: Association table
185+
description: |-
186+
Association table

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

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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/associations-1.0.0
5+
6+
title: Association Table Data Model
7+
8+
datamodel_name: AssociationsModel
9+
10+
type: object
11+
properties:
12+
asn_id:
13+
title: Association ID
14+
description: |
15+
The unique identifier of the association to which the processed
16+
observations belong.
17+
type: string
18+
asn_pool:
19+
title: Association Pool
20+
type: string
21+
asn_type:
22+
title: Association Type
23+
description: |
24+
The type of association observed, such as a dither FOV association or a
25+
mosaic survey association.
26+
type: string
27+
asn_rule:
28+
title: Association Rule
29+
description: |
30+
Any rules that need to be followed for this particular type of
31+
association.
32+
type: string
33+
version_id:
34+
title: Version ID
35+
description: |
36+
The unique version identifier that provides context for the data release
37+
version and circumstances for the processing.
38+
type: string
39+
code_version:
40+
title: Code Version
41+
description: |
42+
The exact code version used to process the observations.
43+
type: string
44+
degraded_status:
45+
title: Degraded Status
46+
description: |
47+
Details about how the observations might have suffered degradation, such
48+
as a guide star failure.
49+
type: string
50+
program:
51+
title: Program ID
52+
description: |
53+
The unique program identifier to which the associated observations belong.
54+
type: integer
55+
target:
56+
title: Target Name
57+
description: |
58+
The name or ID of the target being observed.
59+
type: integer
60+
constraints:
61+
title: Constraints
62+
type: string
63+
products:
64+
title: Resultant Products
65+
description: |
66+
The resulting output products created by the processing.
67+
type: array
68+
items:
69+
type: object
70+
properties:
71+
name:
72+
type: string
73+
members:
74+
type: array
75+
items:
76+
type: object
77+
properties:
78+
expname:
79+
type: string
80+
exposerr:
81+
type: string
82+
exptype:
83+
type: string
84+
enum: ["SCIENCE", "CALIBRATION", "ENGINEERING"]
85+
required: [expname, exposerr, exptype]
86+
required: [name, members]
87+
88+
required: [asn_id, asn_pool, asn_type, asn_rule, products]
89+
flowStyle: block
90+
propertyOrder:
91+
[
92+
asn_id,
93+
asn_pool,
94+
asn_type,
95+
asn_rule,
96+
version_id,
97+
code_version,
98+
degraded_status,
99+
program,
100+
target,
101+
constraints,
102+
products,
103+
]

0 commit comments

Comments
 (0)