A model for medium range weather forecasts - adiabatic formulation