Added altitude function in main_calc.py