瓢虫是一个python库,用于加载、分析和修改eneregyplus天气文件(epw)。

lbt-ladybug的Python项目详细描述


Ladybug

Build StatusCoverage Status

Python 2.7Python 3.6IronPython

瓢虫

瓢虫是一个python库,用于加载、分析和修改eneregyplus天气文件(epw)。您可以从EPWMap下载epw文件。

该库包括核心库,核心库是瓢虫的基础。有关插件特定的问题和注释,请参阅ladybug-grasshopperladybug-dynamo存储库。

有关传统瓢虫蚱蜢插件,请参见this repository

API Documentation

安装

pip install lbt-ladybug

用法

# load epw weather datafromladybug.epwimportEPWepw_data=EPW('path_to_epw_file')dry_bulb_temp=epw_data.dry_bulb_temperature# Get altitude and longitudefromladybug.locationimportLocationformladybug.sunpathimportSunpath# Create location. You can also extract location data from an epw file.sydney=Location('Sydney','AUS',latitude=-33.87,longitude=151.22,time_zone=10)# Initiate sunpathsp=Sunpath.from_location(sydney)sun=sp.calculate_sun(month=11,day=15,hour=11.0)print('altitude: {}, azimuth: {}'.format(sun.altitude,sun.azimuth))>>>altitude:72.26,azimuth:32.37

导数功

瓢虫是以下软件项目的衍生产品:

pyeuclid用于矢量数学计算。在lgpl下提供。

PVLib-python用于太阳辐照度计算。根据BSD 3条款提供。

这些作品的适用版权声明可以在相关的.py文件中找到。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java OpenJDK交叉编译:失败无法生成目标   java使用Hibernate向postgresql表插入json值   Java7中的新Swing JLayer   java从另一个类访问方法和属性,而不实例化它   java右键单击弹出菜单无法聚焦JTextField   java是否可以使用jpa@Query调用Oracle函数   java是打印任何类型的ArrayList元素的通用方法   使用多重映射作为参数的Java   java我有两个字符串,内容相同,但哈希代码不同,因此。equals方法正在重新运行false。请建议如何解决这个问题   java JPA查询元素集合   java如何将数据从请求绑定到现有对象?多步骤形式   java在没有警告的情况下转换泛型类型?   声明Java乘法长和浮点数,结果是哪种数据类型?