Skip to main content

urban multi-scale environmental predictor

Project description

UMEP Core

Installation

pip install umep

Or with uv:

uv add umep

Troubleshooting

If you encounter DLL or import errors (common on Windows), run the diagnostic tool:

umep-doctor

Common Issues

OSGeo4W / QGIS Users

Do NOT pip install into the OSGeo4W Python environment. The pre-installed GDAL binaries will conflict with rasterio's bundled DLLs, causing errors like:

ImportError: DLL load failed while importing _base: The specified procedure could not be found.

Instead, create a separate virtual environment:

uv venv --python 3.12
.venv\Scripts\activate   # Windows
uv pip install umep

Conda Alternative

If you prefer conda, use conda-forge for the geospatial dependencies:

conda create -n umep -c conda-forge python=3.12 rasterio geopandas pyproj shapely
conda activate umep
pip install umep

Development Setup

  • Install uv package manager (e.g. pip install uv).
  • Clone repo.
  • Run uv sync from the directory where pyproject.toml is located to install .venv and packages.
  • Select .venv Python environment in your IDE.
  • FYI: Recommended VS Code settings and extensions are included in the repo.

Demo

See the demo notebook file at /demo.py.

Also, a test with GBG data is found in /solweig_gbg_test.py

The demo and the test uses the datasets included in the tests folder

Original code

The code reproduced in the umep folder is adapted from the original GPLv3-licensed code by Fredrik Lindberg, Ting Sun, Sue Grimmond, Yihao Tang, Nils Wallenberg.

The original code has been modified to work without QGIS to facilitate Python workflows.

The original code can be found at: UMEP-processing.

This modified code is licensed under the GNU General Public License v3.0.

See the LICENSE file for details.

Please give all credit for UMEP code to the original authors and cite accordingly.

© Copyright 2018 - 2020, Fredrik Lindberg, Ting Sun, Sue Grimmond, Yihao Tang, Nils Wallenberg.

Lindberg F, Grimmond CSB, Gabey A, Huang B, Kent CW, Sun T, Theeuwes N, Järvi L, Ward H, Capel- Timms I, Chang YY, Jonsson P, Krave N, Liu D, Meyer D, Olofson F, Tan JG, Wästberg D, Xue L, Zhang Z (2018) Urban Multi-scale Environmental Predictor (UMEP) - An integrated tool for city-based climate services. Environmental Modelling and Software.99, 70-87 https://doi.org/10.1016/j.envsoft.2017.09.020

Demo Data

Two seprated demo dataset are included

ATENS (vector data)

Tree Canopies

Copernicus

Trees

https://walkable.cityofathens.gr/home

Buildings

http://gis.cityofathens.gr/layers/athens_geonode_data:geonode:c40solarmap

Gothenburg (raster data)

Standard dataset used in tutorials (https://umep-docs.readthedocs.io/en/latest/Tutorials.html)

TODOs

  • Is first idx divisor in sun on wall a bug?

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

umep-0.0.1a19.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

umep-0.0.1a19-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file umep-0.0.1a19.tar.gz.

File metadata

  • Download URL: umep-0.0.1a19.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for umep-0.0.1a19.tar.gz
Algorithm Hash digest
SHA256 4b9f3e509d4a647d63bc35325b6ec2a7a1d67b10402df690a9fd18c7f2998b32
MD5 c8d5c913141901703f8ab3f5184fb29c
BLAKE2b-256 5a51c6b2b7c37b5be4b1ebbc3fa6559fac386543a228adde3b4bbf3d83f8536d

See more details on using hashes here.

Provenance

The following attestation bundles were made for umep-0.0.1a19.tar.gz:

Publisher: python-publish.yml on UMEP-dev/umep-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file umep-0.0.1a19-py3-none-any.whl.

File metadata

  • Download URL: umep-0.0.1a19-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for umep-0.0.1a19-py3-none-any.whl
Algorithm Hash digest
SHA256 bca7dd73b9c195b558a31fec40eb56505a48ed362eb7f4e6ed797ecdfc4daed2
MD5 0f79d43f570acfae08ee37328e5ae6a6
BLAKE2b-256 3a9402a3f1e2efe03fe00d32094bce900cb1f7eb3b392c3ea0114674fb804a7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for umep-0.0.1a19-py3-none-any.whl:

Publisher: python-publish.yml on UMEP-dev/umep-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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