当前位置: 首页>>代码示例>>Python>>正文


Python irradiance.grounddiffuse函数代码示例

本文整理汇总了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)
开发者ID:anomam,项目名称:pvlib-python,代码行数:9,代码来源:test_irradiance.py

示例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)
开发者ID:MoonRaker,项目名称:pvlib-python,代码行数:11,代码来源:test_irradiance.py

示例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)
开发者ID:Monisha-mohan,项目名称:pvlib-python,代码行数:11,代码来源:test_irradiance.py

示例4: test_grounddiffuse_albedo_surface

def test_grounddiffuse_albedo_surface():
    irradiance.grounddiffuse(40, ghi, surface_type='sand')
开发者ID:UARENForecasting,项目名称:PVLIB_Python,代码行数:2,代码来源:test_irradiance.py

示例5: test_grounddiffuse_albedo_invalid_surface

def test_grounddiffuse_albedo_invalid_surface():
    irradiance.grounddiffuse(40, ghi, surface_type='invalid')
开发者ID:UARENForecasting,项目名称:PVLIB_Python,代码行数:2,代码来源:test_irradiance.py

示例6: test_grounddiffuse_albedo_0

def test_grounddiffuse_albedo_0():
    ground_irrad = irradiance.grounddiffuse(40, ghi, albedo=0)
    assert 0 == ground_irrad.all()
开发者ID:UARENForecasting,项目名称:PVLIB_Python,代码行数:3,代码来源:test_irradiance.py

示例7: test_grounddiffuse_simple_series

def test_grounddiffuse_simple_series():
    ground_irrad = irradiance.grounddiffuse(40, ghi)
    assert ground_irrad.name == 'diffuse_ground'
开发者ID:UARENForecasting,项目名称:PVLIB_Python,代码行数:3,代码来源:test_irradiance.py

示例8: test_grounddiffuse_simple_float

def test_grounddiffuse_simple_float():
    irradiance.grounddiffuse(40, 900)
开发者ID:UARENForecasting,项目名称:PVLIB_Python,代码行数:2,代码来源:test_irradiance.py

示例9: test_grounddiffuse_albedo_invalid_surface

def test_grounddiffuse_albedo_invalid_surface():
    with pytest.raises(KeyError):
        irradiance.grounddiffuse(40, ghi, surface_type='invalid')
开发者ID:dpete2008,项目名称:Sandia,代码行数:3,代码来源:test_irradiance.py

示例10: test_grounddiffuse_simple_float

def test_grounddiffuse_simple_float():
    result = irradiance.grounddiffuse(40, 900)
    assert_allclose(result, 26.32000014911496)
开发者ID:iamkaptain,项目名称:pvlib-python,代码行数:3,代码来源:test_irradiance.py

示例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)
开发者ID:iamkaptain,项目名称:pvlib-python,代码行数:3,代码来源:test_irradiance.py


注:本文中的pvlib.irradiance.grounddiffuse函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。