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-0.1.1.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-0.1.1-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solshade-0.1.1.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-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6d03d5d6ec81fe2693353d14d72d1222965b032911ee552ae6aabfdf9fd268fc
MD5 b61a1b611b1709054525a18f69fc09c5
BLAKE2b-256 0dc3e860cee453798f724bd52ec0491358b7caac8c1c053c0713841fbb84bd15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solshade-0.1.1-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-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6517ff827342a5385260f028888cbefc0a29b367eb2046f0c9e8bc02a73cff41
MD5 9d9573d73cb0ee6a32e9afaeab8cd71e
BLAKE2b-256 2507d51e1ad4c139c70b149beb0e39efcebde9bf08cc5a33516a894a55fdccfe

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