added writing of spatially varying nudging coefficients