本文整理汇总了Python中pvlib.irradiance.grounddiffuse函数的典型用法代码示例。如果您正苦于以下问题:Python grounddiffuse函数的具体用法?Python grounddiffuse怎么用?Python grounddiffuse使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了grounddiffuse函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_deprecated_07
def test_deprecated_07():
with pytest.warns(pvlibDeprecationWarning):
irradiance.extraradiation(300)
with pytest.warns(pvlibDeprecationWarning):
irradiance.grounddiffuse(40, 900)
with pytest.warns(pvlibDeprecationWarning):
irradiance.total_irrad(32, 180, 10, 180, 0, 0, 0, 1400, 1)
with pytest.warns(pvlibDeprecationWarning):
irradiance.globalinplane(0, 1000, 100, 10)
示例2: test_globalinplane
def test_globalinplane():
aoi = irradiance.aoi(40, 180, ephem_data['apparent_zenith'],
ephem_data['apparent_azimuth'])
airmass = atmosphere.relativeairmass(ephem_data['apparent_zenith'])
gr_sand = irradiance.grounddiffuse(40, ghi, surface_type='sand')
diff_perez = irradiance.perez(
40, 180, irrad_data['dhi'], irrad_data['dni'], dni_et,
ephem_data['apparent_zenith'], ephem_data['apparent_azimuth'], airmass)
irradiance.globalinplane(
aoi=aoi, dni=irrad_data['dni'], poa_sky_diffuse=diff_perez,
poa_ground_diffuse=gr_sand)
示例3: test_globalinplane
def test_globalinplane():
AOI = irradiance.aoi(40, 180, ephem_data['apparent_zenith'],
ephem_data['apparent_azimuth'])
AM = atmosphere.relativeairmass(ephem_data['apparent_zenith'])
gr_sand = irradiance.grounddiffuse(40, ghi, surface_type='sand')
diff_perez = irradiance.perez(
40, 180, irrad_data['DHI'], irrad_data['DNI'], dni_et,
ephem_data['apparent_zenith'], ephem_data['apparent_azimuth'], AM)
irradiance.globalinplane(
AOI=AOI, DNI=irrad_data['DNI'], In_Plane_SkyDiffuse=diff_perez,
GR=gr_sand)
示例4: test_grounddiffuse_albedo_surface
def test_grounddiffuse_albedo_surface():
irradiance.grounddiffuse(40, ghi, surface_type='sand')
示例5: test_grounddiffuse_albedo_invalid_surface
def test_grounddiffuse_albedo_invalid_surface():
irradiance.grounddiffuse(40, ghi, surface_type='invalid')
示例6: test_grounddiffuse_albedo_0
def test_grounddiffuse_albedo_0():
ground_irrad = irradiance.grounddiffuse(40, ghi, albedo=0)
assert 0 == ground_irrad.all()
示例7: test_grounddiffuse_simple_series
def test_grounddiffuse_simple_series():
ground_irrad = irradiance.grounddiffuse(40, ghi)
assert ground_irrad.name == 'diffuse_ground'
示例8: test_grounddiffuse_simple_float
def test_grounddiffuse_simple_float():
irradiance.grounddiffuse(40, 900)
示例9: test_grounddiffuse_albedo_invalid_surface
def test_grounddiffuse_albedo_invalid_surface():
with pytest.raises(KeyError):
irradiance.grounddiffuse(40, ghi, surface_type='invalid')
示例10: test_grounddiffuse_simple_float
def test_grounddiffuse_simple_float():
result = irradiance.grounddiffuse(40, 900)
assert_allclose(result, 26.32000014911496)
示例11: test_grounddiffuse_albedo_surface
def test_grounddiffuse_albedo_surface():
result = irradiance.grounddiffuse(40, ghi, surface_type='sand')
assert_allclose(result, [0, 3.731058, 48.778813, 12.035025], atol=1e-4)