Write kappa values into file with q-points