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

relative coordinates to a given point #681

Open
jott3077 opened this issue Nov 25, 2019 · 3 comments · May be fixed by #2370
Open

relative coordinates to a given point #681

jott3077 opened this issue Nov 25, 2019 · 3 comments · May be fixed by #2370
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jott3077
Copy link

A user request: add an option for a drop pin to which all coordinates are referenced to, so the viewer panel show relative and absolute coordinates.

@Kechil Kechil transferred this issue from CARTAvis/carta-backend Jan 22, 2020
@Kechil Kechil transferred this issue from CARTAvis/carta-frontend Jan 22, 2020
@Kechil Kechil transferred this issue from CARTAvis/carta-backend Jan 22, 2020
@Kechil
Copy link

Kechil commented Aug 25, 2020

can explore with a python ast interface

@kswang1029
Copy link
Collaborator

the AST user manual
8.8 Representing Offsets from a Specified Sky Position
provides some clues.

As an alternative (instead of changing the entire grid coordinate system), we can use the trick from the region projection by generating a big "cross" with consideration of projection effect as an overlay on the image.
spass_dr1_1902_ait_Tb.i.fits-image-2020-9-22-11-17-5.png

@kswang1029 kswang1029 removed their assignment Dec 10, 2020
@kswang1029 kswang1029 added the enhancement New feature or request label Jun 8, 2021
@kswang1029
Copy link
Collaborator

kswang1029 commented Nov 12, 2023

Solution found (via AST directly)

To do so, we can make a fake header with CTYPE1/2 as "LINEAR", then the axes will become a linear one. The custom reference pixel can be set with CRPIX1/2. The delta angular distance is referred from CDELT1/2 as a constant. Therefore, if the raw image has projection distortion, the computed offset axes will have significant errors (because the axes are nonlinear actually). If we adopt this trick, we will need to pop a warning to users when the image has visible projection distortion.

CARTA_AST_offset_axes 001
CARTA_AST_offset_axes 002

@kswang1029 kswang1029 added this to the v5.0-beta milestone Dec 11, 2023
@loveluthien loveluthien linked a pull request Apr 21, 2024 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Backlog
Status: Backlog
Development

Successfully merging a pull request may close this issue.

4 participants