write out filename with spectral weight