It's really not that hard. It's about gas properties. their refraction indices and simple thermodynamics. https://www.academia.edu/33161453/The_Properties_of_Gases_and_Liquids_4th_Edition_R_C_Reid_J_M_Prausnitz_and_B_E_Poling_