Related Work
Datasets, viewers and papers close to Terrain Viewer (MERRA-2, ShadeMap, LiDAR Lens, CutSheetRX, Aguacero, OpenGlobus), what each is and why it matters here, with a comparison of shadow techniques and the open status of the Petén lidar surveys
Projects seen in the wild that do something close to this app, feed it data, or show where it could go next. Each entry says what it is and why it matters here. The post that brought each one up is linked next to it.
Data
- NASA MERRA-2 (post). NASA GMAO's global atmospheric reanalysis: hundreds of variables (wind, temperature, dust, aerosols, ozone, precipitation, soil water) every hour since 1980, at 0.5 × 0.625 degrees, combining satellite, ground and aircraft observations with a physics model. The raw files need a free Earthdata login. Why it matters: NASA GIBS publishes about thirty MERRA-2 monthly means as keyless, CORS-open Web Mercator tiles at fixed addresses (
MERRA2_*_Monthly, to zoom 6, with adefaulttime that follows the latest month), so they work as raster overlays with no server. The library has five of them as overlays: surface wind speed, 2 m air temperature, surface dust, aerosol optical thickness at 550 nm, and ozone at 50 hPa (search "MERRA-2"). Coarse, for regional context: the dust belt next to a desert site, the aerosol haze that degrades a given month's imagery. A dated version (pick a month) would go through the dated-imagery schema and is not done.
Sun and shadows
- ShadeMap (post). Ted Piotrowski's map of terrain, building and tree shadows at any date and hour worldwide, with sun-exposure hours over a date range. Why it matters: the reference for the question our Shadows mode and Sun Position answer for one moment. It is now an Open In destination, carrying the position, zoom, bearing and pitch (
shademap.app/@lat,lng,{zoom}z,{time}t,{bearing}b,{pitch}p,0m).
Shadow techniques compared
How each draws shadows, from ShadeMap's npm bundle (mapbox-gl-shadow-simulator 0.68) and our own code (lib/shadow-live-gl-layer.ts, lib/shadow-kernel.ts, the building shadow layer). Our two renderers and their measurements: Shadow Renderers.
| Terrain Viewer | ShadeMap | |
|---|---|---|
| Terrain shadows | Live (default): per view, on the GPU, as a MapLibre custom layer: a ray marched per fragment over an R32F mosaic of the view's DEM tiles, then over a mosaic three zooms coarser reaching tens of kilometres beyond, Earth curvature and refraction included, soft edge from the sun's disc. Tiles: per tile, on the CPU, a shadow-height sweep up to the Search Radius (256 px by default, 512 at most), a shadow:// raster tile for exports and the Iso-line | Per view, on the GPU, as a MapLibre custom layer: fixed-step march with Earth curvature correction, DSM and canopy maps as input |
| Shadow length | Live: the view plus the far mosaic (50 to 300 km); Tiles: the radius | Bounded by the view |
| Buildings | GPU: OSM footprints (OpenFreeMap) swept away from the sun by height / tan(altitude) into a mask, flat ground, from zoom 13; and any DSM source in the terrain renderers | Building heights added to the height map, so they fall on slopes too |
| Moving the sun | Live: uniforms and one draw, real time; Tiles: every tile recomputed (elevation is cached); buildings: a repaint | Real time |
| Any DEM | Yes: every terrain source, DSMs included, at its own resolution | Pluggable DEM, DSM upload |
| Licence | This repo | Closed, API key required, paid above a free tier (UNLICENSED on npm) |
Viewers and tools
- LiDAR Lens (post). Tim Daw's phone-friendly viewer of the open-government LiDAR terrain of England, Wales, Scotland and Ireland under a movable relief lens, with scheduled monuments and historic-environment records one tap away. It makes tiles on demand from the Environment Agency's WCS in a service worker, much like our WCS sources. Why it matters: the same "national LiDAR in the browser, no install" idea, tuned for heritage fieldwork. An Open In destination over its area (48.85° to 61.6° N, 16° W to 9° E), greyed out elsewhere (
#map={z}/{lat}/{lng}). - CutSheetRX by Senter Farms (post). A farmer-built Leaflet tool on USGS 3DEP bare earth (and national LiDAR in Canada, France, England, Switzerland and several more European countries): shaded relief, slope, contours, elevation profiles, drainage, cut and fill for land levelling, rice levees and pond dams with a 3D view. Why it matters: shows what earthworks tools on a national DTM look like for a practical audience, a direction for our draw tools (cut and fill volumes over a polygon). Not an Open In destination: it keeps its view in local storage, not in the URL.
- Aguacero WX (post). A weather model viewer that renders model fields as 3D volumes and iso-surfaces over the map (the jet stream as a 100 kt surface casting its shadow, polar vortex lobes above the radar). Why it matters: volumetric rendering on a web map, the kind of thing a MERRA-2 3D overlay would need. Not an Open In destination: its URL takes saved map and workflow ids, not a location.
- OpenGlobus Mapterhorn examples (post). OpenGlobus, an open-source WebGL globe, flying around the Matterhorn on Mapterhorn terrain, with atmosphere and smooth terrain. Why it matters: the same Mapterhorn tiles as our default source, in a globe engine with atmospheric scattering and free navigation, a reference for how our 3D view could look.
- Landslide runout in 3D (post). A research prototype by Hemant Mahatara, not public yet: pick a slope and it computes where debris would flow, how fast and how far, on free 30 m elevation or your own DEM, with Google Open Buildings heights in 3D. Why it matters: a hazard model on the same global DEMs as our library, a step beyond our river REM view.
Mentions
- Cyber Detective's OSINT tool collection lists historical-satellite.iconem.com, this repo's historical mode, under Satellite/Aerial Imagery, right after Google Earth.
Maya lowlands lidar: the Petén paper and its data
Estrada-Belli, F., Canuto, M. A., Šprajc, I., Fernandez-Diaz, J. C. (2025). New regional-scale Classic Maya population density estimates and settlement distribution models through airborne lidar scanning. Journal of Archaeological Science: Reports 66, 105288 (CC BY-NC-ND 4.0). Lidar transects across northern and southern Petén and the Mexican lowlands, counted for structures and scaled to a regional population estimate. Also on Research References.
Its Table 1 lists the lidar behind it. Where each one can be read, as of November 2026:
| Dataset | Access | Licence | Format, size | In the app |
|---|---|---|---|---|
| G-LiHT 2013 (NASA Goddard, about 500 km², 3.3 pts/m²), reprocessed for archaeology (Britton et al.), western half, UTM 15N | OpenTopography OT.112026.32615.1, opentopography.s3.sdsc.edu/raster/MX13W_Britton/MX13W_Britton_be.vrt | CC BY 4.0 | 222 Float32 COGs behind one VRT, 0.5 m bare earth (6.7 GB); 0.33 m (14.8 GB) and 1 m (1.8 GB) DTMs as tiles without a VRT | Yes, remote: "G-LiHT 2013 Yucatan West" in the library |
| Same, eastern half, UTM 16N | OT.112026.32616.1, MX13E_Britton_be.vrt | CC BY 4.0 | 234 COGs, 0.5 m (7.3 GB) | Yes, remote: "G-LiHT 2013 Yucatan East" |
| G-LiHT 2013, NASA originals (AMIGA-Carb) | glihtdata.gsfc.nasa.gov (DTM, CHM per flight as .tar.gz, no login, no CORS); LP DAAC GLDTMT, GLCHMT (GeoTIFF, Earthdata login) | NASA, public domain | 1 m DTM and canopy height GeoTIFFs, about 240 MB per flight; the KMZs are the DTM as 8-bit grey (elevation, not hillshade) | The KMZs, yes, through a CORS extension or the tile service's proxy: gliht:// draws any campaign and decodes the three Kiuic blocks to terrain (0.1-0.2 m RMS against the GeoTIFF). The GeoTIFFs are uncompressed stripped Float32 inside gzip (not range-readable); LP DAAC's copy is the same files uncompressed, range-readable with an Earthdata token through the tile service's /proxy/earthdata. Footprints in the app: Coverage > NASA G-LiHT (details). The 2013 flights are in Mexico; the few that reach the Usumacinta border barely touch Petén. The wall-to-wall Kiuic blocks (93 km², Puuc) are in the NASA archive only |
| Alianza Eredd 2013 (CartoData) | Nothing published found | Not public | No | |
| Chactún, CHRP 2016 (NCALM, Optech Titan, 0.5 m), Campeche | Not on OpenTopography. Derived visualisations only: figshare 10.6084/m9.figshare.22202395 (Kokalj et al. 2023, sky-view factor, openness, slope and canopy height as zipped tiles) | CC BY 4.0 (the derivatives) | 1.1 GB and 0.2 GB zips, no elevation values | No (the derivatives could be an overlay, see below) |
| PACUNAM Lidar Initiative 2016 (NCALM, 2,144 km², Canuto et al. 2018): Tikal, Holmul PLI-15 (2015/16), La Corona and the other blocks | Not public. Only the mapped features (causeways, terraces, field zones) are on Dryad 10.5061/dryad.k51j708 | Vectors | No |
None of the surveys over Petén itself is open. The open part of Table 1 is the G-LiHT transects in Mexico, already readable remotely from OpenTopography's CORS-open bucket, and the paper's Petén transects are best seen through the imagery and global models in the app until PACUNAM releases its rasters.
Hosting options, if wanted:
- Remote, nothing hosted: OpenTopography's VRT and COGs, as the library entries do. A 1 m VRT over the
DTM_1m/tiles (a small XML file, which could live on a GitHub release asset of this repo or be built in the browser) would load faster at low zoom than the 0.5 m one, with no data copied. - Rehosted on a release asset (see Releases,
scripts/dataset-assets.mjs,datasets.lock.json): the NASA G-LiHT 2013 canopy height models, public domain, converted from the per-flight tar.gz files to one COG per half. That gives a canopy-height overlay that OpenTopography does not publish as a raster. Several GB (2.2 GB of gzip for the 13 Yucatan flights OpenTopography covers), so not done without approval. Tested 2026-11-24: no client-side shortcut exists (no CORS, gzip, no DSM on OpenTopography to derive it from), see NASA G-LiHT. The cheapest worthwhile re-host is the three Kiuic DTMs, about 135 MB of gzip.