Design of a variational analysis: Organisation and main scientific points. Computation of the distance to the observations