Thanks for your assistance and I manage to fix it by writing again the same script. I put in annex the the original script which was creating me problem
Hi Raul, Thanks for sending that along. The error you were getting was due to some missing parenthesis on the line:rs = 1367 * 3 * ( 1 + math.pow(math.cos(C),2)/(16 * math.pi) * math.cos(SoZA) / (math.cos(VsZA) + math.cos(SoZA)*(1-math.exp(0.0426*(1/math.cos(VsZA) + 1/math.cos(SoZA))))))
-Jeff