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

DM-47002: Add pixelScale and PSF model delta metrics to ConsDB schemas #266

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laurenam
Copy link
Contributor

No description provided.

@JeremyMcCormick
Copy link
Collaborator

JeremyMcCormick commented Oct 21, 2024

It seems as though imsim.yaml should have been updated and not apdb.yaml, as the ticket description mentions "LSSTComCam[Sim]" and not APDB.

If this is the case, please fix and leave the update as a separate commit from the ConsDB changes, mentioning that you are adding these fields to imsim in the commit message.

(Should I be mistaken here, please let me know, and I'll clear my review.)

@JeremyMcCormick JeremyMcCormick changed the title DM-47002: Add pixelScale and PSF model delta metrics to consDB schemas DM-47002: Add pixelScale and PSF model delta metrics to ConsDB schemas Oct 21, 2024
Copy link
Collaborator

@JeremyMcCormick JeremyMcCormick left a comment

Choose a reason for hiding this comment

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

@laurenam
Copy link
Contributor Author

Ah, sorry for the confusion. In working on this ticket I just happened to notice that apdb.yaml was missing the pixelScale entry. imsim.yaml already has it (as well as the two other metrics being added on this ticket), so does not require any update. I've split that change into a separate commit, but if it somehow adds a complication for this ticket, I can remove it and put it on another ticket.

And thanks for giving this a look!

@JeremyMcCormick
Copy link
Collaborator

Ah, sorry for the confusion. In working on this ticket I just happened to notice that apdb.yaml was missing the pixelScale entry. imsim.yaml already has it (as well as the two other metrics being added on this ticket), so does not require any update. I've split that change into a separate commit, but if it somehow adds a complication for this ticket, I can remove it and put it on another ticket.

And thanks for giving this a look!

Thank you for the clarification. I've cleared my review.

I'm going to have @andy-slac look at this just to confirm the APDB change.

yml/apdb.yaml Outdated
'@id': '#DetectorVisitProcessingSummary.pixelScale'
datatype: float
description: Measured detector pixel scale (arcsec/pixel).
fits:tunit:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this could be arcsec/pixel here. (That is a valid unit.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, really? When I first tried looking into this, it didn't seem to be...very happy to hear it is! I'll update this everywhere.

- name: pixel_scale
"@id": "#visit1_quicklook.pixel_scale"
datatype: float
description: Measured detector pixel scale (arcsec/pixel).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So here is it:
ivoa:unit: arcsec/pixel
(as opposed to fits:tunit: arcsec/pixel above. In truth, I have no idea what the criterion is for using one or the other, I'm just trying to follow the established pattern!)?

Copy link
Collaborator

Choose a reason for hiding this comment

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

So here is it: ivoa:unit: arcsec/pixel (as opposed to fits:tunit: arcsec/pixel above. In truth, I have no idea what the criterion is for using one or the other, I'm just trying to follow the established pattern!)?

This is up to you really if you want to include these as units, but it is preferable to specify units using the appropriate fields if possible rather than putting this in the description.

Also, please use ivoa:unit rather than fits:tunit. At some point we'll be converting all the fits:tunit fields to ivoa:unit. (This is something someone did originally which was copied but we actually use IVOA units so it is more correct to use this field instead.)

Copy link
Collaborator

@JeremyMcCormick JeremyMcCormick left a comment

Choose a reason for hiding this comment

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

This looks okay from Data Engineering perspective.

You may also want to seek another review from a ConsDB systems expert as well who is more familiar with the columns being added.

@andy-slac
Copy link
Contributor

I'm going to have @andy-slac look at this just to confirm the APDB change.

I don't think I'm qualified to comment on science content of apdb.yaml. If that column needs to be a part of DetectorVisitProcessingSummary, then certainly no objections from my side. Note that usually updates to APDB schema also require increment of the schema version (defined at the top of the file). DetectorVisitProcessingSummary is sort of special in a sense that we are not creating it yet. Still, I think it would be better to change version: "2.0.0" to version: "2.0.1" in case we'll need to do something special about it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants