It must require that endmembers have been computed so it must always run after the endmembers function
It must require that endmembers have been computed so it must always run after the endmembers function