Closed SultanOrazbayev closed 2 months ago
Hello and thanks for opening the ticket :slightly_smiling_face:
This is not possible yet, but it is a good idea for a feature! We'll have a look at this.
Notes for implementation:
Thank you for the quick response!
From reading more about this, I see that astropy has some utils for converting degree to pixel (and back). However, they require WCS info, which can be loaded from FITS. In case of ipyaladin
can you tell me which WCS is used?
Hello,
There is an experimental branch feature-export-wcs
if you want to try it (clone the repo, switch to branch and pip install .
)
The use is documented in 2_Base_commands.ipynb
(looks like this)
from ipyaladin import Aladin
aladin = Aladin()
aladin
aladin.update_WCS()
aladin.wcs # returns a dictionnary with the WCS information
Won't merge yet due to two limitations:
This is very useful, thank you very much, @ManonMarchand !
No worries Some projections are still buggy but we're approaching a merge upstream :muscle:
Thank you, @ManonMarchand !
Was done by @Xen0Xys ;) You now have access to the WCS, see example 11. This should allow you to retrieve what you need, but don't hesitate to open a new issue if it does not work.
It's possible to add a bounding box/shape using
add_overlay_from_stcs
method onipyaladin
. However this requires specifying the coordinates using RA/DEC. Is it possible to specify the bounding box coordinates using pixels?