how to export data from a slice or contour?

thanks