unsupervised classification

How to export the classes and spectral signatures of an unsupervised classification in SNAP ? in this case it is an S2

to export the raster values, you can simply take the class_indices.img file inside the .data folder of your output. It is fully compatible with other GIS software (e.g. QGIS)

The spectral signatures are within the … _kmeans.dim file of your classification product. You can open it with any text editor and find the thresholds under Dataset Sources

If you remove all other parts and save it as an xml file (example: kmeans.xml) you can even import it into Excel.

Thank you very much for your answer, it has been useful to me.

Could I modify the resulting spectral signatures? For example, by joining two similar cluster for unify or creating another new cluster myself.