Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ni1o1 committed Apr 18, 2022
1 parent cecf76e commit 27428ae
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions docs/source/bdshadow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Building shadow
Shadow from sunlight
--------------------------------------

.. function:: pybdshadow.bdshadow_sunlight(buildings, date, merge=False, height='height', ground=0)
.. function:: pybdshadow.bdshadow_sunlight(buildings, date, height='height', roof=False,include_building = True,ground=0)

Calculate the sunlight shadow of the buildings.

Expand All @@ -19,10 +19,12 @@ buildings : GeoDataFrame
Buildings. coordinate system should be WGS84
date : datetime
Datetime
merge : bool
whether to merge the wall shadows into the building shadows
height : string
Column name of building height
roof : bool
whether to calculate the roof shadows
include_building : bool
whether the shadow include building outline
ground : number
Height of the ground

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
author = 'Qing Yu'

# The full version, including alpha/beta/rc tags
release = '0.2.2'
version = '0.2.2'
release = '0.2.3'
version = '0.2.3'
html_logo = "_static/logo-wordmark-light.png"
html_favicon = '_static/logo.ico'
# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pybdshadow",
version="0.2.2",
version="0.2.3",
author="Qing Yu",
author_email="[email protected]",
description="Python package to generate building shadow geometry",
Expand Down
2 changes: 1 addition & 1 deletion src/pybdshadow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

__version__ = '0.2.2'
__version__ = '0.2.3'
__author__ = 'Qing Yu <[email protected]>'

# module level doc-string
Expand Down
4 changes: 4 additions & 0 deletions src/pybdshadow/pybdshadow.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def bdshadow_sunlight(buildings, date, height='height', roof=False,include_buil
Calculate the sunlight shadow of the buildings.
**Parameters**
buildings : GeoDataFrame
Buildings. coordinate system should be WGS84
date : datetime
Expand All @@ -96,6 +97,7 @@ def bdshadow_sunlight(buildings, date, height='height', roof=False,include_buil
Height of the ground
**Return**
shadows : GeoDataFrame
Building shadow
'''
Expand Down Expand Up @@ -264,6 +266,7 @@ def bdshadow_pointlight(buildings,
Calculate the sunlight shadow of the buildings.
**Parameters**
buildings : GeoDataFrame
Buildings. coordinate system should be WGS84
pointlon,pointlat,pointheight : float
Expand All @@ -278,6 +281,7 @@ def bdshadow_pointlight(buildings,
Height of the ground
**Return**
shadows : GeoDataFrame
Building shadow
'''
Expand Down

0 comments on commit 27428ae

Please sign in to comment.