@@ -513,8 +513,8 @@ def grounddiffuse(surface_tilt, ghi, albedo=.25, surface_type=None):
513513
514514 if surface_type is not None :
515515 albedo = SURFACE_ALBEDOS [surface_type ]
516- pvl_logger .info ('surface_type={} mapped to albedo={}'
517- . format ( surface_type , albedo ) )
516+ pvl_logger .info ('surface_type=%s mapped to albedo=%s' ,
517+ surface_type , albedo )
518518
519519 diffuse_irrad = ghi * albedo * (1 - np .cos (np .radians (surface_tilt ))) * 0.5
520520
@@ -1489,7 +1489,7 @@ def dirint(ghi, zenith, times, pressure=101325, use_delta_kt_prime=True,
14891489 kt_prime = kt / (1.031 * np .exp (- 1.4 / (0.9 + 9.4 / airmass )) + 0.1 )
14901490 kt_prime [kt_prime > 0.82 ] = 0.82 # From SRRL code. consider np.NaN
14911491 kt_prime .fillna (0 , inplace = True )
1492- pvl_logger .debug ('kt_prime:\n {}' . format ( kt_prime ) )
1492+ pvl_logger .debug ('kt_prime:\n %s' , kt_prime )
14931493
14941494 # wholmgren:
14951495 # the use_delta_kt_prime statement is a port of the MATLAB code.
@@ -1519,7 +1519,7 @@ def dirint(ghi, zenith, times, pressure=101325, use_delta_kt_prime=True,
15191519 kt_prime_bin [(kt_prime >= 0.56 ) & (kt_prime < 0.7 )] = 4
15201520 kt_prime_bin [(kt_prime >= 0.7 ) & (kt_prime < 0.8 )] = 5
15211521 kt_prime_bin [(kt_prime >= 0.8 ) & (kt_prime <= 1 )] = 6
1522- pvl_logger .debug ('kt_prime_bin:\n {}' . format ( kt_prime_bin ) )
1522+ pvl_logger .debug ('kt_prime_bin:\n %s' , kt_prime_bin )
15231523
15241524 # Create zenith angle bins
15251525 zenith_bin = pd .Series (index = times )
@@ -1529,7 +1529,7 @@ def dirint(ghi, zenith, times, pressure=101325, use_delta_kt_prime=True,
15291529 zenith_bin [(zenith >= 55 ) & (zenith < 70 )] = 4
15301530 zenith_bin [(zenith >= 70 ) & (zenith < 80 )] = 5
15311531 zenith_bin [(zenith >= 80 )] = 6
1532- pvl_logger .debug ('zenith_bin:\n {}' . format ( zenith_bin ) )
1532+ pvl_logger .debug ('zenith_bin:\n %s' , zenith_bin )
15331533
15341534 # Create the bins for w based on dew point temperature
15351535 w_bin = pd .Series (index = times )
@@ -1538,7 +1538,7 @@ def dirint(ghi, zenith, times, pressure=101325, use_delta_kt_prime=True,
15381538 w_bin [(w >= 2 ) & (w < 3 )] = 3
15391539 w_bin [(w >= 3 )] = 4
15401540 w_bin [(w == - 1 )] = 5
1541- pvl_logger .debug ('w_bin:\n {}' . format ( w_bin ) )
1541+ pvl_logger .debug ('w_bin:\n %s' , w_bin )
15421542
15431543 # Create delta_kt_prime binning.
15441544 delta_kt_prime_bin = pd .Series (index = times )
@@ -1549,7 +1549,7 @@ def dirint(ghi, zenith, times, pressure=101325, use_delta_kt_prime=True,
15491549 delta_kt_prime_bin [(delta_kt_prime >= 0.15 ) & (delta_kt_prime < 0.3 )] = 5
15501550 delta_kt_prime_bin [(delta_kt_prime >= 0.3 ) & (delta_kt_prime <= 1 )] = 6
15511551 delta_kt_prime_bin [delta_kt_prime == - 1 ] = 7
1552- pvl_logger .debug ('delta_kt_prime_bin:\n {}' . format ( delta_kt_prime_bin ) )
1552+ pvl_logger .debug ('delta_kt_prime_bin:\n %s' , delta_kt_prime_bin )
15531553
15541554 # subtract 1 to account for difference between MATLAB-style bin
15551555 # assignment and Python-style array lookup.
0 commit comments