Skip to content

Commit

Permalink
add source detection schema (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 authored Mar 24, 2023
2 parents d951488 + 06c40b0 commit 9cd32d1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

- Fix schemas with $ref at root level. [#222]

- Add schema for source detection. [#215]



0.14.1 (2023-01-31)
-------------------
Expand Down
5 changes: 5 additions & 0 deletions src/rad/resources/manifests/datamodels-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ tags:
title: Photometry information
description: |-
Photometry information
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/source_detection-1.0.0
title: Source catalog for TweakReg
description: |-
Source catalog for TweakReg
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/coordinates-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/coordinates-1.0.0
title: Coordinate frame information
Expand Down
11 changes: 9 additions & 2 deletions src/rad/resources/schemas/cal_step-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ properties:
archive_catalog:
datatype: nvarchar(15)
destination: [ScienceRefData.photom]
source_detection:
title: Source Detection Step
type: string
enum: ['N/A', 'COMPLETE', 'SKIPPED', 'INCOMPLETE']
archive_catalog:
datatype: nvarchar(15)
destination: [ScienceRefData.source_detection]
ramp_fit:
title: Ramp Fitting
type: string
Expand All @@ -69,8 +76,8 @@ properties:
archive_catalog:
datatype: nvarchar(15)
destination: [ScienceRefData.saturation]
propertyOrder: [assign_wcs, flat_field, dark, dq_init, jump, linearity, photom, ramp_fit, saturation]
propertyOrder: [assign_wcs, flat_field, dark, dq_init, jump, linearity, photom, source_detection, ramp_fit, saturation]
flowStyle: block
required: [assign_wcs, flat_field, dark, dq_init, jump, linearity, photom, ramp_fit, saturation]
required: [assign_wcs, flat_field, dark, dq_init, jump, linearity, photom, source_detection, ramp_fit, saturation]
additionalProperties: true
...
12 changes: 12 additions & 0 deletions src/rad/resources/schemas/source_detection-1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/source_detection-1.0.0

title: Source catalog generated by the Source Detection Step for TweakReg.
type: object
properties:
tweakreg_catalog_name:
type: string
flowStyle: block
...
2 changes: 2 additions & 0 deletions src/rad/resources/schemas/wfi_image-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ properties:
properties:
photometry:
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
source_detection:
tag: asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0
required: [photometry]
data:
title: Science data, excluding border reference pixels.
Expand Down

0 comments on commit 9cd32d1

Please sign in to comment.