-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect loaded mask cube properly in spectral extraction. #3319
base: main
Are you sure you want to change the base?
Conversation
209915f
to
bab8070
Compare
bab8070
to
6ee7daf
Compare
@@ -22,6 +22,7 @@ class Cubeviz(CubeConfigHelper, LineListMixin): | |||
|
|||
_loaded_flux_cube = None | |||
_loaded_uncert_cube = None | |||
_loaded_mask_cube = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe give @javerbukh co-author credit given #2718 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code itself looks good to me - just a few workflow related questions to consider:
Do we want (now or as a a follow-up ticket) to have a dropdown to select the mask cube? Should the default be to apply the mask or to not apply it?
What happens if the intersection between an aperture and the mask results in no pixels?
Should the mask be used in other plugins as well (aperture photometry, moment map, collapse, etc)?
I think that if it is used, it should be used everywhere (it can be a follow up issue). Can there maybe be an option at load_data to load AND use the mask? I would not set it to use by default, but maybe there could be a warning at loading like "there is a mask extension, if you want to load it do blah" |
Visualize the mask cube would be very useful! |
Fixes #3312.
Close #2718