Ammonia: Dynamical modeling of the absorption spectrum