[ascl:2507.023]
Capivara: Scalable spectral-based segmentation package
S de Souza, Rafael;
Dahmer-Hahn, Luis G.;
Shen, Shiyin;
Chies-Santos, Ana L.;
Chen, Mi;
Rahna, P. T.;
Coelho, Paula;
Riffel, Rogério;
Ye, Renhao;
Tahmasebzadeh, Behzad
Capivara implements a spectral-based segmentation method for Integral Field Unit (IFU) data cubes. The code uses hierarchical clustering in the spectral domain, grouping similar spectra to improve the signal-to-noise ratio without compromising astrophysical similarity among regions, and leverages advanced matrix operations via torch for GPU acceleration.