Skip to main content

Terrain-aware solar illumination modeling using DEMs and orbital sun geometry.

Project description

PyPI Python CI codecov Docs License Black

solshade is a Python toolkit for simulating solar radiation across landscapes, accounting for terrain shadows, solar angles, and orbital geometry. It’s designed for interdisciplinary research at the intersection of astronomy, glaciology, botany, and geology. Capturing the dance of sol (Sun) and shade (Shadow) over landscapes.


What does solshade do?

  • Computes per-pixel solar exposure over time from a DEM
  • Generates terrain-aware horizon maps to determine shadowing
  • Uses precise solar ephemerides (via Skyfield)
  • Calculates:
    • Total annual insolation
    • Date of maximum sunlight
    • Mean solar incidence angle
    • Terrain shading based on real orbital paths

solshade is designed to install cleanly with a single invocation of the standard Python package tool:

pip install solshade

Here are some essential project links:

Example Applications

  • Studying microhabitats in extreme environments
  • Predicting snowmelt timing in complex terrain
  • Understanding glacial melt and shadowed regions
  • Modeling plant growing seasons across topography

License

MIT License — see LICENSE file.


Acknowledgments

Inspired by many interesting conversations with Anna O'Flynn, Anthony Zerafa & Chris Omelon at the McGill Arctic Research Station (MARS) on Axel Heiberg Island, 2025.

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

solshade-1.0.0.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

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

solshade-1.0.0-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file solshade-1.0.0.tar.gz.

File metadata

  • Download URL: solshade-1.0.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for solshade-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a725f724ef5896884b4067e98530b5ec3d7cec71d8206601a3f84bfac936004
MD5 0217129cb8f6ca4c63bb4e4f4b091c09
BLAKE2b-256 1ccfbc0c75c73e77921b5996195cad4947c4131d1fcff0a9bb9e93043f742f80

See more details on using hashes here.

File details

Details for the file solshade-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: solshade-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for solshade-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f09ac49b3b3632cac06a7342aefcd9b0727ca1ab14dc2ae4efac382c82ec6622
MD5 dc6699d17a6e94b08a5853657d6ad47d
BLAKE2b-256 96f9a7c7318f7b3dc2f7559ec8651f475cbf67c5e2ce606f952e9e2e6ad0bb4b

See more details on using hashes here.

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