ejeschke / ginga

The Ginga astronomical FITS file viewer
BSD 3-Clause "New" or "Revised" License
121 stars 77 forks source link

Feature Request: Save current state of Ginga session #482

Open pllim opened 7 years ago

pllim commented 7 years ago

Someone asked if it is possible to save the state of the current Ginga session, which includes but not limited to:

  1. Ginga layout like number of channels, channel names, and arrangement.
  2. Images opened, pointing, scaling, stretched, etc.
  3. 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.

ejeschke commented 7 years ago

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.

pllim commented 7 years ago

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:

  1. 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.
  2. Draw a circle around object of interest.
  3. Save to file.

(Might have forgotten some small details...)