GaussianSmooth#
- class jdaviz.configs.default.plugins.gaussian_smooth.gaussian_smooth.GaussianSmooth(*args, **kwargs)[source]#
Bases:
PluginTemplateMixin,DatasetSelectMixin,AddResultsMixinSee the Gaussian Smooth Plugin Documentation for more details.
Only the following attributes and methods are available through the public plugin API:
dataset(DatasetSelect): Dataset to use for computing line statistics.mode(SelectPluginComponent) Only available for Cubeviz. Whether to use spatial or spectral smoothing.stddevStandard deviation of the gaussian to use for smoothing.add_results(AddResults)
Public constructor
Attributes Summary
An instance of a Python list.
A trait for unicode strings.
A boolean (True, False) trait.
Mixin to handle empty floating point field.
Methods Summary
smooth([add_data])Smooth according to the settings in the plugin.
Use astropy convolution machinery to smooth the spatial dimensions of the data cube.
Smooth the input spectrum along the spectral axis.
vue_apply([event])Attributes Documentation
- mode_items#
An instance of a Python list.
- mode_selected#
A trait for unicode strings.
- show_modes#
A boolean (True, False) trait.
- stddev#
Mixin to handle empty floating point field.
- template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/3978/lib/python3.11/site-packages/jdaviz/configs/default/plugins/gaussian_smooth/gaussian_smooth.py', 'gaussian_smooth.vue')#
- user_api#
Methods Documentation
- smooth(add_data=True)[source]#
Smooth according to the settings in the plugin.
- Parameters:
- add_databool
Whether to add the resulting trace to the application, according to the options defined in the plugin.
- Returns:
- spec
Spectrum The smoothed spectrum or data cube
- spec
- spatial_smooth()[source]#
Use astropy convolution machinery to smooth the spatial dimensions of the data cube. To add the resulting cube into the app, set label options and use
smooth()instead.- Returns:
- cube
Spectrum The smoothed cube
- cube