Measure regional SEDs from the calibrated flux cube, using the segmentation map to group pixels.
Extract
regional <- extract_region_sed(
cube = science_cube,
labels = seg$cluster_map,
var_cube = science_variance,
band_values = bands
)flux_long contains one row per region and band.
flux_wide provides one row per region for tools that expect
tabular SEDs. flux_err, when a variance cube is supplied,
follows the propagated regional variance.