This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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