-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix incorrect parsing of the ATCA FITS header #1376
Conversation
Should the original ctype value VELO-XXX also be unchanged? The issue requested the original header. I think I wrote this code, not sure why I changed the value but maybe a casacore issue at the time. Also if the SPECSYS header is read before the CTYPE header, then the specsys string will be replaced with the CTYPE value, which is not what we want. Starting at line 319 in this branch FileExtInfoLoader.cc:
|
… exists in the image header
I noticed that if I do not remove the string after VELO (from the original VELO-XXX), the x-label of the spectral profile plot can not be shown normally. Like the following snapshot: with "CTYPE3 = VELO" the x-label is normally shown: Not sure if this is the AST problem, or just the frontend code issue(?) @kswang1029 @TienHao do you have comments on it? |
Yeah, the frontend code needs to be modified for VELO-XXX. It does not give spectral type name for VELO-XXX. @kswang1029, do VELO-XXX have the same spectral type name and unit just like VELO? or they should have other names? |
Yes just like VELO. The VELO-XXX is a (old?) way to encode the spectral reference frame. We still refer CUNIT3 for the unit. |
I approved the code review, and will leave it up to the others whether to keep the change to "VELO" or show the actual CTYPE header value. It sounds like the suffix is outdated, does not add any information since SPECSYS is defined, and requires a workaround for the spectral profile. |
Since the frontend is working with CTYPE3 = VELO in the current PR(no VELO-XXX is sent through headers), I think there is no need to change in the frontend for the spectral type name now. |
Does this PR still need frontend changes? |
I will check and report back. |
No, we do not need a corresponding frontend change. 👍 |
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.
issue fixed. no regression from e2e tests. corresponding frontend change is not needed.
@confluence ready to merge after fixing the changelog conflict. |
|
Description
What is implemented or fixed? Mention the linked issue(s), if any.
Closes incorrect trimmed velocity header of ATCA FITS images #1375.
How does this PR solve the issue? Give a brief summary.
The value of SPECSYS from the ATCA FITS header is already provided. So we don't need to parse it from the suffix of VELO-XXX (the string after '-'), which would also result in the failure rendering of the coordinate system.
Are there any companion PRs (frontend, protobuf)?
No.
Is there anything else that testers should know (e.g. exactly how to reproduce the issue)?
The coordinate system for ATCA FITS images can be successfully rendered on the frontend.
Checklist
/ no changelog update neededprotobuf updated to the latest dev commit /no protobuf update neededprotobuf version bumped /protobuf version not bumped