Rampviz#
- class jdaviz.configs.rampviz.helper.Rampviz(*args, **kwargs)[source]#
Bases:
CubeConfigHelperRampviz Helper class
Methods Summary
create_image_viewer([viewer_name, data])Create a new image viewer.
get_data([data_label, spatial_subset, ...])Returns data with name equal to
data_labelof typeclswith subsets applied fromtemporal_subset, if applicable.load_data(data[, data_label])select_group(group_index)Methods Documentation
- create_image_viewer(viewer_name=None, data=None)[source]#
Create a new image viewer.
- Parameters:
- Returns:
- viewer
ImvizImageView Image viewer instance.
- viewer
- get_data(data_label=None, spatial_subset=None, temporal_subset=None, cls=None, use_display_units=False)[source]#
Returns data with name equal to
data_labelof typeclswith subsets applied fromtemporal_subset, if applicable.- Parameters:
- data_labelstr, optional
Provide a label to retrieve a specific data set from data_collection.
- spatial_subsetstr, optional
Spatial subset applied to data. Only applicable if
data_labelpoints to a cube or image. To extract a spectrum from a cube, use the spectral extraction plugin instead.- temporal_subsetstr, optional
- cls
Spectrum,CCDData, optional The type that data will be returned as.
- Returns:
- datacls
Data is returned as type cls with subsets applied.
- load_data(data, data_label=None, **kwargs)[source]#
Deprecated since version 4.5: The load_data function is deprecated and may be removed in a future version. Use load instead.
Load and parse a data cube with Cubeviz. (Note that only one cube may be loaded per Cubeviz instance.)
- Parameters:
- datastr,
DataModel,NDDataArrayor ndarray A string file path, Roman DataModel object pointing to the data cube, an NDDataArray, or a Numpy array. If plain array is given, axes order must be
(x, y, z).- data_labelstr or
None Data label to go with the given data. If not given, one will be automatically generated.
- **kwargsdict
Extra keywords accepted by Jdaviz application-level parser.
- datastr,
- select_group(group_index)[source]#
Deprecated since version 4.5: The select_group function is deprecated and may be removed in a future version. Use viz.plugins[‘Ramp Slice’].value = group_index instead.
Select the slice closest to the provided wavelength.
- Parameters:
- group_indexfloat
Group index to select in units of the x-axis of the integration. The nearest group will be selected if “snap to slice” is enabled in the slice plugin.