-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feature request: ability to plot slices of a DataCube #592
Comments
Hi @followthesheep, Can you provide a bit more details on how you imagine this happening? Do you want to create a Map-like object based on a single spectral channel (e.g., the 6564A channel from the data cube) or do you want to provide a spectral range and create a map based on the sum or median or the channels in the range? I can see the former case being dangerous from a science point of view but overall I think this is an idea worth exploring. Can you provides some more details of the science goal you're trying to achieve? That would help us define the best way to implement this. |
In one example he showed me it was something like
which returns a |
Without having given it a lot of thought I think we want to be careful about that. A single channel may be representative for quick visualisation but it's not something that should (ever?) be use for science. I think we want to implement this but checking with the DAP guys to be sure don't facilitate a misuse of the data. |
I'm not really sure I understand the argument about 'misusing' the data. I
find it incredibly useful to use single channels of IFU data. It is often
useful for very narrow lines or to look for systematic uncertainties like
bad pixels. I find it helps to understand the data better. Integrating
multiple channels is also useful, but not in all use cases.
This may not be a feature that MaNGA wants to implement, but I would like
to suggest that it is a mode that users are likely to want, and may
implement themselves.
…On Wed, Jan 9, 2019 at 1:38 PM José Sánchez-Gallego < ***@***.***> wrote:
Without having given it a lot of thought I think we want to be careful
about that. A single channel may be representative for quick visualisation
but it's not something that should (ever?) be use for science. I think we
want to implement this but checking with the DAP guys to be sure don't
facilitate a misuse of the data.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#592 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADHfP-Pb9Af-5Nb-kZRiy7WweER6rw78ks5vBkpmgaJpZM4Z0eSK>
.
|
My unsolicited 2p: What Tuan is suggesting is perfectly reasonable, but a couple thoughts that the Marvin folks should weigh in on:
|
I think viewing a cube slice is reasonable but I think this could creep into becoming a cube viewer, with all the encompanying functionality, which I think we want to avoid. I think we also want to maintain the differentiation from a DAP MAPS, which is an official product we trust and a cube slice, which I'd caution against using. We could create a new simple I think we shouldn't make it impossible to plot a slice, so if there's something like Quantities currently preventing that, we should look into it. @followthesheep I tried this and it seemed to work. Is this what you tried that created an error with the Quantities?
Once we start talking about adding a |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It would be useful to be able to plot slices of a DataCube object. There are capabilities to plot predefined maps, but it would be useful to be able to plot individual spectral channels too.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Possibly use the same system as Map when returning a spectral channel so features like plotting would work.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Currently, I am slicing the flux object from the DataCube casting the slice into a numpy array before using imshow. Note that using imshow directly on the slice does not work because of astropy Quantities.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: