<s> import pandas as pd <EOL> import numpy as np <EOL> import pvl_tools <EOL> def pvl_getaoi ( SurfTilt , SurfAz , SunZen , SunAz ) : <EOL> '''<STR_LIT>''' <EOL> Vars = locals ( ) <EOL> Expect = { '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' ) <EOL> } <EOL> var = pvl_tools . Parse ( Vars , Expect ) <EOL> AOI = np . degrees ( np . arccos ( np . cos ( np . radians ( var . SunZen ) ) * ( np . cos ( np . radians ( var . SurfTilt ) ) ) + np . sin ( np . radians ( var . SurfTilt ) ) * ( np . sin ( np . radians ( var . SunZen ) ) ) * ( np . cos ( np . radians ( var . SunAz ) - np . radians ( var . SurfAz ) ) ) ) ) <EOL> return pd . DataFrame ( { '<STR_LIT>' : AOI } ) </s>
