-
Notifications
You must be signed in to change notification settings - Fork 75
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
[BUG] Cubeviz: Moment 2 fails for NIRSpec IFU cube processed with JWST pipeline #947
Comments
Notes for dev who will work on this: np.sum(flux * (dispersion - m1) ** order, axis=axis) / m0 What in that equation has shape |
I am not sure exactly which file Patrick was using. I get a different traceback from a
|
To get moment 2 to work, I needed three different patches with the data that I have at hand. I can see if any of the patches is actually unnecessary if someone can give me a properly sanctioned NIRSpec IFU cube file. |
Update: @kecnry pointed me to https://www.stsci.edu/jwst/science-planning/proposal-planning-toolbox/simulated-data (thanks, Kyle!). Using NRS00001-S1S2-F290LP-G395H-04_1_491_SE_2021-10-29T12h15m00_noflat_s3d.fits from there, I only need this patch for Moment 2 calculation to work: |
Fixed upstream. |
The quick fix was reverted in favor for a more proper fix after specutils release. |
Describe the bug
When attempting to run the Moment Maps plugin on NIRSpec IFU data, the map is not created for Moment = 2, but the plugin works for Moment = 1, 0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Create Moment 2 map with no error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.4
ipython : 7.14.0
ipykernel : 5.3.0
jupyter client : 6.1.11
jupyter lab : not installed
nbconvert : 6.0.7
ipywidgets : 7.5.1
nbformat : 5.0.6
traitlets : 5.0.5
Package versions (please complete the following information):
macOS-10.15.7-x86_64-i386-64bit
Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, 07:56:27)
[Clang 9.0.1 ]
Numpy 1.18.5
astropy 4.3.1
specutils 1.4.1
spectral-cube 0.5.0
pyyaml 5.4.1
click 7.1.2
asteval 0.9.23
idna 2.10
traitlets 5.0.5
bqplot 0.12.30
bqplot-image-gl 1.4.4
glue-core 1.2.2
glue-jupyter 0.10.1
glue-astronomy 0.3.2
echo 0.5
ipyvue 1.5.0
ipyvuetify 1.8.1
ipysplitpanes 0.1.0
ipygoldenlayout 0.3.0
voila 0.2.6
vispy 0.6.6
Jdaviz 2.0.0
Additional context (e.g. data files)
Run on this PR: #547
🐱
The text was updated successfully, but these errors were encountered: