-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
It seems as though 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 (Should I be mistaken here, please let me know, and I'll clear my review.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #266 (comment)
a170994
to
391396f
Compare
Ah, sorry for the confusion. In working on this ticket I just happened to notice that 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: |
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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.
yml/cdb_latiss.yaml
Outdated
- name: pixel_scale | ||
"@id": "#visit1_quicklook.pixel_scale" | ||
datatype: float | ||
description: Measured detector pixel scale (arcsec/pixel). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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!)?
There was a problem hiding this comment.
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 tofits: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.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used ivoa:unit
for the cdb_*.yaml
files, but fits:tunit
for apdb.yaml
since every other entry in that file uses it (we are trained for consistency within a file 😉).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still on our list to unify the usage. For now I agree with your approach of keeping it consistent within a given file.
391396f
to
44a81ed
Compare
44a81ed
to
19ff1c1
Compare
There was a problem hiding this 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.
I don't think I'm qualified to comment on science content of |
19ff1c1
to
c5d658f
Compare
Heh, yeah, here's how I described them (https://github.com/lsst/analysis_tools/blob/main/python/lsst/analysis/tools/atools/calexpMetrics.py#L64-L65):
(the former is because it's a measurement of a PSF model, and I guess the latter should really add "scaled by psfSigma (which is in pixels)"). I couldn't come up with a precise unit, so figured it was best to leave them blank. Thanks for taking this on! |
No description provided.