Skip to main content

Python library to load, analyze and modify EnergyPlus Weather files (epw).

Project description

Ladybug

Build Status Coverage Status

Python 3.7 Python 2.7 IronPython

ladybug

Ladybug is a Python library to load, analyze and modify EnergyPlus Weather files (epw). You can download epw files from EPWMap.

This repository includes the core library which is the base for Ladybug. For plugin-specific questions and comments refer to ladybug-grasshopper or ladybug-dynamo repositories.

Note

For the Legacy Ladybug Grasshopper Plugin see this repository.

API Documentation

Installation

pip install ladybug-core

Usage

# 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 for solar irradiance calculations. Available under BSD 3-clause.
  • PsychroLib for psychrometric calculations. Available under MIT License.

Applicable copyright notices for these works can be found within the relevant .py files.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ladybug-core-0.39.16.tar.gz (9.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ladybug_core-0.39.16-py2.py3-none-any.whl (234.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ladybug-core-0.39.16.tar.gz.

File metadata

  • Download URL: ladybug-core-0.39.16.tar.gz
  • Upload date:
  • Size: 9.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for ladybug-core-0.39.16.tar.gz
Algorithm Hash digest
SHA256 582e69919c466d1d5c6745317c4fd25582f7a0adfd6f5f8d4a37b38b8a921fe1
MD5 3d30c6f78a7fa55839588c8f9fefa52e
BLAKE2b-256 40709f086b5ee4abca5d8d2fbe1f5bf047dbe8f1e7d3072ec1f04b6d82d15500

See more details on using hashes here.

File details

Details for the file ladybug_core-0.39.16-py2.py3-none-any.whl.

File metadata

  • Download URL: ladybug_core-0.39.16-py2.py3-none-any.whl
  • Upload date:
  • Size: 234.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.11

File hashes

Hashes for ladybug_core-0.39.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b2a26127c1ab2ec790d0c2689acbea526606cf7da10dec853cb26faa9571a1fa
MD5 f1a0587a7b4c30fb9a59e235dafda167
BLAKE2b-256 bd908548435a8897e31c5e85e84af16aebb559b7f4d442cc549f8098f22e63cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page