Ensemble analysis functions 70% done