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-175: Add ePSF, ABVegaOffset, and ApCorr Schemas #452

Merged
merged 9 commits into from
Oct 11, 2024
1 change: 1 addition & 0 deletions changes/452.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added ePSF, ABVegaOffset, and ApCorr schemas
15 changes: 15 additions & 0 deletions src/rad/resources/manifests/datamodels-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@ tags:
description: |-
Mosaic WCS parameters
# Reference Modules
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/abvegaoffset-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/abvegaoffset-1.0.0
title: AB Vega Offset reference schema
description: |-
AB Vega Offset reference schema
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/apcorr-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/apcorr-1.0.0
title: Aperture correction reference schema
description: |-
Aperture correction reference schema
- 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
title: Dark reference schema
Expand All @@ -171,6 +181,11 @@ tags:
title: Distortion reference schema
description: |-
Distortion reference schema
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/epsf-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/epsf-1.0.0
title: ePSF reference schema
description: |-
ePSF reference schema
- tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/flat-1.0.0
schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/flat-1.0.0
title: Flat reference schema
Expand Down
137 changes: 137 additions & 0 deletions src/rad/resources/schemas/reference_files/abvegaoffset-1.0.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
%YAML 1.1
---
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
id: asdf://stsci.edu/datamodels/roman/schemas/reference_files/abvegaoffset-1.0.0

title: AB Vega Offset Reference File Schema

datamodel_name: AbvegaoffsetRefModel

type: object
properties:
meta:
allOf:
- $ref: ref_common-1.0.0
- type: object
properties:
reftype:
type: string
enum: [ABVEGAOFFSET]
data:
type: object
properties:
DARK:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the DARK optical element bandpass.
type: number
required: [abvega_offset]
F062:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F062 optical element bandpass.
type: number
required: [abvega_offset]
F087:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F087 optical element bandpass.
type: number
required: [abvega_offset]
F106:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F106 optical element bandpass.
type: number
required: [abvega_offset]
F129:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F129 optical element bandpass.
type: number
required: [abvega_offset]
F146:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F146 optical element bandpass.
type: number
required: [abvega_offset]
F158:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F158 optical element bandpass.
type: number
required: [abvega_offset]
F184:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F184 optical element bandpass.
type: number
required: [abvega_offset]
F213:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the F213 optical element bandpass.
type: number
required: [abvega_offset]
GRISM:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the GRISM optical element bandpass.
type: number
required: [abvega_offset]
PRISM:
type: object
properties:
abvega_offset:
title: AB-Vega Magntiude Offset
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the PRISM optical element bandpass.
type: number
required: [abvega_offset]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tddesjardins , just for my edification, we do not currently ever plan to use these in the pipeline? These are the integrals over the full grism data, so that if that were a magnitude we ever computed, this would be the AB-Vega magnitude offset?

Choose a reason for hiding this comment

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

I am not aware of anything in the exposure or mosaic pipelines that would use this file. I was just chatting with Will, and I think in theory this could be used for L4 source catalogs or for user reference. (Frankly, I was questioning why this information just isn't in the photom file.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree that the AB - Vega offsets could also go in the photom files. If we're duplicating Webb that's fine motivation for keeping it separate, but I agree that this is very parallel to the information in the photom files.

Choose a reason for hiding this comment

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

It is my understanding that this is what Webb did, but I would be in favor of combining the reference files instead of having 1 very basic file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

required: [DARK, F062, F087, F106, F129, F146, F158, F184, F213, GRISM, PRISM]
required: [meta, data]
flowStyle: block
propertyOrder: [meta, data]
...
Loading