Added calc of mean value of altitude