Open rcooper295 opened 6 days ago
I think we'd like the following FITS keywords to be defined in the NRMModel schema:
I've just copied these as they appear in the header currently. I think for the schema since we don't have the same character limits we could expand "f2f" to be "flat_to_flat". I'll also change the FITS comment for each keyword to match the 1-indexing in the names (apertures 1-7 instead of 0-6), but I think the other keyword names are ok as-is.
I can open a JWSTKD project JIRA ticket to get these added to the keyword dictionary as well, and I'll look at adding them to the NRMModel schema. Do I just need to add a block like:
- type: object
properties:
meta:
type: object
properties:
flat_to_flat:
type: object
required: [f2f]
nrm_x_a1:
type: object
required: [nrm_x_a1]
[...]
required: [flat_to_flat, nrm_x_a1, ...]
required: [meta]
Thanks!
Are these only for the NRMModel reference file? If so, there's no need for a keyword dictionary ticket (as that resource doesn't list reference file keywords).
As far as the schema update, if it works for you I'll open a PR with proposed changes and ping you for review/testing.
The example changes are on the right track but are missing fits_keyword
entries, etc.
@rcooper295 How does https://github.com/spacetelescope/stdatamodels/pull/361 look?
Are these only for the NRMModel reference file? If so, there's no need for a keyword dictionary ticket (as that resource doesn't list reference file keywords).
Yes, these are only for this reference file. Ok, I think I get it -- so the keyword dictionary only needs to have keywords that are in data products, but there are datamodel schemas for reference files as well as data products, and some individual keywords as well?
Exactly! The reference files datamodels use different schemas than the science product datamodels. The latter are the only ones that contain fits keywords that are also covered by the keyword dictionary.
I just merged a PR with docs updates that are relevant here: https://stdatamodels.readthedocs.io/en/latest/jwst/datamodels/schemas.html
Discussion originating on https://github.com/spacetelescope/stdatamodels/issues/342) with @braingram :
We concluded the values we need should be added to the NRMModel schema and therefore the keyword dictionary. I will confirm with other AMI team members what we want to call the attribute names (if different from the current FITS keyword names).