Friday, April 06, 2007

Multispectral satellite imagery fixed

The imagery hadn't been working properly for about a year and a half, and we couldn't figure out why. We had brutalized the directory and nuked all the images. But when we uploaded them again, some old, old, old images were magically inserting themselves into the loop.

Yesterday, inspecting the script that does the renaming, I saw that there was a typo.

Essentially all the image files are renamed down one number, so whatever25.jpg is renamed whatever24.jpg and so on down the line, and the oldest one is dropped. Then the latest satellite image is uploaded to the site and named whatever25.jpg.

In the renaming routine, the command called for whatever(x),jpg to be renamed whatever(x-1).jpg. Note the comma. So it would never actually rename the older files, because the ones being called for didn't exist, because of the typo.

Anyhow, technical explanation, but I'm just so happy that we have the multispectral prairie imagery back.

Also, we're launching the UNSTABLE page, which outlines a project (hopefully) being undertaken in the summer of 2008.


Post a Comment

<< Home