Development of a three-dimensional variational assimilation