Description
Dear Ginga Developers,
We have been developing the PypeIt spectroscopic data reduction package (see https://arxiv.org/abs/2005.06505) and we use ginga as our data visualization viewer. We are anticipating widespread adoption by spectroscopists. Four viewing spectra, it would be very valuable if we could display the wavelengths as a second set of values as we move the cursor around the image, analogous to the alpha and delta WCS coordinates. Currently in order to get this to work we have to use an unpleasant hack, i.e in RC mode:
ch.load_np(chname, img, 'fits', header, wcs_image='wavelengths.fits')
Which then allows us to display wavelengths instead of the WCS. Besides being clunky, i.e. we have to write out the wavlengths.fits file, this also had the unwanted side-effect of then breaking the WCSMatch feature, when we want to display multiple registered images (i.e. raw data and sky-subtracted spectra) next to each other.
We would greatly appreciate an option like to simply pass in an image
ch.load_np(chname, img, 'fits', header, waveimg = waveimg)
That would allow us to display the wavelength image directly with "Wavelength" being currently displayed as alpha and delta are.
Would it be possible to add such functionality? We realize this could probably be accommodated with a plugin, but we have thus far not been able to venture that deeply into the ginga source to figure out how to do so.
Many Thanks,
Joe Hennawi on behalf of the PypeIt team