Auxiliary function for removing trends and mean from observation vector or ensemble matrix.
Useful links