The Python script/package pyExtinction computes and plots total atmospheric extinction from decomposition into physical components (Rayleigh attenuation, ozone absorption, aerosol extinction). Its default extinction parameters are adapted to mean Mauna Kea summit conditions.
https://ui.adsabs.harvard.edu/abs/2014ascl.soft03002B and https://ui.adsabs.harvard.edu/abs/2013A%26A...549A...8B