I've been working with the new Image Sequencer, a Public Lab project, to try see how it works as a "filter" for map tiles on another site. Working with Mapbox's Landsat Live site, which shows the most recent Landsat satellite images for anywhere on the earth, I created a browser bookmarklet which accepts an Image Sequencer "command string" and runs it on all the tiles currently shown.
When you click the bookmarklet, you're prompted for a command string:
It's a little slow, but I ran the NDVI equation with the command
ndvi,colormap (inappropriately, since the imagery shown is just RGB, not infrared, but just as a test) and you can see the results in the lead image and in this video:
- it needs some tweaking to "detect" the right layer of tiles to apply to, or it'll apply to the labeling layers too
- we haven't yet allowed setting options via the string syntax, but will in this issue and that'll allow things like choosing different color maps
- we're working on doing the processing on another thread here
- we could to run the tile processing sequentially because it'd look cool... boop boop boop boop! (the sound of each tile getting converted)
I'm reaching out to MapBox to see if they have infrared bands available, so we can do true NDVI! Any help appreciated!
This is the same kind of filtering we're now enabling in MapKnitter; update on that coming soon: