Skip to main content

Python package to generate building shadow geometry

Project description

pybdshadow

1649074615552.png

Documentation Status codecov Tests

Introduction

pybdshadow is a python package to generate building shadow geometry. The latest stable release of the software can be installed via pip and full documentation can be found here.

Example

Given a building GeoDataFrame and UTC datetime, pybdshadow can calculate the building shadow based on the sun position obtained by suncalc

import pybdshadow
#Given UTC datetime
date = pd.to_datetime('2015-01-01 02:45:33.959797119')
#Calculate building shadow
shadows = pybdshadow.bdshadow_sunlight(buildings,date)

pybdshadow also provide visualization method supported by keplergl.

# visualize buildings and shadows
pybdshadow.show_bdshadow(buildings = buildings,shadows = shadows)

1649161376291.png

Detail usage can be found in this example.

Installation

It is recommended to use Python 3.7, 3.8, 3.9

Using pypi PyPI version

pybdshadow can be installed by using pip install. Before installing pybdshadow, make sure that you have installed the available geopandas package. If you already have geopandas installed, run the following code directly from the command prompt to install pybdshadow:

pip install pybdshadow

Dependency

pybdshadow depends on the following packages

  • numpy
  • pandas
  • shapely
  • rtree
  • geopandas
  • matplotlib
  • suncalc
  • keplergl (optional)

Citation information

Citation information can be found at CITATION.cff.

Project details


Download files

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

Source Distribution

pybdshadow-0.1.1.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

pybdshadow-0.1.1-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

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