new function for layer temperature calc
v 3.3.2 added layer temperature