Data Formats#

When loading data into Jdaviz, you specify a format that determines how the data will be parsed and which tools can visualize it:

Each format has specific requirements for the data structure. The format determines which viewers and analysis tools are available for that data.

See Data Sources for information on different ways to load data.

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

API Access#

You can specify the data format programmatically when loading data:

ldr = jdaviz.loaders['file']
ldr.filename = 'mydata.fits'
ldr.format = '1D Spectrum'  # Specify the desired format
ldr.load()

or by passing as a keyword argument to the load function:

jdaviz.load('mydata.fits', format='1D Spectrum')