@@ -402,9 +402,11 @@ def nocompile(*args, **kwargs):
402402@jcompile ('float64(int64, int64, int64, int64, int64, int64, int64)' ,
403403 nopython = True )
404404def julian_day_dt (year , month , day , hour , minute , second , microsecond ):
405- """This is the original way to calculate the julian day from the NREL paper.
405+ """
406+ This is the original way to calculate the julian day from the NREL paper.
406407 However, it is much faster to convert to unix/epoch time and then convert
407- to julian day. Note that the date must be UTC."""
408+ to julian day. Note that the date must be UTC.
409+ """
408410 if month <= 2 :
409411 year = year - 1
410412 month = month + 12
@@ -461,6 +463,7 @@ def sum_mult_cos_add_mult(arr, x):
461463 s += arr [row , 0 ] * np .cos (arr [row , 1 ] + arr [row , 2 ] * x )
462464 return s
463465
466+
464467@jcompile ('float64(float64)' , nopython = True )
465468def heliocentric_longitude (jme ):
466469 l0 = sum_mult_cos_add_mult (L0 , jme )
@@ -475,6 +478,7 @@ def heliocentric_longitude(jme):
475478 l = np .rad2deg (l_rad )
476479 return l % 360
477480
481+
478482@jcompile ('float64(float64)' , nopython = True )
479483def heliocentric_latitude (jme ):
480484 b0 = sum_mult_cos_add_mult (B0 , jme )
@@ -762,9 +766,10 @@ def topocentric_elevation_angle_without_atmosphere(observer_latitude,
762766
763767
764768@jcompile ('float64(float64, float64, float64, float64)' , nopython = True )
765- def atmospheric_refraction_correction (local_pressure , local_temp ,
766- topocentric_elevation_angle_wo_atmosphere ,
767- atmos_refract ):
769+ def atmospheric_refraction_correction (
770+ local_pressure , local_temp ,
771+ topocentric_elevation_angle_wo_atmosphere ,
772+ atmos_refract ):
768773 # switch sets delta_e when the sun is below the horizon
769774 switch = topocentric_elevation_angle_wo_atmosphere >= - 1.0 * (
770775 0.26667 + atmos_refract )
0 commit comments