The effect of the atmosphere and ionosphere on long period magnetospheric micropulsations