Here are some programs I have written for various uses.
Calculate Rayleigh Scattering by Argon, Air, and CO2 as a function of pressure, temperature, and wavelength. (Source code).
Calculate Air Mass and Rayleigh Optical Depth for sunphotometer data analysis uses.