![Ladybug](http://www.ladybug.tools/assets/img/ladybug.png)
[![Build Status](https://travis-ci.com/ladybug-tools/ladybug.svg?branch=master)](https://travis-ci.com/ladybug-tools/ladybug)
[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/ladybug/badge.svg?branch=master)](https://coveralls.io/github/ladybug-tools/ladybug)
[![Python 2.7](https://img.shields.io/badge/python-2.7-green.svg)](https://www.python.org/downloads/release/python-270/) [![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) [![IronPython](https://img.shields.io/badge/ironpython-2.7-red.svg)](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/)
# ladybug
Ladybug is a Python library to load, analyze and modify EnergyPlus Weather files (epw). You can download epw files from [EPWMap](http://www.ladybug.tools/epwmap/).
This repository includes the core library which is the base for Ladybug. For plugin-specific questions and comments refer to [ladybug-grasshopper](https://github.com/ladybug-tools/ladybug-grasshopper) or [ladybug-dynamo](https://github.com/ladybug-tools/ladybug-dynamo) repositories.
## Note
For the Legacy Ladybug Grasshopper Plugin see [this repository](https://github.com/ladybug-tools/ladybug-legacy).
## [API Documentation](https://www.ladybug.tools/ladybug/docs/)
## Installation
`pip install ladybug-core`
## Usage
```python
# load epw weather data
from ladybug.epw import EPW
epw_data = EPW('path_to_epw_file')
dry_bulb_temp = epw_data.dry_bulb_temperature
# Get altitude and longitude
from ladybug.location import Location
from ladybug.sunpath import Sunpath
# 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 sunpath
sp = 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
```
### Derivative Work
Ladybug is a derivative work of the following software projects:
* [PVLib-python](https://github.com/pvlib/pvlib-python) for solar irradiance calculations. Available under BSD 3-clause.
* [PsychroLib](https://github.com/psychrometrics/psychrolib) for psychrometric calculations. Available under MIT License.
Applicable copyright notices for these works can be found within the relevant .py files.
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | ladybug-core-0.39.4.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 168 浏览量
2022-01-12
20:30:45
上传
评论
收藏 8.79MB GZ 举报
温馨提示
共159个文件
py:99个
sql:9个
md:7个
资源来自pypi官网。 资源全名:ladybug-core-0.39.4.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | ladybug-core-0.39.4.tar.gz (159个子文件)
setup.cfg 102B
.coveragerc 21B
custom.css 899B
chicago_edited.ddy 43KB
chicago_monthly.ddy 28KB
chicago.ddy 28KB
tokyo.ddy 28KB
Dockerfile 1KB
.dockerignore 43B
tokyo.epw 2.1MB
chicago.epw 1.56MB
.gitignore 149B
layout.html 4KB
MANIFEST.in 27B
mesh.json 17KB
faces.json 3KB
.releaserc.json 274B
config.json 152B
LICENSE 34KB
README.md 2KB
ISSUE_TEMPLATE.md 2KB
CONTRIBUTING.md 445B
README.md 415B
CODE_OF_CONDUCT.md 279B
README.md 33B
README.md 33B
.nojekyll 1B
PKG-INFO 3KB
PKG-INFO 3KB
epw.py 78KB
datacollection.py 63KB
datacollection_test.py 58KB
designday.py 56KB
skymodel.py 54KB
legend.py 53KB
wea.py 52KB
sunpath.py 51KB
_datacollectionbase.py 45KB
sql.py 45KB
monthlychart.py 43KB
psychchart.py 41KB
windrose.py 36KB
stat.py 31KB
datatype_test.py 31KB
viewsphere.py 30KB
windrose_test.py 25KB
hourlyplot.py 23KB
color.py 21KB
conf.py 20KB
psychrometrics.py 19KB
analysisperiod.py 18KB
legend_test.py 18KB
dt.py 18KB
wea_test.py 16KB
epw_test.py 16KB
monthlychart_test.py 15KB
base.py 14KB
sql_test.py 13KB
compass.py 12KB
sunpath_test.py 12KB
futil.py 11KB
psychrometrics_test.py 11KB
solarenvelope.py 10KB
graphic.py 10KB
hourlyplot_test.py 9KB
location.py 9KB
datacollectionimmutable_test.py 9KB
ddy.py 8KB
graphic_test.py 7KB
ddy_test.py 7KB
stat_test.py 6KB
psychchart_test.py 6KB
dt_test.py 6KB
color_test.py 5KB
analysisperiod_test.py 5KB
config.py 5KB
header.py 5KB
datacollectionimmutable.py 5KB
translate.py 5KB
location_test.py 4KB
compass_test.py 4KB
generic.py 4KB
rootfinding.py 4KB
thermalcondition.py 3KB
climatezone.py 3KB
energyflux.py 3KB
viewsphere_test.py 3KB
skymodel_test.py 3KB
__init__.py 3KB
volumeflowrate.py 3KB
setconfig.py 3KB
volume.py 3KB
energy.py 3KB
distance.py 3KB
area.py 3KB
energyintensity.py 3KB
volumeflowrateintensity.py 2KB
logutil.py 2KB
fraction.py 2KB
specificenergy.py 2KB
共 159 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功