Skip to content

Commit

Permalink
Document input/output units in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Jan 16, 2025
1 parent e3cf85d commit 2b7a04a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ properties:
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/reference_files/ref_common-1.0.0
- type: object

input_units: "pixel"
output_units: "arcsec"

properties:
reftype:
type: string
enum: [DISTORTION]
- $ref: asdf://stsci.edu/datamodels/roman/schemas/reference_files/ref_optical_element-1.0.0
coordinate_distortion_transform:
title: Distortion Transform Model
title: Distortion Transform Model with inputs in "pixel" and outputs in "arcsec"
description: |
The astropy.modeling.Model instance of of the distortion transform model.
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ properties:
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/reference_files/ref_common-1.0.0
- type: object

input_units: "DN"
output_units: "DN"

properties:
reftype:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ properties:
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/reference_files/ref_common-1.0.0
- type: object

input_units: "DN"
output_units: "DN"

properties:
reftype:
type: string
Expand Down
4 changes: 4 additions & 0 deletions src/rad/resources/schemas/reference_files/refpix-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ properties:
allOf:
- $ref: asdf://stsci.edu/datamodels/roman/schemas/reference_files/ref_common-1.0.0
- type: object

input_units: "DN"
output_units: "DN"

properties:
reftype:
type: string
Expand Down

0 comments on commit 2b7a04a

Please sign in to comment.