Skip to main content

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


Download files

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

Source Distribution

lcz4py-0.1.0.tar.gz (198.9 kB view details)

Uploaded Source

Built Distribution

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

lcz4py-0.1.0-py3-none-any.whl (234.9 kB view details)

Uploaded Python 3

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

Hashes for lcz4py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25a5bd3946dafa5abacd907cf5394fd6da5f496320bee760af91dc59126d072a
MD5 a5d5848a4776e762918e339b65dd38f9
BLAKE2b-256 ff5335a6d469b194e7c1d851a0335190ecef4dfc442a7fad544321e465ecbf94

See more details on using hashes here.

Provenance

The following attestation bundles were made for lcz4py-0.1.0.tar.gz:

Publisher: publish.yml on ByMaxAnjos/LCZ4py

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

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

Hashes for lcz4py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47866ba15a34d997a717026ad2819227c55efecbd22385b876bab60ac14857f4
MD5 efe5615f3d34318ef13e0eee777200d3
BLAKE2b-256 f4b243bc3ee93803cd362a1646d8277885f0c085bee04fb2e30a2a95c7d24b0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lcz4py-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ByMaxAnjos/LCZ4py

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