Skip to content
Open
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
1 change: 1 addition & 0 deletions changes/788.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated schemas for CGI Ancillary Data Products, minor updates to INSTRUME keyword in schemas
41 changes: 24 additions & 17 deletions latest/SSC/CGI/keywords/cgi_ancillary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,38 @@ extName: SSC

type: object
properties:
SOURCE:
title: Ancillary source
description: LOCAM, DM1
ANCTYPE:
title: Ancillary type
description: Type of ancillary file.
type: string
maxLength: 30
maxLength: 5
archive_catalog:
datatype: nvarchar(30)
destination: [CGIAncillary.ancillary_source]
datatype: nvarchar(5)
destination: [CGIAncillary.ancillary_type]

PKTUTC:
title: Packet timestamp
description: Packet timestamp (UTC)
allOf:
- $ref: http://stsci.edu/schemas/asdf/time/time-1.3.0#/definitions/iso_time
MJDSTART:
title: Start Time MJD
description: Approximate start time in MJD.
type: number
archive_catalog:
datatype: datetime2
destination: [CGIAncillary.packet_timestamp]
datatype: float
destination: [CGIAncillary.start_time_mjd]

MJDEND:
title: End Time MJD
description: Approximate end time in MJD.
type: number
archive_catalog:
datatype: float
destination: [CGIAncillary.end_time_mjd]

INSTRUME:
title: Instrument
description: Instrument used
description: Instrument shorthand.
type: string
maxLength: 8
maxLength: 3
archive_catalog:
datatype: nvarchar(8)
datatype: nvarchar(3)
destination: [CGIAncillary.instrument_name]

required: [SOURCE, PKTUTC, INSTRUME]
required: [ANCTYPE, MJDSTART, MJDEND, INSTRUME]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we should plan to report "INSTRUME" in the metadata?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for consistency and since it's easy, let's do that.

6 changes: 3 additions & 3 deletions latest/SSC/CGI/keywords/cgi_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ properties:
destination: [CGIExposure.fswdvers, CGIMosaic.fswdvers]
INSTRUME:
title: Instrument
description: Instrument shorthand
description: Instrument shorthand.
type: string
maxLength: 8
maxLength: 3
archive_catalog:
datatype: nvarchar(8)
datatype: nvarchar(3)
destination: [CGIExposure.instrument_name, CGIMosaic.instrument_name]
PROGNUM:
title: Program number
Expand Down