Limão calculates projected direct sunlight intensities over time for arbitrary building elevations. See how direct sunlight varies throughout the year for windows at different orientations, and heights above ground level, or compare sunlight intensities for different locations.
Primarily this depends on the the building orientation, the latitude, and the time of the year, but also on occluding obstacles. Limão incorporates time and location dependent sunlight intensity projections, with digital surface and terrain maps, to determine an estimated overall intensity as a function of time.
Applications
For illumination of a wall (for example, for photovoltaic panel placement), Limão provides predicted sunlight intensities on a user-defined vertical plane in real space:
Here the intensities are averaged over the year, and the variation is mostly due to occluding buildings. The intensities over time for a single point (lat, lon, height) can also be queried:
This is useful for comparing the intensity from different directions, and the produced plots indicate the maximum and minimum intensity during daylight hours.
Installation
Either from the PyPI release
pip install limao
or the bleeding edge via GitHub
git clone git@github.com:dpohanlon/limao.git
cd limao
pip install .
Usage
Limão requires digital surface models (DSM) and digital terrain models (DTM) for the region of interest, in addition to the latitude and longitude. For the UK these are available from DEFRA (direct link), and are derived from satellite LIDAR measurements. Latitude and longitude can be obtained from Google Maps, and must correspond to a point on the DSM and DTMs.
Currently this assumes UK DSM/DTMs, as the lat/lon is converted into UK Ordnance Survey map coordinates.
Limão ships with a standalone executable and as a library - here we'll just use the command line interface. All use cases require the latitude, longitude, a DSM, and a DTM:
limao --lat 52.198 --lon 0.135 -s TL45ne_LZ_DSM_2m.tif -t TL45ne_DTM_2m.tif
By default this will just produce the intensity from the north and south on the point defined by the latitude and longitude coordinates. To produce the 2D projection, additionally pass the --proj argument, with optional horizontal and vertical extent of the surface in metres:
--proj --horizontal 20 --vertical 8
Metadata
Release files for limao 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| limao-0.1.0.tar.gz | 7.3 kB | Without provenance | Details for limao-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| limao-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for limao-0.1.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / limao-0.1.0.tar.gz
| Download URL | limao-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4a17b40b4d371b57ad448a2a30b6feb5d93a8f9b517a7e128f2b591ead0fe97
|
|
BLAKE2b-256 checksum How to use checksums |
02dcb08673f8981d3c8f8e043a3f0583ff29e7b570a6140fba40b86f76aaab9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / limao-0.1.0-py3-none-any.whl
| Download URL | limao-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e48116ed04a90914a13af4457130dfb59df30916a796c883a9db0f5738b5036
|
|
BLAKE2b-256 checksum How to use checksums |
5e7d1210dd756ea84bcfc22f9b600e634578c73c0c77367c13aa54db9672d59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for limao 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.