Thanks for the tip imok2. I have taken this into account, what i am actually trying to do is create an algorithm to calculate the absoprtion distance even if this has to be taken from psychrometric first principles. I've got so far, but i am now stuck!!!!