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

Add WCS to schemas #351

Merged
merged 11 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
5 changes: 5 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 @@ -16,6 +16,11 @@ properties:
- $ref: common-1.0.0
- type: object
properties:
wcs:
title: WCS object
anyOf:
- tag: tag:stsci.edu:gwcs/wcs-1.0.0
nden marked this conversation as resolved.
Show resolved Hide resolved
- type: "null"
photometry:
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
source_detection:
Expand Down
5 changes: 5 additions & 0 deletions src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ properties:
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
resample:
tag: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
wcs:
title: WCS object
anyOf:
- tag: tag:stsci.edu:gwcs/wcs-1.1.0
- type: "null"
required: [photometry]
data:
title: Science data, excluding border reference pixels.
Expand Down
2 changes: 2 additions & 0 deletions tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def valid_tag_uris(manifest):
"tag:stsci.edu:asdf/unit/quantity-1.1.0",
"tag:stsci.edu:asdf/unit/unit-1.0.0",
"tag:astropy.org:astropy/units/unit-1.0.0",
"tag:stsci.edu:gwcs/wcs-1.0.0",
"tag:stsci.edu:gwcs/wcs-1.1.0",
]
)
return uris
Expand Down