ginga
ginga copied to clipboard
Feature Request: Save current state of Ginga session
Someone asked if it is possible to save the state of the current Ginga session, which includes but not limited to:
- Ginga layout like number of channels, channel names, and arrangement.
- Images opened, pointing, scaling, stretched, etc.
- Plugins being used and their parameters.
The use case was to recreate some pain-stakingly hand-created chart with object of interest highlighted in 8 different observations using different telescopes for publication.
I told the user that Ginga might not be the best solution for such a thing (i.e., maybe fully script it using matplotlib
, reproject
, etc) but I'll just open an issue anyway.
I actually have this on my wish list as well. However, I think the session parameters that are saved would be somewhat restricted to make it practical. Maybe something like 1) only or 1) plus names and locations of images.
I agree that probably something should be scripted to produce a publication plot. They could certainly script a ginga widget if PNG output is acceptable.
They could certainly script a ginga widget if PNG output is acceptable.
In that case, an example for people to start with would be nice. The use case presented to me was the following:
- Display four squares centered around object of interest. Each square (image) have different contrast/stretch to highlight the object optimally. Each image is from a different telescope/instrument, hence different pixel scale, background counts, pointing, etc; Using
WCSMatch
can align them but something else need to scale them to match each other. - Draw a circle around object of interest.
- Save to file.
(Might have forgotten some small details...)