Python port of LCZ4r — tools for downloading, processing, and visualizing Local Climate Zone (LCZ) maps (Stewart & Oke 2012).
Project description
LCZ4py
Python port of LCZ4r — tools for downloading, processing, and visualizing Local Climate Zone (LCZ) maps (Stewart & Oke 2012) and applying them to urban climate analysis (air temperature, land surface temperature, UHI, thermal comfort).
Reference: Anjos, M. et al. (2025). LCZ4r: An open-source R package for calculating local climate zone products. Scientific Reports. https://www.nature.com/articles/s41598-025-92000-0
Install
pip install -e . # core
pip install -e ".[all]" # + optional extras (viz, geoarrow, duckdb, zonal, interp, ucp, lst, era5-global)
Usage
from LCZ4py import lcz_get_map, lcz_plot_map, lcz_get_parameters
map_path = lcz_get_map(city="Berlin", isave_map=True)
Structure
Functions are grouped following the LCZ4r paper's categorisation:
LCZ4py.general— LCZ map/raster acquisition, morphological parameters, gridded environmental data (LST, CHIRPS, ERA5, PDSI, pollution), area/index statistics.LCZ4py.local— station/point-based air-temperature time series, anomalies, UHI (air + surface), spatial interpolation, variograms, thermal comfort, drought indices.LCZ4py._internal— shared helpers (downloader/cache/i18n/grid base). Not public API.
Testing
pytest tests/
python test.py # end-to-end usage example (downloads a real LCZ map)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lcz4py-0.1.0.tar.gz.
File metadata
- Download URL: lcz4py-0.1.0.tar.gz
- Upload date:
- Size: 198.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25a5bd3946dafa5abacd907cf5394fd6da5f496320bee760af91dc59126d072a
|
|
| MD5 |
a5d5848a4776e762918e339b65dd38f9
|
|
| BLAKE2b-256 |
ff5335a6d469b194e7c1d851a0335190ecef4dfc442a7fad544321e465ecbf94
|
Provenance
The following attestation bundles were made for lcz4py-0.1.0.tar.gz:
Publisher:
publish.yml on ByMaxAnjos/LCZ4py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lcz4py-0.1.0.tar.gz -
Subject digest:
25a5bd3946dafa5abacd907cf5394fd6da5f496320bee760af91dc59126d072a - Sigstore transparency entry: 2170514102
- Sigstore integration time:
-
Permalink:
ByMaxAnjos/LCZ4py@7b8bb1fdd544f0c51166f6e5e116e3ba227e2a3d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ByMaxAnjos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b8bb1fdd544f0c51166f6e5e116e3ba227e2a3d -
Trigger Event:
release
-
Statement type:
File details
Details for the file lcz4py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lcz4py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 234.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47866ba15a34d997a717026ad2819227c55efecbd22385b876bab60ac14857f4
|
|
| MD5 |
efe5615f3d34318ef13e0eee777200d3
|
|
| BLAKE2b-256 |
f4b243bc3ee93803cd362a1646d8277885f0c085bee04fb2e30a2a95c7d24b0d
|
Provenance
The following attestation bundles were made for lcz4py-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ByMaxAnjos/LCZ4py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lcz4py-0.1.0-py3-none-any.whl -
Subject digest:
47866ba15a34d997a717026ad2819227c55efecbd22385b876bab60ac14857f4 - Sigstore transparency entry: 2170514116
- Sigstore integration time:
-
Permalink:
ByMaxAnjos/LCZ4py@7b8bb1fdd544f0c51166f6e5e116e3ba227e2a3d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ByMaxAnjos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b8bb1fdd544f0c51166f6e5e116e3ba227e2a3d -
Trigger Event:
release
-
Statement type: