尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Tolkien's 1911 walk through the Swiss Alps, traced on a rayshader relief rendered in R
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 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.