diff --git a/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py b/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py index a6ce0edec0..e804f37240 100644 --- a/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py +++ b/jdaviz/configs/specviz2d/plugins/spectral_extraction/spectral_extraction.py @@ -14,6 +14,7 @@ from jdaviz.core.marks import PluginLine from astropy.nddata import UnknownUncertainty +from astropy import units from specreduce import tracing from specreduce import background from specreduce import extract @@ -880,6 +881,10 @@ def export_extract_spectrum(self, add_data=False, **kwargs): extract = self.export_extract(**kwargs) spectrum = extract.spectrum + # TEMPORARY: override spectral axis to be in pixels until properly supporting plotting + # in wavelength/frequency + spectrum._spectral_axis = np.arange(len(spectrum.spectral_axis)) * units.pix + if add_data: self.ext_add_results.add_results_from_plugin(spectrum, replace=False)