mirror of
https://github.com/IvanPalm/IsohypsesWallpaper.git
synced 2026-06-05 21:12:32 +02:00
Generate minimalist desktop wallpapers from topographic contour lines (isohypses) and hillshaded relief.
- Python 100%
| docs | ||
| src/isohypseswallpaper | ||
| tests | ||
| .gitignore | ||
| example_output.png | ||
| LICENSE | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
Isohypses Wallpaper
Generate minimalist desktop wallpapers from topographic contour lines (isohypses) and hillshaded relief.
The tool fetches SRTM elevation data for a user-defined geographic area and produces a high-resolution image suitable for desktop backgrounds, with customizable colors and contour spacing.
Features
- Generate wallpapers from real-world terrain
- Hillshade relief on a uniform background color
- Optional contour (isohypse) lines
- Configurable via command line
- Uses free SRTM elevation data
- Suitable for widescreen and high-resolution displays
Example Output
- Uniform background color
- Subtle hillshade for depth
- Clean contour lines for structure
How it works
- Converts zoom level and latitude to meters-per-pixel using Web Mercator rules
- Computes a geographic bounding box matching the requested screen size
- Downloads and clips SRTM elevation data
- Resamples DEM to match output resolution
- Computes hillshade
- Applies hillshade to a uniform background color
- Saves the final image
Documentation
Data Sources
- Elevation data: NASA SRTM (~30m spatial resolution) via elevation library
License
GNU General Public License (see LICENSE file).
Acknowledgements
- NASA / USGS for SRTM data
- GDAL and rasterio projects
- matplotlib and scipy communities
