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-143, RAD-144: Add FPS and TVAC schemas #364

Merged
merged 18 commits into from
Feb 28, 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
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@

- Add documentation on how to create a new schema. [#375]

- Add ``FPS`` and ``TVAC`` schemas. [#364]

- Update titles and descriptions to those provided by INS. [#361]

- Updated product table names. [#382]


0.19.0 (2024-02-09)
-------------------

Expand Down
31 changes: 31 additions & 0 deletions src/rad/resources/manifests/datamodels-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,37 @@ tags:
title: Mosaic WCS parameters
description: |-
Mosaic WCS parameters
# Ground Modules
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/base_exposure-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/base_exposure-1.0.0
title: Exposure information
description: |-
Ground test exposure information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/base_guidestar-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/base_guidestar-1.0.0
title: Guidestar information
description: |-
Guidestar information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/groundtest-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/groundtest-1.0.0
title: Ground Test Information
description: |-
Ground test description.
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/tvac_groundtest-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/tvac_groundtest-1.0.0
title: TVAC Ground Test Information
description: |-
TVAC ground test description.
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/fps-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/fps-1.0.0
title: FPS schema
description: |-
FPS test data
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/tvac-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/tvac-1.0.0
title: TVAC schema
description: |-
TVAC test data
# Reference Modules
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/dark-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/dark-1.0.0
Expand Down
188 changes: 188 additions & 0 deletions src/rad/resources/schemas/base_exposure-1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/base_exposure-1.0.0


title: |
Base Exposure Information

type: object
properties:
type:
$ref: asdf://stsci.edu/datamodels/roman/schemas/exposure_type-1.0.0
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nvarchar(25)
destination: [WFIExposure.exposure_type, GuideWindow.exposure_type, WFICommon.exposure_type]
start_time:
title: Exposure Start Time (UTC)
description: |
The UTC time at the beginning of the exposure.
tag: tag:stsci.edu:asdf/time/time-1.*
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: datetime2
destination: [WFIExposure.exposure_start_time, GuideWindow.exposure_start_time, WFICommon.exposure_start_time]
ngroups:
title: Number of Resultants
description: |
The number of resultant frames in this exposure that were transmitted to
the ground. The number of integrations of WFI data is always 1.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: int
destination: [WFIExposure.exposure_ngroups, GuideWindow.exposure_ngroups, WFICommon.exposure_ngroups]
nframes:
title: Number of Reads
description: |
This is the number of science frames that are combined to produce a resultant frame.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: int
destination: [WFIExposure.exposure_nframes, GuideWindow.exposure_nframes, WFICommon.exposure_nframes]
data_problem:
title: Data Problem
description: |
A flag indicating an issue with science telemetry.
type: boolean
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nchar(1)
destination: [WFIExposure.exposure_data_problem, GuideWindow.exposure_data_problem, WFICommon.exposure_data_problem]
frame_divisor:
title: Frame Divisor
description: |
The number of reads averaged to calculate a resultant. Value depends on
the readout pattern used from the MultiAccum table.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: int
destination: [WFIExposure.exposure_frame_divisor, GuideWindow.exposure_frame_divisor, WFICommon.exposure_frame_divisor]
groupgap:
title: Number of Frames Dropped Between Resultants
description:
The number of reads that are dropped, or not used to calculate a
resultant.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: int
destination: [WFIExposure.exposure_groupgap, GuideWindow.exposure_groupgap, WFICommon.exposure_groupgap]
frame_time:
title: Time Between Reads (s)
description: |
The amount of time elapsed between the end of one read and the beginning
of the next.
type: number
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: float
destination: [WFIExposure.exposure_frame_time, GuideWindow.exposure_frame_time, WFICommon.exposure_frame_time]
group_time:
title: Time Between Resultants (s)
description: |
The time that is the sum of the reads that are used to construct a
resultant. This will depend on the MA table being used.
type: number
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: float
destination: [WFIExposure.exposure_group_time, GuideWindow.exposure_group_time, WFICommon.exposure_group_time]
exposure_time:
title: Exposure Time (s)
description: |
The time between the start of the first Reset/Read Science Frame of an
Exposure and the completion of the final Read Only Science Frame of that
Exposure.
type: number
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: float
destination: [WFIExposure.exposure_time, GuideWindow.exposure_time, WFICommon.exposure_time]
ma_table_name:
title: MA Table Name
description: |
The name of the MultiAccum table used for this exposure, as defined in the
Project Reference Database.
type: string
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nvarchar(50)
destination: [WFIExposure.ma_table_name, GuideWindow.ma_table_name, WFICommon.ma_table_name]
ma_table_number:
title: MA Table Number
description: |
The number of the MultiAccum table used for this exposure. Used in
matching exposures to their corresponding calibration data.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: smallint
destination: [WFIExposure.ma_table_number, GuideWindow.ma_table_number, WFICommon.ma_table_number]
read_pattern:
title: Read Pattern
description: |
Enumeration of detector reads to resultants making up the L1 data
downlinked from the observatory.
type: array
items:
type: array
items:
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nvarchar(3500)
destination: [WFIExposure.read_pattern, GuideWindow.read_pattern, WFICommon.read_pattern]
propertyOrder: [type, start_time,
ngroups, nframes, data_problem,
frame_divisor, groupgap, frame_time, group_time, exposure_time,
ma_table_name, ma_table_number, read_pattern]
flowStyle: block
required: [type, start_time,
ngroups, nframes, data_problem,
frame_divisor, groupgap, frame_time, group_time, exposure_time,
ma_table_name, ma_table_number, read_pattern]
...
144 changes: 144 additions & 0 deletions src/rad/resources/schemas/base_guidestar-1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/base_guidestar-1.0.0

title: Base Guide star window information
type: object
properties:
gw_id:
title: Guide Star Window Identifier
description: |
Identification of the Guide Star Window.
type: string
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nvarchar(20)
destination: [WFIExposure.gw_id, GuideWindow.gw_id, WFICommon.gw_id]
gw_fgs_mode:
$ref: guidewindow_modes-1.0.0
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: nvarchar(18)
destination: [WFIExposure.gw_fgs_mode, GuideWindow.gw_fgs_mode, WFICommon.gw_fgs_mode]
data_start:
title: Guide Data Start Time (MJD)
description: |
Start time of the guide window data taken for this exposure as a Modified
Julian Date.
type: number
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: float
destination: [WFIExposure.data_start, GuideWindow.data_start, WFICommon.data_start]
data_end:
title: Guide Data End Time (MJD)
description: |
End time of the guide window data taken for this exposure as a Modified
Julian Date.
type: number
sdf:
special_processing: VALUE_REQUIRED
source:
origin: TBD
archive_catalog:
datatype: float
destination: [WFIExposure.data_end, GuideWindow.data_end, WFICommon.data_end]
gw_window_xstart:
title: Guide Window X Start Position (pixels)
description: |
Minimum X position in the science coordinate frame of all tracking guide
windows in this exposure measured in pixels.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_xstart, WFICommon.gw_window_xstart]
gw_window_ystart:
title: Guide Window Y Start Position (pixels)
description: |
Minimum Y position in the science coordinate frame of all tracking guide
windows in this exposure measured in pixels.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_ystart, WFICommon.gw_window_ystart]
gw_window_xstop:
title: Guide Window X Stop Position (pixels)
description: |
Maximum X position in the science coordinate frame of all tracking guide
windows in this exposure measured in pixels.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_xstop, WFICommon.gw_window_xstop]
gw_window_ystop:
title: Guide Window Y Stop Position (pixels)
description: |
Maximum Y position in the science coordinate frame of all tracking guide
windows in this exposure measured in pixels
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_ystop, WFICommon.gw_window_ystop]
gw_window_xsize:
title: Guide Window Size in the X Direction (pixels)
description: |
Size of a single tracking guide window in this exposure measured along the
X axis in units of pixels.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_xsize, WFICommon.gw_window_xsize]
gw_window_ysize:
title: Guide Window Size in the Y Direction (pixels)
description: |
Size of a single tracking guide window in this exposure measured along the
Y axis in units of pixels.
type: integer
sdf:
special_processing: VALUE_REQUIRED
source:
origin: Science Data Formatting
archive_catalog:
datatype: int
destination: [WFIExposure.gw_window_ysize, WFICommon.gw_window_ysize]

propertyOrder: [gw_id, gw_fgs_mode,
data_start, data_end, gw_window_xstart,
gw_window_ystart, gw_window_xstop, gw_window_ystop, gw_window_xsize,
gw_window_ysize]
flowStyle: block
required: [gw_id, gw_fgs_mode,
data_start, data_end, gw_window_xstart,
gw_window_ystart, gw_window_xstop, gw_window_ystop, gw_window_xsize,
gw_window_ysize]
...
Loading