Atmospheric Absorption / Attenuation
The first peak occurs at 22 GHz due to water, and the second at 63 GHz due to oxygen. The actual amount of water vapor and oxygen in the atmosphere normally declines with an increase in altitude because of the decrease in pressure, so these graphs apply from sea level to around 1 km altitude.
Total attenuation through the atmosphere at any frequency through unobstructed atmosphere is the sum of free space path loss, attenuation caused by oxygen absorption and attenuation caused by water vapor absorption. Rain attenuation, when present adds an additional element. For a chart of sunlight power density in the visible light and infrared / ultraviolet region of the electromagnetic spectrum, click here.
So, AttenTotal = AttenFreeSpacePathLoss + AttenOxygen + AttenWaterVapor + AttenRain
that were entered into Excel and plotted.