Viewers#

Jdaviz provides specialized viewers for different types of astronomical data.

Creating Viewers#

By default, viewers are created automatically based on the data format you load:

import jdaviz
jdaviz.show()

# Automatically creates appropriate viewer
jdaviz.load('spectrum.fits', format='1D Spectrum')

You can also create viewers programmatically:

# Create a new viewer
viewer_creator = jdaviz.viewers['1D Spectrum']
new_viewer = viewer_creator()

See the individual viewer pages for detailed usage information.

UI Access#

v0.1
Click toolbar icons to toggle different sidebars
Data Menu

Control data and subset layer order and visibility for each viewer. Toggle layer visibility, reorder layers by dragging, and manage which data appears in the viewer.

dm = jd.viewers[viewer].data_menu

Data Menus#

Each viewer has a legend in the top-right indicating what layers are currently displayed. Clicking on the legend opens a data menu where you can: - Toggle visibility of individual layers - Remove layers from the viewer - Rename viewers

For more information, see Data Menu.

Plot Options#

Changing viewer or layer options is done through the Plot Options plugin in the settings sidebar.