craftutils.observation.image.IFUImage.collapse_spectral(ext: int = 1, data: Quantity | None = None)