Open keflavich opened 10 years ago
Right, figures I made this as a feature request... see https://groups.google.com/forum/#!topic/glue-viz/2R5-PZdy-Lc now
There hasn't been any recent work on this, but @astrofrog has been refactoring some of the image utilities as self contained tools (#475). My work over the next few months is going to focus on additional modularity improvements like this, such that new features like ds9 region overlay are easier to add without digging into the logic of the image widget. I can use this as a test case
I'd be happy to look into this while working on https://github.com/glue-viz/glue/issues/488
This isn't going to be straightforward to do in a general way. We might want to have a generic way to load a selection ROI from file, and have different readers be registered for different formats.
Do we have any updates on this issue? If the ds9 regions format are complex to handle, could we start from adding an icon to ImageViewer
and only load box
regions as PolygonROI
? @astrofrog
@PennyQ - the issue is not so much how to read the regions (there are packages that will read in any shape) but more the fact that this is a very astronomy specific thing and we don't want to have non-astronomy users have their viewer cluttered with this. But maybe we can make it a plugin for now and then people can install it if they need it. I'll try and look into this and will let you know how/where to get started.
It would be great if glue could load ds9 region files and use them to define selections (and/or just display them). For now, pyregion should be used, but in the long term that may get ported to astropy.