In general, gases move in the atmosphere from areas of high pressure to areas of low pressure, behaving physically as if it were a fluid. Temperature differences also come into play here, since the hotter a group of gases is, the more they will expand and rise towards the upper layers of the atmosphere , which reduces the pressure and causes the displacement of another colder air mass. which replaces the previous one.
The star king does not heat the entire earth's surface uniformly, so in the areas where more radiation reaches, it is transmitted from the ground to the air and a hot air pocket is created above. Again, the gases that make up this mass will expand and rise to higher layers , while a mass of cold air will move to replace it, causing a vertical air current. However, at night, the situation changes: in the absence of solar radiation, the Earth's surface cools faster than the air above it.
As a consequence, the gases in contact with the ground drop in temperature rapidly, which produces a thermal inversion. That is, the difference in degrees between the upper and lower layers is so great that a kind of barrier is created through which air does not circulate, and possible currents are slowed down.





