Skip to content

What does cubeviz.specviz.get_spectra() do when multiple spatial/spectra Subsets exist? #1582

Answered by kecnry
pllim asked this question in Q&A
Discussion options

You must be logged in to vote

Not directly from a user-friendly API, no, although that is planned for future work (#1490 🐱). To do it manually, you could get the mask from subset 2 and apply it to the fully collapsed spectrum of subset 3 (that's how the highlighting is done under-the-hood by #1528). The "mask" can be accessed either from the subset object, or by checking isnan on the fluxes of the retrieved Subset 2 (in your case above).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pllim
Comment options

pllim Aug 18, 2022
Maintainer Author

Answer selected by pllim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested cubeviz
2 participants