-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
ra/dec in degree in cursor WCS value #100
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I am guessing you are using the Ginga backend? Are you using a released version of |
Hi! I'm probably using the released version. Just the one that automatically pip installed. |
But regardless, yes, I don't think it is possible for user to customize the display format without tinkering with the code. What you can do for now is to subclass the widget and then overwrite this: astrowidgets/astrowidgets/core.py Lines 211 to 214 in 2128835
|
Great.. that's what I was wondering.. Although I'm not quite sure how to subclass that through the ImageWidget I have. I'll try to dig a bit deeper. How do you call image = viewer.get_image() ? I see a _viewer attribute but it doesn't have a wcs attribute. |
It is a callback method used internally, so it will automagically find the WCS if your image has a valid WCS. When you subclass, you can redefine that method basically by copy-pasting and only modifying the string formatting portion. I hope this makes sense. |
Maybe I've missed it, but I don't think it's built into core.py. Can we have an option to switch the printed coordinate system info from hour angles to degrees. Thanks!
The text was updated successfully, but these errors were encountered: