spacetelescope / specviz

An interactive astronomical 1D spectra analysis tool.
http://specviz.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 31 forks source link

arithmetic problems with dataset from a cube #693

Closed hcferguson closed 5 years ago

hcferguson commented 5 years ago

I'm working in cubeviz with the dataset cwi-cube: SCI-GUM43_SCI_COMBINED_7 from the /astro/3/jwst_da_sprint_testdata/IFU_datacubes/KMOS directory. (I read this with the kmos reader, so a hint at the source of this problem might be that it's coming up labeled cwi-cube after it's read in.

Anyway, I select a subset, fit model in specviz, and go to normalize by it using the specviz arithmetic. The operation I'm trying is just {data}/{model}.

I've encountered a couple problems...

(1) It complains about the name cwi-cube: SCI-GUM43_SCI_COMBINED_7. It stops complaining if I rename the specviz component to data.

(2) After renaming my subsets to data and model I get the following error in red in the arithmetic gui, right after I add the model component: with_spectral_unit() missing 2 required positional arguments: 'rest_value' and 'velocity_convention'.

nmearl commented 5 years ago

This issue is waiting on a specutils release (it's fixed in latest dev).