Skip to content

Commit c9d7381

Browse files
authored
RAD-171: Add statistics field to TVAC and FPS schemas (#423)
* Initial save. * Corrected unit tag types. * Updated Changelog.
1 parent cf1ab33 commit c9d7381

4 files changed

Lines changed: 202 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
- Separated TVAC and FPS schemas into their own suite of files. [#414]
55

6+
- Added statistics schemas to both FPS and TVAC. [#423]
7+
68
- Removed filepath_level_pnt5 from TVAC/FPS database. [#422]
79

810
- Removed the db entries for filename_l1a and filename_pnt5 in TVAC and FPS schemas. [#421]

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,11 @@ tags:
329329
title: FPS Guidestar information
330330
description: |-
331331
FPS Guidestar information
332+
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/fps/statistics-1.0.0
333+
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/fps/statistics-1.0.0
334+
title: FPS Summary Statistics
335+
description: |-
336+
FPS Summary Statistics
332337
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/fps/ref_file-1.0.0
333338
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/fps/ref_file-1.0.0
334339
title: FPS Calibration reference file names.
@@ -406,6 +411,11 @@ tags:
406411
title: TVAC Guidestar information
407412
description: |-
408413
TVAC Guidestar information
414+
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/tvac/statistics-1.0.0
415+
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/tvac/statistics-1.0.0
416+
title: TVAC Summary Statistics
417+
description: |-
418+
TVAC Summary Statistics
409419
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/tvac/ref_file-1.0.0
410420
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/tvac/ref_file-1.0.0
411421
title: TVAC Calibration reference file names.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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/fps/statistics-1.0.0
5+
6+
7+
title: |
8+
FPS Summary Statistics
9+
10+
type: object
11+
properties:
12+
mean_counts_per_sec:
13+
title: Mean number of counts per second
14+
description: |
15+
Mean number of counts per second of the data cube
16+
anyOf:
17+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
18+
properties:
19+
datatype:
20+
enum: ["float64"]
21+
unit:
22+
tag: tag:astropy.org:astropy/units/unit-1.*
23+
enum: ["DN / s"]
24+
- type: "null"
25+
sdf:
26+
special_processing: VALUE_REQUIRED
27+
source:
28+
origin: TBD
29+
archive_catalog:
30+
datatype: float
31+
destination: [WFICommon.mean_counts_per_sec]
32+
median_counts_per_sec:
33+
title: Median number of counts per second
34+
description: |
35+
Median number of counts per second of the data cube
36+
anyOf:
37+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
38+
properties:
39+
datatype:
40+
enum: ["float64"]
41+
unit:
42+
tag: tag:astropy.org:astropy/units/unit-1.*
43+
enum: ["DN / s"]
44+
- type: "null"
45+
sdf:
46+
special_processing: VALUE_REQUIRED
47+
source:
48+
origin: TBD
49+
archive_catalog:
50+
datatype: float
51+
destination: [WFICommon.median_counts_per_sec]
52+
max_counts:
53+
title: Maximum number of counts
54+
description: |
55+
Maximum number of counts in the data cube
56+
anyOf:
57+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
58+
properties:
59+
datatype:
60+
enum: ["int32"]
61+
unit:
62+
tag: tag:astropy.org:astropy/units/unit-1.*
63+
enum: ["DN"]
64+
- type: "null"
65+
sdf:
66+
special_processing: VALUE_REQUIRED
67+
source:
68+
origin: TBD
69+
archive_catalog:
70+
datatype: int
71+
destination: [WFICommon.max_counts]
72+
min_counts:
73+
title: Minimum number of counts
74+
description: |
75+
Minimum number of counts in the data cube
76+
anyOf:
77+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
78+
properties:
79+
datatype:
80+
enum: ["int32"]
81+
unit:
82+
tag: tag:astropy.org:astropy/units/unit-1.*
83+
enum: ["DN"]
84+
- type: "null"
85+
sdf:
86+
special_processing: VALUE_REQUIRED
87+
source:
88+
origin: TBD
89+
archive_catalog:
90+
datatype: int
91+
destination: [WFICommon.min_counts]
92+
propertyOrder: [mean_counts_per_sec, median_counts_per_sec, max_counts, min_counts]
93+
flowStyle: block
94+
required: [mean_counts_per_sec, median_counts_per_sec, max_counts, min_counts]
95+
...
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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/tvac/statistics-1.0.0
5+
6+
7+
title: |
8+
TVAC Summary Statistics
9+
10+
type: object
11+
properties:
12+
mean_counts_per_sec:
13+
title: Mean number of counts per second
14+
description: |
15+
Mean number of counts per second of the data cube
16+
anyOf:
17+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
18+
properties:
19+
datatype:
20+
enum: ["float64"]
21+
unit:
22+
tag: tag:astropy.org:astropy/units/unit-1.*
23+
enum: ["DN / s"]
24+
- type: "null"
25+
sdf:
26+
special_processing: VALUE_REQUIRED
27+
source:
28+
origin: TBD
29+
archive_catalog:
30+
datatype: float
31+
destination: [WFICommon.mean_counts_per_sec]
32+
median_counts_per_sec:
33+
title: Median number of counts per second
34+
description: |
35+
Median number of counts per second of the data cube
36+
anyOf:
37+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
38+
properties:
39+
datatype:
40+
enum: ["float64"]
41+
unit:
42+
tag: tag:astropy.org:astropy/units/unit-1.*
43+
enum: ["DN / s"]
44+
- type: "null"
45+
sdf:
46+
special_processing: VALUE_REQUIRED
47+
source:
48+
origin: TBD
49+
archive_catalog:
50+
datatype: float
51+
destination: [WFICommon.median_counts_per_sec]
52+
max_counts:
53+
title: Maximum number of counts
54+
description: |
55+
Maximum number of counts in the data cube
56+
anyOf:
57+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
58+
properties:
59+
datatype:
60+
enum: ["int32"]
61+
unit:
62+
tag: tag:astropy.org:astropy/units/unit-1.*
63+
enum: ["DN"]
64+
- type: "null"
65+
sdf:
66+
special_processing: VALUE_REQUIRED
67+
source:
68+
origin: TBD
69+
archive_catalog:
70+
datatype: int
71+
destination: [WFICommon.max_counts]
72+
min_counts:
73+
title: Minimum number of counts
74+
description: |
75+
Minimum number of counts in the data cube
76+
anyOf:
77+
- tag: tag:stsci.edu:asdf/unit/quantity-1.*
78+
properties:
79+
datatype:
80+
enum: ["int32"]
81+
unit:
82+
tag: tag:astropy.org:astropy/units/unit-1.*
83+
enum: ["DN"]
84+
- type: "null"
85+
sdf:
86+
special_processing: VALUE_REQUIRED
87+
source:
88+
origin: TBD
89+
archive_catalog:
90+
datatype: int
91+
destination: [WFICommon.min_counts]
92+
propertyOrder: [mean_counts_per_sec, median_counts_per_sec, max_counts, min_counts]
93+
flowStyle: block
94+
required: [mean_counts_per_sec, median_counts_per_sec, max_counts, min_counts]
95+
...

0 commit comments

Comments
 (0)