ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/sun.cal
(Generate patch)

Comparing ray/src/cal/cal/sun.cal (file contents):
Revision 1.2 by greg, Wed Nov 21 18:10:45 2018 UTC vs.
Revision 1.3 by greg, Thu Nov 7 23:15:06 2019 UTC

# Line 26 | Line 26 | stadj(jd)              {* solar time adjustment (hours) *}
26   sdec(jd)                {* solar declination angle (radians) *}
27   { jd is days into year }
28   =
29 <  0.4093 * sin( 2*PI/368 * (jd - 81) )
29 >  0.4093 * sin( 2*PI/365 * (jd - 81) )
30   ;
31  
32  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines