Instructions
Make an assumption about the molecular composition of the atmosphere. For example, you could assume that methane has a concentration of 740 parts per billion, that oxygen is at a concentration of 20.43 percent and so on through other atmospheric constituents.
Find the absorption cross-section for each of the atmospheric constituents in your list. The cross-sections vary quite a bit with wavelength. Online databases will help you track this data down.
Define the path through the atmosphere. The path will include the starting altitude, the distance and the viewing angle. That will lead to a density and temperature profile.
Split the path into some different segments that have relatively constant density and temperature.
Calculate the transmittance for each constituent in each segment. The transmittance is given by the exponential of the negative of the cross-section times the number density of the constituent times the distance. That is: transmittance = e ^-(cross section x number density x distance).
Add all the contributions together and then add the segments together to get a plot of transmittance versus wavelength.