Hi there, thanks for your response.
I am trying to do this given a standard atmosphere profile, which gives the height, pressure, temperature, and volume mixing ratio.
So, I'd be trying to calculate this for an portion of an individual layer of atmosphere, then add up all the layers to get...