@@ -300,12 +300,12 @@ def beam_component(surface_tilt, surface_azimuth, solar_zenith, solar_azimuth,
300
300
return beam
301
301
302
302
303
- def total_irrad (surface_tilt , surface_azimuth ,
304
- apparent_zenith , azimuth ,
305
- dni , ghi , dhi , dni_extra = None , airmass = None ,
306
- albedo = .25 , surface_type = None ,
307
- model = 'isotropic' ,
308
- model_perez = 'allsitescomposite1990' , ** kwargs ):
303
+ def get_total_poa_irradiance (surface_tilt , surface_azimuth ,
304
+ apparent_zenith , azimuth ,
305
+ dni , ghi , dhi , dni_extra = None , airmass = None ,
306
+ albedo = .25 , surface_type = None ,
307
+ model = 'isotropic' ,
308
+ model_perez = 'allsitescomposite1990' , ** kwargs ):
309
309
r"""
310
310
Determine total in-plane irradiance and its beam, sky diffuse and ground
311
311
reflected components, using the specified sky diffuse irradiance model.
@@ -361,23 +361,27 @@ def total_irrad(surface_tilt, surface_azimuth,
361
361
solar_zenith = apparent_zenith
362
362
solar_azimuth = azimuth
363
363
364
- poa_sky_diffuse = get_sky_diffuse (
364
+ poa_sky_diffuse = get_poa_sky_diffuse (
365
365
surface_tilt , surface_azimuth , solar_zenith , solar_azimuth ,
366
- dni , ghi , dhi , dni_extra = dni_extra , airmass = airmass , albedo = albedo ,
367
- surface_type = surface_type , model = model , model_perez = model_perez )
366
+ dni , ghi , dhi , dni_extra = dni_extra , airmass = airmass , model = model ,
367
+ model_perez = model_perez )
368
368
369
- poa_ground_diffuse = grounddiffuse (surface_tilt , ghi , albedo , surface_type )
369
+ poa_ground_diffuse = get_poa_ground_diffuse (surface_tilt , ghi , albedo ,
370
+ surface_type )
370
371
aoi_ = aoi (surface_tilt , surface_azimuth , solar_zenith , solar_azimuth )
371
372
irrads = poa_components (aoi_ , dni , poa_sky_diffuse , poa_ground_diffuse )
372
373
return irrads
373
374
374
375
375
- def get_sky_diffuse (surface_tilt , surface_azimuth ,
376
- solar_zenith , solar_azimuth ,
377
- dni , ghi , dhi , dni_extra = None , airmass = None ,
378
- albedo = .25 , surface_type = None ,
379
- model = 'isotropic' ,
380
- model_perez = 'allsitescomposite1990' ):
376
+ total_irrad = deprecated ('0.5.2' , alternative = 'get_total_poa_irradiance' ,
377
+ name = 'total_irrad' )(get_total_poa_irradiance )
378
+
379
+
380
+ def get_poa_sky_diffuse (surface_tilt , surface_azimuth ,
381
+ solar_zenith , solar_azimuth ,
382
+ dni , ghi , dhi , dni_extra = None , airmass = None ,
383
+ model = 'isotropic' ,
384
+ model_perez = 'allsitescomposite1990' ):
381
385
r"""
382
386
Determine in-plane sky diffuse irradiance component
383
387
using the specified sky diffuse irradiance model.
@@ -410,10 +414,6 @@ def get_sky_diffuse(surface_tilt, surface_azimuth,
410
414
Extraterrestrial direct normal irradiance
411
415
airmass : None or numeric, default None
412
416
Airmass
413
- albedo : numeric, default 0.25
414
- Surface albedo
415
- surface_type : None or String, default None
416
- Surface type. See grounddiffuse.
417
417
model : String, default 'isotropic'
418
418
Irradiance model.
419
419
model_perez : String, default 'allsitescomposite1990'
@@ -509,6 +509,8 @@ def poa_components(aoi, dni, poa_sky_diffuse, poa_ground_diffuse):
509
509
return irrads
510
510
511
511
512
+ # globalinplane returns less data than poa_components, so better
513
+ # to copy it
512
514
@deprecated ('0.5.2' , alternative = 'poa_components' ,
513
515
addendum = ' This function will be removed in 0.6' )
514
516
def globalinplane (aoi , dni , poa_sky_diffuse , poa_ground_diffuse ):
@@ -567,7 +569,7 @@ def globalinplane(aoi, dni, poa_sky_diffuse, poa_ground_diffuse):
567
569
return irrads
568
570
569
571
570
- def get_ground_diffuse (surface_tilt , ghi , albedo = .25 , surface_type = None ):
572
+ def get_poa_ground_diffuse (surface_tilt , ghi , albedo = .25 , surface_type = None ):
571
573
'''
572
574
Estimate diffuse irradiance from ground reflections given
573
575
irradiance, albedo, and surface tilt
@@ -634,8 +636,8 @@ def get_ground_diffuse(surface_tilt, ghi, albedo=.25, surface_type=None):
634
636
return diffuse_irrad
635
637
636
638
637
- grounddiffuse = deprecated ('0.5.2' , alternative = 'get_ground_diffuse ' ,
638
- name = 'grounddiffuse' )(get_ground_diffuse )
639
+ grounddiffuse = deprecated ('0.5.2' , alternative = 'get_poa_ground_diffuse ' ,
640
+ name = 'grounddiffuse' )(get_poa_ground_diffuse )
639
641
640
642
641
643
def isotropic (surface_tilt , dhi ):
0 commit comments