These examples use real MaNGA cubes.
MaNGA segmentation mosaic

The panels show the IFS cube, spatial support, and spectral regions.
Use summarize_cluster_spectra() to obtain the summed
regional spectra.
Exact and sparse-graph comparison

segment() and
segment_large(), with and without starlet support.
For a new observed cube:
library(capivara)
library(FITSio)
cube <- FITSio::readFITS("/path/to/input_cube.fits")
seg <- segment_large(
input = cube,
Ncomp = 25,
use_starlet_mask = TRUE,
starlet_J = 5,
starlet_scales = 2:5,
include_coarse = FALSE,
denoise_k = 0,
positive_only = TRUE,
mask_mode = "na",
knn_k = 100
)
regional_spectra <- summarize_cluster_spectra(seg)$sum_spectraReplace the path with a local FITS cube. The Get Started guide provides a runnable simulation.
Kinematic and model-specific examples
The Kinematic Analysis guide covers line maps and an axisymmetric disc model. The Bar Model guide adds bisymmetric terms for a known barred galaxy.