Skip to content

Commit d11ecfe

Browse files
gduggan-caltechpre-commit-ci[bot]cjarnoldPaulHuwe
authored
SSC ROMAN-3776 Update GDPS data models for G1DP (#701)
* Rename id_catalog with catalog_id to match SOC naming convention of having id appear at the end of the keyname Rename PROGNUM with program to match rad field. Rename PROGRAM_COMPLETE with program_complete to have all keys be lower case. Remove ID_OBS, FILESET_ID, SEGMENT, and VISNUM from observation file, because the catalog is not tied to a specific OBS_ID. Those keys have been moved to g2dp_common for G2DP to provide feedback on. * Update g2dp_common.yaml to include moved fields in required list * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Create 701.misc.rst * Change program_complete from string to boolean * Updated datatypes of segment,visit,observation_id for consistency with these values elsewhere in RAD. Brought in changes to remove the 'meta' nesting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chris Arnold <carnold@stsci.edu> Co-authored-by: Paul Huwe <42071634+PaulHuwe@users.noreply.github.com>
1 parent da422ca commit d11ecfe

11 files changed

Lines changed: 76 additions & 100 deletions

changes/701.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SSC ROMAN-3776 feedback from SSC GDPS G1DP on the wfi_spec_catalog_level_4.yaml and wfi_spec_data_quality_level_4.yaml data models

latest/SSC/GDPS/keywords/catalog.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ title: GDPS catalog keywords
77
extName: SSC
88
type: object
99
properties:
10-
id_catalog:
10+
catalog_id:
1111
title: Catalog ID
1212
description: Placeholder. Example value '0001'
1313
type: string
1414
maxLength: 128
1515
archive_catalog:
1616
datatype: nvarchar(128)
17-
destination: [Placeholder.id_catalog]
18-
required: [id_catalog]
17+
destination: [Placeholder.catalog_id]
18+
required: [catalog_id]

latest/SSC/GDPS/keywords/g2dp_common.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,27 @@ properties:
2323
archive_catalog:
2424
datatype: nvarchar(128)
2525
destination: [Placeholder.id_g2dp_run]
26-
required: [version_g2dp_software, id_g2dp_run]
26+
# NOTE: Including segment and visit will permit better checking that the SSC spectral catalogs match the FILESET_ID it gets associated with
27+
segment:
28+
title: Segment number
29+
description: The sequence of activities produced by each iteration of a Segment Plan (Observation Sequence) in a Pass
30+
type: integer
31+
archive_catalog:
32+
datatype: smallint
33+
destination: [Placeholder.segment]
34+
visit:
35+
title: Visit number
36+
description: Visit number within a program
37+
type: integer
38+
archive_catalog:
39+
datatype: smallint
40+
destination: [Placeholder.visit]
41+
observation_id:
42+
title: Programmatic Observation Identifier
43+
description: Placeholder. Example value '0000101001001001001'
44+
type: string
45+
maxLength: 28
46+
archive_catalog:
47+
datatype: nvarchar(28)
48+
destination: [Placeholder.observation_id]
49+
required: [version_g2dp_software, id_g2dp_run, segment, visit, observation_id]

latest/SSC/GDPS/keywords/observation.yaml

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,18 @@ title: GDPS observation keywords
77
extName: SSC
88
type: object
99
properties:
10-
ID_OBS:
11-
title: Observation ID
12-
description: Placeholder. Example value '0000101001001001001'
13-
type: string
14-
maxLength: 28
15-
archive_catalog:
16-
datatype: nvarchar(28)
17-
destination: [Placeholder.observation_id]
18-
# NOTE: fileset_id permits SOC to place the file into the correct SOC fileset
19-
# NOTE: SOC uses "fileset" internally and "dataset" exposed to users, hence the mixed use
20-
FILESET_ID:
21-
title: Dataset ID
22-
description: The Level 2 WFI dataset ID, e.g., 'r0017001001001001006_0002_wfi16_f087'
23-
type: string
24-
maxLength: 28
25-
archive_catalog:
26-
datatype: nvarchar(28)
27-
destination: [Placeholder.fileset_id]
28-
PROGNUM:
10+
program:
2911
title: Program number
3012
description: ID number assigned to the proposal
31-
type: string
32-
maxLength: 16
13+
type: integer
3314
archive_catalog:
34-
datatype: nvarchar(16)
15+
datatype: int
3516
destination: [Placeholder.program]
36-
# NOTE: Including SEGMENT and VISNUM will permit better checking that the SSC spectral catalogs match the FILESET_ID it gets associated with
37-
SEGMENT:
38-
title: Segment number
39-
description: The sequence of activities produced by each iteration of a Segment Plan (Observation Sequence) in a Pass
40-
type: string
41-
maxLength: 16
42-
archive_catalog:
43-
datatype: nvarchar(16)
44-
destination: [CGIExposure.segment, CGIMosaic.segment]
45-
VISNUM:
46-
title: Visit number
47-
description: Visit number within a program
48-
type: string
49-
maxLength: 16
50-
archive_catalog:
51-
datatype: nvarchar(16)
52-
destination: [CGIExposure.visit, CGIMosaic.visit]
53-
PROGRAM_COMPLETE:
17+
program_complete:
5418
title: Program Complete
5519
description: Placeholder. Example value 'False'
56-
type: string
57-
maxLength: 8
20+
type: boolean
5821
archive_catalog:
59-
datatype: nvarchar(8)
22+
datatype: nchar(1)
6023
destination: [Placeholder.program_complete]
61-
required: [ID_OBS, FILESET_ID, PROGNUM, SEGMENT, VISNUM, PROGRAM_COMPLETE]
24+
required: [program, program_complete]

latest/SSC/GDPS/wfi_spec_catalog_level_4.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_catalog_level_4-
99
title: Level 4 Grism/Prism - Catalog
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/catalog-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/catalog-1.0.0

latest/SSC/GDPS/wfi_spec_combined_1d_level_4.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_combined_1d_leve
99
title: Level 4 Grism/Prism - 1D Combined Spectrum for each Source
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
19-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
20-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
21-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
17+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
18+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
19+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0

latest/SSC/GDPS/wfi_spec_data_quality_level_4.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_data_quality_lev
99
title: Level 4 Grism/Prism - Data Quality
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/catalog-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/catalog-1.0.0

latest/SSC/GDPS/wfi_spec_decontaminated_2d_level_4.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_decontaminated_2
99
title: Level 4 Grism/Prism - 2D Decontaminated Spectra
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
19-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
20-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
21-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
17+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
18+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
19+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0

latest/SSC/GDPS/wfi_spec_individual_1d_level_4.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_individual_1d_le
99
title: Level 4 Grism/Prism - 1D Derived Spectrum for each Source
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
19-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
20-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
21-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/calibration-1.0.0
17+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/wavelength-1.0.0
18+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/pointing-1.0.0
19+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/g2dp_common-1.0.0

latest/SSC/GDPS/wfi_spec_location_table_level_4.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ id: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/wfi_spec_location_table_l
99
title: Level 4 Grism/Prism - Spectra Location Table
1010
archive_meta: Placeholder SOC file type
1111
type: object
12-
properties:
13-
meta:
14-
allOf:
15-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
16-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
17-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
18-
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/location_table-1.0.0
12+
allOf:
13+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/ssc_basic-1.0.0
14+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/observation-1.0.0
15+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/instrument-1.0.0
16+
- $ref: asdf://stsci.edu/datamodels/roman/schemas/SSC/GDPS/keywords/location_table-1.0.0

0 commit comments

Comments
 (0)