水杉输入法 MSIME|开源中文输入法
水杉输入法(MSIME)是开源中文输入法,面向 Windows、macOS、Linux、Android、iOS 与 HarmonyOS 开发,支持全拼、双拼、五笔,候选词旁直接显示译文。查看下载、使用指南与常见问题。
翻訳待ち
Switzerland in shaded relief, rendered in R with rayshader, with the route of the 1911 Alpine walk that Tolkien said shaped Bilbo’s crossing of the Misty Mountains.
翻訳待ち
その他R · PythonGitHub @thecodeakオンライン所有者未確認
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Tolkien's 1911 walk through the Swiss Alps, traced on a rayshader relief rendered in R
翻訳待ち
Loading the full README.
Read the full README ↗In the summer of 1911 a nineteen-year-old J.R.R. Tolkien walked through the Bernese Oberland and into the Valais. More than fifty years later he wrote that Bilbo's crossing of the Misty Mountains, "including the glissade down the slithering stones into the pine woods", was based on it (Letter 306).
This repository renders Switzerland's relief in R with rayshader and traces the walk across it. The interactive version, with the route drawn as you scroll, is at maciejkielar.com/work/tolkien-1911.
| Step | File | Output |
|---|---|---|
| Country relief | R/01_switzerland.R | renders/switzerland_final_lakes.png (3500 × 3500, 350 samples) |
| Route-region relief | R/02_route_region.R | renders/route_region.png: Bernese Oberland and Upper Valais at ~52 m cells, matched to the country render's palette range and vertical exaggeration |
| Geometry | R/03_web_geometry.R | data/route_lv03.csv, data/border_lv03.csv: route and border projected to the Swiss LV03 grid the reliefs were rendered in |
| Web assets | tools/web_assets.py | web/relief.webp, web/relief-detail.webp (transparent, cast shadow kept; the detail colour-matched to the overview), web/route.json (coordinates the page draws with) |
| Preview | tools/preview.py | docs/route_preview.jpg, the image above |
Rscript R/01_switzerland.R
Rscript R/02_route_region.R # add `preview` for a quick framing check
Rscript R/03_web_geometry.R
python tools/web_assets.py renders/switzerland_final_lakes.png renders/route_region.png --out web # --debug writes fit overlays
python tools/preview.py
Scripts download and cache their data in data-raw/ (or set RELIEF_DATA_DIR to an existing cache). Renders are slow: plan on tens of minutes for the full-size ones.
Both reliefs are rendered top-down (phi = 89, orthographic), so each image maps to LV03 with a plain scale and offset. web_assets.py fits the country render by matching the relief's bounding box to the border's (scales agree between axes to within 0.1%). The regional render's southern edge is snow on white paper, so its fit is refined by maximising the overlap between the projected border and the rendered relief.
data/route.csv lists every point the line passes through, in order. Rows with stop = 1 are the stops shown on the page; each says how it is known:
Between stops the line follows valleys and passes through intermediate places. It is a reconstruction, not a recorded track.
Elevation via elevatr (AWS Terrain Tiles) · border from GADM · rivers from HydroRIVERS · lakes from Natural Earth · lighting HDRI from Poly Haven. Downloaded data and full-size renders are not committed; each source keeps its own licence.
More reliefs: thecodeak/rayshader-reliefs.
Code: MIT.