<s> import numpy as np <EOL> import pvl_tools <EOL> def pvl_kingdiffuse ( SurfTilt , DHI , GHI , SunZen ) : <EOL> '''<STR_LIT>''' <EOL> Vars = locals ( ) <EOL> Expect = { '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' ) <EOL> } <EOL> var = pvl_tools . Parse ( Vars , Expect ) <EOL> SkyDiffuse = DHI * ( ( <NUM_LIT:1> + pvl_tools . cosd ( SurfTilt ) ) ) / <NUM_LIT:2> + GHI * ( ( <NUM_LIT> * SunZen - <NUM_LIT> ) ) * ( ( <NUM_LIT:1> - pvl_tools . cosd ( SurfTilt ) ) ) / <NUM_LIT:2> <EOL> return SkyDiffuse </s>
