I build Sarkoa, mess around with satellite data, and write about the engineering headaches behind turning raw imagery into web maps people can actually use.
Featured
- Measuring how much extra light cities generate during festivities.Raw satellite night-light ratios are mostly weather noise. Here's how a difference-in-differences setup (and a humbling Chicago placebo test) separated real holiday lights from clouds.
- Optimizing your Instagram travel: Fall colour timing for a continent.How I turned 10 years of MODIS greenness curves into a continental fall-colour map for Canada and the US - and checked it against 46 real-world foliage records.
- Turns out Rust really might take over everything.My Cloudflare Worker tiler choked on the exact WebP COGs my own processor produced - so I threw out the TypeScript tiler and rebuilt it in Rust.
Archive
- Parallelizing auth checks and map config reads shaved 2.6 seconds off cold mobile map loads - measured by how fast you can actually tap a marker and get an answer.
- Fixing Sarkoa's map URLs so shared links actually work for everyone.Why I ripped language prefixes out of Sarkoa map URLs while packing drawn polygons and NDVI date windows right into the URL fragment.
- Making Sarkoa interplanetary.Taking Sarkoa maps to the Moon, Mars and nine other worlds without touching Earth maps - and why a 10 km hexagon on the Moon first came out 2.73 km wide.
- Geospatial web apps are lacking fun animations. We're going to change that.How I packed wind and river-current vectors into 12-bit RGB tiles without mangling slow-moving water - bringing direction error down from 2.08° to 0.18°.
- Creating a Sentinel-2 cloud-free global mosaic meets its match - IrelandHow my cloud-free Sentinel-2 basemap passed automated QA with flying colours while still leaving giant cumulus clouds parked over western Ireland.
- Wouldn't it be cool to query any file you want?Why querying raw GeoJSON inside a Cloudflare Worker hits a 32 MB ceiling - because V8 balloons JSON to nearly 3× its disk size in RAM.
- SAR change detection results over the Camp FireThree days after the 2018 Camp Fire started, Sentinel-1 radar flagged thousands of destroyed buildings with 94% precision - and still missed almost two-thirds of the destruction.
- AI seems to be the future and for some reason people are charging for it.How Sarkoa's hosted MCP server lets an AI agent upload and inspect multi-gigabyte GeoTIFFs without trying to shove raw imagery through a chat context.
- Keeping a giant GeoTIFF from blocking everyone else's uploads.How I split Sarkoa's upload queue into five plan-based priority lanes with Redis/RQ, and what priority can and can't do when one worker is busy.
- Re-exploring some SAR theory to prove I'm not washed.A two-minute check on my own Sentinel-1 interferogram found a 330-cycle phase ramp - about nine metres of ground movement that never happened - and told me not to publish the map.
- Adding smart uploading so my spotty internet stops annoying me.Why a progress percentage isn't enough to resume an interrupted upload, and how checking R2 directly saves you from re-uploading gigabytes.
- Making mapping collaborative without paying Felt a fortune.Live comments and 'look over here' pointers on Sarkoa maps using one Cloudflare Durable Object per map.
- Letting users put their own domain in front of Sarkoa maps.One shared Cloudflare Worker, one CNAME record, and a strict allowlist of maps - how Sarkoa serves custom customer domains without spinning up separate deployments.
- Creating a new custom file format is stupid... until it's not.Why I ignored every good rule of software engineering and built a custom 3D Hilbert-indexed tile archive (.stva) for moving-object maps.
- RGBA fetching is out, N band fetching is the new sauce.Stop squashing 13-band satellite imagery into RGB on upload - and don't forget to put the band mix in your tile cache key.
- The hard part of application development is assigning cost to a tile request.How I track map tile usage without hammering Postgres on every pan - and why I'd rather eat a few uncounted tiles than take someone's map offline.
- Optimizing Cloud-optimized GeoTIFF tile requests to not explode your Cloudflare bill.How reading 94 extra bytes on purpose cut COG storage requests in half.
- Making a geospatial Google Drive; problems and solutions.Why Sarkoa keeps your original file untouched, builds a separate viewer copy up front, and never lets a big upload touch the app server.