spacetelescope / jdaviz

JWST astronomical data analysis tools in the Jupyter platform
https://jdaviz.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
142 stars 74 forks source link

[FEAT] Always indicate spectral subregions for the spectrum-at-spaxel tool #3294

Open james-trayford opened 3 hours ago

james-trayford commented 3 hours ago

Jdaviz component

Cubeviz

What is the problem this feature will solve?

When selecting a spectral region it can be useful to keep track of how the spectra may change spaxel-to-spaxel in that region. From what I understand these are indicated on the integrated spectrum and also at the y=0 line in the spectrum viewer, but where the y=0 line and the integrated spectrum fluxes lie outside the spaxel spectrum's y-axis range (usually below and above the range, respectively), this indication is lost.

Describe the desired outcome

I think either having:

Additional context

No response

camipacifici commented 3 hours ago

Good point! Thank you. Adding it to the list.

Thinking ahead, if we treat the sonified cubes as data items, we will not need to use the spectrum at spaxel tool anymore. But we might want to still visualize the individual spectra. What do you think?

james-trayford commented 1 hour ago

Yes, true. I think having these as independent data items would be great - I suppose if you want to see the spectrum change with the sound you can turn on the SaS tool. As this is working with spectral regions now it should be easier to make it totally independent.