234 points · by warrenm · 2y ago · 38 comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landsat Alphabet Viewer</title>
<style>
body { font-family: Arial, sans-serif; text-align: center; }
#imageContainer { display: flex; flex-wrap: wrap; justify-content: center; }
img { width: 100px; height: 100px; margin: 5px; object-fit: cover; }
</style>
</head>
<body>
<h1>Landsat Alphabet Viewer</h1>
<div id="imageContainer"></div>
<script>
const letters = {
'A': 3, 'B': 1, 'C': 2, 'D': 1, 'E': 3, 'F': 1, 'G': 0, 'H': 1,
'I': 4, 'J': 2, 'K': 1, 'L': 3, 'M': 2, 'N': 2, 'O': 1, 'P': 1,
'Q': 1, 'R': 3, 'S': 2, 'T': 1, 'U': 2, 'V': 3, 'W': 1, 'X': 2,
'Y': 2, 'Z': 1
};
const container = document.getElementById('imageContainer');
const baseUrl = 'https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/public/images/';
for (const [letter, maxNum] of Object.entries(letters)) {
for (let i = 0; i <= maxNum; i++) {
const img = document.createElement('img');
img.src = `${baseUrl}${letter.toLowerCase()}_${i}.jpg`;
img.alt = `${letter}_${i}`;
img.title = `${letter}_${i}`;
container.appendChild(img);
}
}
</script>
</body>
</html>Could try to split/reduce the strings to try to "de-colour" the entropy/ heuristic to avoid it
The images load extremely slowly. This can be confusing as you do not see any spinner or indication that they are loading. But they do come if you are patient.
As you have some letters in the cache they render instantly so to the users it looks totally broken. Unless your linger on the page and the letters snaps in 20 seconds later (one by one).
An empty place holder (so you can see the space) until the letter loads would be nice. Maybe even a "Loading" placeholder text for each letter. An animated (fake) spinner would be a nice visual cue. Then swap the image when it is loaded.
And it’s from a government agency.
Direct link: https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/pu...
Whatever approach you take, you'll probably be selecting the final set by hand, so it's just about building the candidate set in an efficient manner. Low absolute accuracy isn't really an issue as long as you end up with a managable set to review.
As you work through your day as a satellite image person (I don’t know the job title, sorry) and see a shape that looks like a letter screenshot and save it. You’ll have an alphabet in a very short amount of time.
Given the repeats of letters I’m seeing I think that’s all they’ve done here.
https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/pu...
https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/pu...
https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/pu...
That last one, yeah maybe, but gets kind of lost in the noise. The two first I have no idea how it's supposed to be an N.
Cool little experiment none the less :)
Any guess what the class would be called? :)