generate_spaxel_list#
- jdaviz.configs.default.plugins.model_fitting.fitting_backend.generate_spaxel_list(spectrum, spectral_axis_index=None)[source]#
Generates a list with tuples, each one addressing the (x,y) coordinates of a spaxel in a 3-D spectrum cube. If a mask is available, skip masked indices.
- Parameters:
- spectrum
specutils.Spectrumor numpy array The spectrum that stores the cube in its
'flux'attribute, or a simple numpy array of values.
- spectrum
- Returns:
- spaxelslist
List with spaxels