API

Configurations

jdaviz.configs.cubeviz.helper Module

Classes

Cubeviz(*args, **kwargs)

Cubeviz Helper class

CubeViz(*args, **kwargs)

This class is pending deprecation.

jdaviz.configs.imviz.helper Module

Functions

link_image_data(app[, link_type, ...])

(Re)link loaded data in Imviz with the desired link type.

Classes

Imviz(*args, **kwargs)

Imviz Helper class.

jdaviz.configs.mosviz.helper Module

Classes

Mosviz(*args, **kwargs)

Mosviz Helper class

MosViz(*args, **kwargs)

This class is pending deprecation.

jdaviz.configs.specviz.helper Module

Classes

Specviz(*args, **kwargs)

Specviz Helper class.

SpecViz(*args, **kwargs)

This class is pending deprecation.

jdaviz.configs.specviz2d.helper Module

Classes

Specviz2d(*args, **kwargs)

Specviz2D Helper class

Viewers

jdaviz.configs.default.plugins.viewers Module

Classes

JdavizViewerMixin(*args, **kwargs)

jdaviz.configs.cubeviz.plugins.viewers Module

Classes

CubevizImageView(*args, **kwargs)

CubevizProfileView(*args, **kwargs)

jdaviz.configs.imviz.plugins.viewers Module

Classes

ImvizImageView(*args, **kwargs)

jdaviz.configs.mosviz.plugins.viewers Module

Classes

MosvizProfileView(*args, **kwargs)

MosvizImageView(*args, **kwargs)

MosvizProfile2DView(*args, **kwargs)

MosvizTableViewer(session, *args, **kwargs)

jdaviz.configs.specviz.plugins.viewers Module

Classes

SpecvizProfileView(*args, **kwargs)

Parsers

jdaviz.configs.cubeviz.plugins.parsers Module

Functions

parse_data(app, file_obj[, data_type, ...])

Attempts to parse a data file and auto-populate available viewers in cubeviz.

jdaviz.configs.imviz.plugins.parsers Module

Functions

parse_data(app, file_obj[, ext, data_label])

Parse a data file into Imviz.

jdaviz.configs.mosviz.plugins.parsers Module

Functions

mos_spec1d_parser(app, data_obj[, data_labels])

Attempts to parse a 1D spectrum object.

mos_spec2d_parser(app, data_obj[, ...])

Attempts to parse a 2D spectrum object.

mos_image_parser(app, data_obj[, ...])

Attempts to parse an image-like object or list of images.

jdaviz.configs.specviz.plugins.parsers Module

Functions

specviz_spectrum1d_parser(app, data[, ...])

Loads a data file or Spectrum1D object into Specviz.

jdaviz.configs.specviz2d.plugins.parsers Module

Functions

spec2d_1d_parser(app, data_obj[, ...])

Generate a quicklook 1D spectrum from an input 2D spectrum by summing over the cross-dispersion axis.

Plugins

jdaviz.configs.default.plugins.collapse.collapse Module

Classes

Collapse(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.data_tools.data_tools Module

Classes

DataTools(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.export_plot.export_plot Module

Classes

ExportViewer(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.gaussian_smooth.gaussian_smooth Module

Classes

GaussianSmooth(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.line_lists.line_lists Module

Classes

LineListTool(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.metadata_viewer.metadata_viewer Module

Classes

MetadataViewer(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.model_fitting.model_fitting Module

Classes

ModelFitting(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.plot_options.plot_options Module

Classes

PlotOptions(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.subset_plugin.subset_plugin Module

Classes

SubsetPlugin(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.subset_tools.subset_tools Module

Classes

SubsetTools(*args, **kwargs)

Public constructor

jdaviz.configs.default.plugins.viewer_creator.viewer_creator Module

Classes

ViewerCreator(*args, **kwargs)

Public constructor

jdaviz.configs.cubeviz.plugins.moment_maps.moment_maps Module

Classes

MomentMap(*args, **kwargs)

Public constructor

jdaviz.configs.cubeviz.plugins.slice.slice Module

Classes

Slice(*args, **kwargs)

Public constructor

jdaviz.configs.imviz.plugins.aper_phot_simple.aper_phot_simple Module

Classes

SimpleAperturePhotometry(*args, **kwargs)

Public constructor

jdaviz.configs.imviz.plugins.compass.compass Module

Classes

Compass(*args, **kwargs)

Public constructor

jdaviz.configs.imviz.plugins.coords_info.coords_info Module

Classes

CoordsInfo(*args, **kwargs)

Public constructor

jdaviz.configs.imviz.plugins.image_viewer_creator.image_viewer_creator Module

Classes

ImageViewerCreator(*args, **kwargs)

Public constructor

jdaviz.configs.imviz.plugins.line_profile_xy.line_profile_xy Module

Classes

LineProfileXY(*args, **kwargs)

Public constructor

jdaviz.configs.mosviz.plugins.row_lock.row_lock Module

Classes

RowLock(*args, **kwargs)

Public constructor

jdaviz.configs.mosviz.plugins.slit_overlay.slit_overlay Module

Functions

jwst_header_to_skyregion(header)

Classes

SlitOverlay(*args, **kwargs)

Public constructor

jdaviz.configs.specviz.plugins.line_analysis.line_analysis Module

Classes

LineAnalysis(*args, **kwargs)

Public constructor

jdaviz.configs.specviz.plugins.unit_conversion.unit_conversion Module

Classes

UnitConversion(*args, **kwargs)

Public constructor

jdaviz.configs.specviz2d.plugins.spectral_extraction.spectral_extraction Module

Classes

SpectralExtraction(*args, **kwargs)

Public constructor

Nuts and Bolts

jdaviz.app Module

Classes

Application(**kwargs)

The main application object containing implementing the ipyvue/vuetify template instructions for composing the interface.

jdaviz.configs.default.plugins.data_tools.file_chooser Module

Classes

FileChooser(**kwargs)

FileChooser class.

jdaviz.configs.default.plugins.line_lists.line_list_mixin Module

Classes

LineListMixin()

Line list-related methods and properties for use in the configuration helper classes.

jdaviz.configs.default.plugins.model_fitting.fitting_backend Module

Functions

fit_model_to_spectrum(spectrum, ...[, ...])

Fits a CompoundModel to a Spectrum1D instance.

jdaviz.configs.default.plugins.model_fitting.initializers Module

This module is used to initialize spectral models to the data at hand.

This is used by model-fitting code that has to create spectral model instances with sensible parameter values such that they can be used as first guesses by the fitting algorithms.

Functions

initialize(instance, x, y)

Initialize given model.

get_model_parameters(model_cls[, model_kwargs])

jdaviz.configs.imviz.wcs_utils Module

This module handles calculations based on world coordinate system (WCS).

Functions

get_compass_info(image_wcs, image_shape[, r_fac])

Calculate WCS compass parameters.

draw_compass_mpl(image[, orig_shape, wcs, ...])

Visualize the compass using Matplotlib.

jdaviz.core.astrowidgets_api Module

Classes

AstrowidgetsImageViewerMixin()

This class implements astrowidgets API for Jdaviz image viewer.

jdaviz.core.config Module

This file contains helper function related to configuration handling.

Functions

read_configuration([path])

Loads a configuration from a YAML file.

get_configuration([path, section, config])

Retrieve a copy of a specified configuration.

list_configurations()

Get a list of pre-built configurations.

jdaviz.core.custom_traitlets Module

Classes

HandleEmptyMixin(*args, **kwargs)

Mixin to handle empty field.

IntHandleEmpty(*args, **kwargs)

Mixin to handle empty integer field.

FloatHandleEmpty(*args, **kwargs)

Mixin to handle empty floating point field.

jdaviz.core.data_formats Module

Functions

guess_dimensionality(filename)

Guess the dimensionality of a file.

get_valid_format(filename)

Identify a best match Jdaviz configuration from a filename.

identify_data(filename[, current])

Identify the data format and application configuration from a filename.

jdaviz.core.events Module

Classes

NewViewerMessage(cls, data[, x_attr])

Message to trigger viewer creation in the application.

ViewerAddedMessage(viewer_id, *args, **kwargs)

Unlike NewViewerMessage, this should be emitted after a viewer is created.

ViewerRemovedMessage(viewer_id, *args, **kwargs)

Message emitted after a viewer is destroyed by the application.

LoadDataMessage(path, *args, **kwargs)

Create a new message

AddDataMessage(data, viewer[, viewer_id])

Create a new message

SnackbarMessage(text[, color, timeout, loading])

Create a new message

RemoveDataMessage(data, viewer[, viewer_id])

Create a new message

AddLineListMessage(table, *args, **kwargs)

Create a new message

RowLockMessage(is_locked, *args, **kwargs)

Create a new message

SliceSelectSliceMessage([slice])

Message generated by the cubeviz helper and processed by the slice plugin to sync slice selection across all viewers

SliceToolStateMessage(change, *args, **kwargs)

Message generated by the select slice plot plugin when activated/deactivated

TableClickMessage(selected_index[, shared_image])

Message generated by Mosviz table to zoom to object on image

jdaviz.core.freezable_state Module

Classes

FreezableState()

FreezableProfileViewerState(**kwargs)

FreezableBqplotImageViewerState(**kwargs)

jdaviz.core.helpers Module

Helper classes are meant to provide a convenient user API for specific configurations. They allow a separation of “viztool-specific” API and the glue application objects.

See also https://github.com/spacetelescope/jdaviz/issues/104 for more details on the motivation behind this concept.

Classes

ConfigHelper([app, verbosity, history_verbosity])

The Base Helper Class.

ImageConfigHelper(*args, **kwargs)

ConfigHelper that uses an image viewer as its primary viewer.

jdaviz.core.linelists Module

Functions

get_linelist_metadata()

Return metadata for line lists.

get_available_linelists()

Return all available line lists.

load_preset_linelist(name)

Return one of the preset line lists, loaded into QTable.

jdaviz.core.marks Module

Classes

OffscreenLinesMarks(viewer)

BaseSpectrumVerticalLine(**kwargs)

Public constructor

SpectralLine(**kwargs)

Subclass on bqplot Lines, mostly so that we can erase spectral lines by eliminating any SpectralLines objects from a figures marks list.

SliceIndicatorMarks(**kwargs)

Subclass on bqplot Lines to handle slice/wavelength indicator.

ShadowMixin()

Mixin class to propagate traits from one mark object to another.

ShadowLine(**kwargs)

Create a white shadow line around another line to help make it standout on top of other lines.

ShadowLabelFixedY(**kwargs)

Label whose position shadows that of a parent shadowing line and will flip alignment based on whether it is left or right of the center of the viewer.

PluginLine(**kwargs)

Public constructor

LineAnalysisContinuum(**kwargs)

Public constructor

LineAnalysisContinuumCenter(**kwargs)

Public constructor

LineAnalysisContinuumLeft(**kwargs)

Public constructor

LineAnalysisContinuumRight(**kwargs)

Public constructor

LineUncertainties(**kwargs)

Public constructor

ScatterMask(**kwargs)

Public constructor

SelectedSpaxel(**kwargs)

Public constructor

jdaviz.core.region_translators Module

The region_translators module houses translations of Region Shapes to Aperture Photometry (photutils.aperture) apertures.

Functions

regions2roi(region_shape[, wcs])

Convert a given regions shape to glue ROI.

regions2aperture(region_shape)

Convert a given regions shape to photutils aperture.

aperture2regions(aperture)

Convert a given photutils aperture to regions shape.

jdaviz.core.registries Module

Functions

convert(name)

Converts camel-case strings to snake-case.

Classes

UniqueDictRegistry()

Base registry class that handles hashmap-like associations between a string representation of a plugin and the class to be instantiated.

ViewerRegistry()

Registry containing references to custom viewers.

TrayRegistry()

Registry containing references to plugins that will be added to the sidebar tray tabs.

ToolRegistry()

Registry containing references to plugins which will populate the application-level toolbar.

MenuRegistry()

Registry containing references to plugins that will populate the application-level menu bar.

DataParserRegistry()

Registry containing parsing functions for attempting to auto-populate the application-defined initial viewers.

jdaviz.core.template_mixin Module

Classes

TemplateMixin(*args, **kwargs)

Public constructor

PluginTemplateMixin(*args, **kwargs)

This base class can be inherited by all sidebar/tray plugins to expose common functionality.

BasePluginComponent(plugin, **kwargs)

This base class handles attaching traitlets from the plugin itself to logic handled within the component, support for caching and clearing caches on properties, and common properties for accessing the app, etc.

BaseSelectPluginComponent(**kwargs)

This base class extends BasePluginComponent for common functionality for a select/dropdown component.

SubsetSelect(**kwargs)

Traitlets (in the object, custom traitlets in the plugin):

SpatialSubsetSelectMixin(**kwargs)

Applies the SubsetSelect component as a mixin in the base plugin.

SpectralSubsetSelectMixin(**kwargs)

Applies the SubsetSelect component as a mixin in the base plugin.

ViewerSelect(**kwargs)

Traitlets (in the object, custom traitlets in the plugin):

ViewerSelectMixin(**kwargs)

Applies the ViewerSelect component as a mixin in the base plugin.

DatasetSelect(**kwargs)

Traitlets (in the object, custom traitlets in the plugin):

DatasetSelectMixin(**kwargs)

Applies the DatasetSelect component as a mixin in the base plugin.

AutoLabel(plugin, value, default, auto, ...)

Traitlets (in the object, custom traitlets in the plugin):

AutoLabelMixin(**kwargs)

Applies the AutoLabel component as a mixin in the base plugin.

AddResults(plugin, label, label_default, ...)

Traitlets (in the object, custom traitlets in the plugin):

AddResultsMixin(**kwargs)

Applies the AddResults component as a mixin in the base plugin.

jdaviz.core.validunits Module

Functions

units_to_strings(unit_list)

Convert equivalencies into readable versions of the units.

create_spectral_equivalencies_list(spectrum)

Get all possible conversions from current spectral_axis_unit.

create_flux_equivalencies_list(spectrum)

Get all possible conversions for flux from current flux units.

jdaviz.models.physical_models Module

Models that have physical origins.

Classes

BlackBody(*args, **kwargs)

Blackbody model using the Planck function.

Class Inheritance Diagram

Inheritance diagram of jdaviz.models.physical_models.BlackBody

jdaviz.utils Module

Functions

enable_hot_reloading()

Use watchdog to perform hot reloading.

bqplot_clear_figure(fig)

Clears a given bqplot.Figure to mimic matplotlib clf().

standardize_metadata(metadata)

Standardize given metadata so it can be viewed in Metadata Viewer plugin.

Classes

SnackbarQueue()

Class that performs the role of VSnackbarQueue, which is not implemented in ipyvuetify.