Subsets & Regions#

Create and manage spatial and spectral subsets of your data.

Overview#

Subsets allow you to select regions of interest in your data for focused analysis:

Spatial Subsets (2D)
  • Circular: Define circular regions

  • Rectangular: Define rectangular regions

  • Elliptical: Define elliptical regions

  • Polygonal: Define arbitrary polygons

  • Annulus: Define annular regions

Spectral Subsets (1D)
  • Range: Define wavelength/frequency ranges

Advanced
  • Composite: Combine multiple subsets with boolean operations

Creating Subsets#

Subsets can be created interactively using the subset tools in the viewer toolbar:

import jdaviz
from jdaviz import Imviz

imviz = Imviz()
imviz.show()
imviz.load('image.fits', format='Image')

# Use the subset tools in the toolbar to create regions

Or programmatically via the API:

# Create a circular subset
region = CirclePixelRegion(center=PixCoord(100, 100), radius=20)
imviz.load_regions(region)

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

See Also#

  • Data Analysis Plugins - For spectral subset creation

  • Individual subset type pages for detailed information