gphoton-tools / ggui

gPhoton glue user interface.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Using Catalog GUI in Ginga using Ginga-Glue plugin #21

Open pllim opened 7 years ago

pllim commented 7 years ago

Ginga viewer: http://ginga.readthedocs.io/en/latest/ https://github.com/ejeschke/ginga/

Glue-Ginga plugin: https://github.com/ejeschke/glue-ginga/

How to use Catalog plugin in Ginga (not well documented yet): ejeschke/ginga#52 https://github.com/ejeschke/ginga/blob/master/ginga/rv/plugins/Catalogs.py https://github.com/spacetelescope/stginga/blob/master/stginga/examples/configs/ginga_config.py

Not very sure how to use your custom MAST query in but one possibility is to write your own server class (e.g., see AstropyCatalogServer in https://github.com/ejeschke/ginga/blob/master/ginga/util/catalog.py), utilize MAST API in Astroquery (see http://astroquery.readthedocs.io/en/latest/mast/mast.html), and then use that class in ginga_config.py (example given above).

scfleming commented 7 years ago

Thanks! This will be neat to experiment with.

pllim commented 7 years ago

Here are some screen shots of the plugin in action for a cone search of HST Guide Star Catalog 1.2 around selected rectangle for that image shown in the presentation.

screenshot from 2017-08-16 15-37-55

screenshot from 2017-08-16 15-35-23

p.s. If Qt is giving you headache, Ginga plugin is written in a way that is toolkit-agnostic. In fact, Ginga supports both GTK and Qt.