added mean algorith based on band indexes