153 double p,
t, r, w, ps, pw, tk, wlsq, gamma, beta;
156 optic = ( wl <= 100.0 );
170 ps = pow ( 10.0, ( 0.7859 + 0.03477*t ) /
171 ( 1.0 + 0.00412*t ) ) *
172 ( 1.0 + p * ( 4.5e-6 + 6e-10*t*
t ) );
173 pw = r * ps / ( 1.0 - (1.0-r)*ps/p );
182 gamma = ( ( 77.53484e-6 +
183 ( 4.39108e-7 + 3.666e-9/wlsq ) / wlsq ) * p
184 - 11.2684e-6*pw ) / tk;
186 gamma = ( 77.6890e-6*p - ( 6.3938e-6 - 0.375463/tk ) * pw ) / tk;
190 beta = 4.4474e-6 * tk;
191 if ( ! optic ) beta -= 0.0074 * pw * beta;
194 *refa = gamma * ( 1.0 - beta );
195 *refb = - gamma * ( beta - gamma / 2.0 );