Latest / Star Trails: From Backyard Astronomy to Cosmic Wonder / From Gears to Code: Computing the Cosmos
Transcript
- 0:07Howdy Star Gazers and welcome to this episode
- 0:10of Star Trails. My name is Drew and I'll be your
- 0:13guide to the night sky for the week of April
- 0:16the 19th to the 25th. This week we're continuing
- 0:20our look at astronomy behind the scenes with
- 0:23a discussion on the role of computers and how
- 0:26we learn about the universe. From brass gears
- 0:30and ancient devices to programming, supercomputers,
- 0:34linked radio telescopes, and artificial intelligence,
- 0:38these machines have enabled us to see our reality
- 0:41more clearly. We'll even go retro with a quick
- 0:45foray into Fortran, a programming language that
- 0:49began life on punch cards, but remains deeply
- 0:52embedded in scientific computing even today.
- 0:56Later in the show, we'll take a look at this
- 0:58week's night sky. Whether you're tuning in from
- 1:01the backyard or the balcony, I'm glad you're
- 1:04here. So grab a comfortable spot under the night
- 1:06sky and let's get started. We tend to think of
- 1:12astronomy as something passive. You step outside,
- 1:16you look up, and the universe reveals itself.
- 1:20But that's not really how it works. The sky doesn't
- 1:23label its stars, it doesn't tell you where a
- 1:26planet will be tomorrow, and it doesn't hand
- 1:29you an image of a distant galaxy fully formed.
- 1:33To understand the universe, we've always had
- 1:36to compute it. And for as long as we've been
- 1:39doing astronomy, we've been building tools to
- 1:42help us think. Long before electricity, silicone,
- 1:46and modern technology, there were machines built
- 1:49to model the sky. One of the most remarkable
- 1:52is the Antikythera mechanism. Recovered from
- 1:56a shipwreck off the coast of Greece in 1901 and
- 1:59dated to around 100 BCE, this device is a dense
- 2:04arrangement of bronze gears. Intricate, precise,
- 2:08and astonishingly sophisticated. When scientists
- 2:11used X -rays and high -resolution scanning in
- 2:14the early 2000s, its use finally revealed itself.
- 2:19It could predict eclipses, track the motions
- 2:22of the sun and the moon, and even model the wandering
- 2:26paths of the known planets. The Antikythera mechanism
- 2:30is the oldest known analog computer, and it was
- 2:34a machine that embodied the cosmos, turned the
- 2:38crank, and the sky itself would move. And it
- 2:41wasn't alone. Ancient astronomers built astrolabes.
- 2:46beautiful handheld devices that could tell you
- 2:49the time, your latitude, and the position of
- 2:52stars. They constructed armillary spheres, rings
- 2:56within rings, representing the celestial coordinate
- 2:59system. These early computers didn't run code.
- 3:03They were the code. As astronomy became more
- 3:07precise, the sky became more demanding. Positions
- 3:11had to be measured, brightness had to be recorded,
- 3:14spectra had to be analyzed. And before electronic
- 3:18machines existed, there was only one way to do
- 3:22this kind of work. You hired people, entire teams
- 3:26of them, and they were called computers. At places
- 3:30like the Harvard College Observatory, groups
- 3:33of women were tasked with analyzing photographic
- 3:36plates. These are glass images of the night sky,
- 3:40captured through telescopes. Night after night,
- 3:44the observatory would gather data. And day after
- 3:47day, these human computers would process it.
- 3:51They measured star positions. They classified
- 3:53spectra. They turned raw observation into usable
- 3:57knowledge. Among them was Henrietta Swan Leavitt.
- 4:02Working quietly and methodically, she discovered
- 4:05a relationship between the brightness and period
- 4:08of Cepheid variable stars. A discovery that would
- 4:12become one of the most important tools in measuring
- 4:15the scale of the universe. Another was Annie
- 4:19Cannon, who developed the system we still use
- 4:22today to classify stars. O, B, A, F, G, K, and
- 4:28M. Stars arranged from hot and blue to cool and
- 4:32red. That sequence came from a room full of people
- 4:37looking at tiny points of light on glass plates
- 4:40and trying to make sense of them. Eventually,
- 4:43the limits of human computation became clear.
- 4:47There was simply too much to calculate, too many
- 4:50orbits, too many corrections, and too many tables
- 4:53of data to produce. So, we began building machines
- 4:57to take over. Early mechanical calculators, descendants
- 5:02of ideas like Charles Babbage's Difference Engine,
- 5:06were used to compute astronomical tables. These
- 5:10machines could perform repetitive calculations
- 5:12far more quickly and reliably than a human could,
- 5:16but they were still limited, slow, and bound
- 5:19by physical motion. Then came the Electronic
- 5:23Age. The demands of World War II accelerated
- 5:26the development of electronic computing, machines
- 5:30capable of performing calculations at unprecedented
- 5:33speeds, even if they took up entire rooms. Machines
- 5:38like ENIAC come to mind. Initially used for things
- 5:42like ballistics and code breaking, some of these
- 5:44computers soon found a new role in astronomy,
- 5:48calculating orbital mechanics, modeling gravity,
- 5:52and predicting the motion of celestial bodies
- 5:54with increasing precision. For the first time,
- 5:59astronomers could offload the heavy lifting of
- 6:01calculation to machines that operated at the
- 6:04speed of electricity. As our questions about
- 6:08the universe grew more complex, so did the machines
- 6:11we built to answer them. By the latter half of
- 6:14the 20th century, we entered the era of supercomputing.
- 6:18Machines like the Cray -1 and later the Cray
- 6:21-2 represented a leap forward not just in speed
- 6:25but in ambition. Astronomers began using supercomputers
- 6:29to model entire systems, the life cycles of stars,
- 6:34the dynamics of galaxies, and the evolution of
- 6:37structure and the universe itself. If you've
- 6:40ever seen a simulation of galaxies forming, streams
- 6:44of matter collapsing under gravity, swirling
- 6:47into vast spirals of light, you've seen the output
- 6:51of these machines. They allow us to recreate
- 6:54the universe, rather than just observe it. We
- 6:57can take the laws of physics, encode them into
- 7:00equations, and let a computer run the universe
- 7:03forward in time, from the Big Bang to the formation
- 7:07of galaxies, to the stars we see today. At the
- 7:10heart of all this is code, the languages we use
- 7:13to write the software to perform these calculations.
- 7:18For decades, the backbone of scientific computing
- 7:21was Fortran, short for formula translation. Designed
- 7:27by IBM in the 1950s for numerical computation,
- 7:31it became the language of physics, engineering,
- 7:35and astronomy. owing to its ability for users
- 7:38to translate formulas into code. NASA's earliest
- 7:42rockets were even engineered with Fortran. More
- 7:46recently, languages like Python have taken center
- 7:50stage. With libraries like NumPy, SciPy, and
- 7:54AstroPy, astronomers can analyze data, run simulations,
- 8:00and process images with relatively accessible,
- 8:03readable code. Another language, Julia, is gaining
- 8:08traction in the scientific community, offering
- 8:10the speedy number -crunching capabilities of
- 8:13Fortran with Python's ease of use. Even modern
- 8:18telescopes are computational systems now. When
- 8:21astronomers point a telescope at the sky, they're
- 8:24not manually guiding it. Computers calculate
- 8:28the exact position of an object, adjust for Earth's
- 8:31rotation, compensate for atmospheric distortion,
- 8:35and track that object with incredible precision.
- 8:39Many observatories today are fully automated.
- 8:42Robotic systems scan the sky night after night,
- 8:46capturing vast amounts of data without direct
- 8:49human intervention. And instead of photographic
- 8:52plates, we now use digital sensors, CCDs. Every
- 8:57photon captured is immediately converted into
- 9:00data. stored, processed, and ready to be analyzed.
- 9:05Even amateur astronomers control their scopes
- 9:08with computers, and recent years have ushered
- 9:11in a new generation of so -called smart scopes
- 9:14that can auto -align, track objects, photograph
- 9:18them, and send the results to a smartphone or
- 9:21tablet for integration. Which brings us around
- 9:25to astrophotography. We don't shoot film anymore,
- 9:28of course. Nowadays, images of the cosmos are
- 9:31constructed, often from hours of information
- 9:35digitally captured over hundreds of frames, possibly
- 9:39over different observation nights. We run these
- 9:42images through programs to stack multiple images
- 9:46to build very long exposures, reduce noise, and
- 9:50stretch the tonal range of high contrast deep
- 9:53space captures to reveal fine details and color.
- 9:57Astronomers have a term for this process, data
- 10:01reduction. That makes it sound like we're throwing
- 10:04something away, but that's not really what's
- 10:06happening. Data reduction is about taking something
- 10:10overwhelming, noisy, messy, incomplete, and refining
- 10:15it until the underlying signal begins to emerge.
- 10:18Removing distortion, correcting errors, combining
- 10:22fragments. Not reducing the data, but focusing
- 10:26it. This becomes even more dramatic in radio
- 10:29astronomy. Arrays of telescopes, sometimes spread
- 10:33across continents, can work together to observe
- 10:36the same object. Each one collects a piece of
- 10:40the signal and then computers combine those signals
- 10:43using techniques like Fourier transforms to reconstruct
- 10:47an image. I talked about this at length in our
- 10:50last episode. As data grew, so did the need for
- 10:55processing power. And at one point, astronomers
- 10:58tried something clever. They asked for help.
- 11:02The project was called SETI at Home. The idea
- 11:06was simple. Install a program on your home computer,
- 11:10and when your system was idle, it would analyze
- 11:13radio signals collected by telescopes, looking
- 11:16for patterns, searching for signs of extraterrestrial
- 11:20intelligence. Millions of people participated.
- 11:24Together, they created one of the largest distributed
- 11:27computing systems ever built. This was computation
- 11:30at a planetary scale. And even though it didn't
- 11:34find aliens, it revealed something important.
- 11:37That the search for knowledge doesn't have to
- 11:39be confined to observatories or laboratories.
- 11:43It can be shared. Even with all this, we started
- 11:47to run into a problem. Modern astronomy produces
- 11:51an overwhelming amount of data. Sky surveys,
- 11:55like the Legacy Survey of Space and Time at the
- 11:58Rubin Observatory, map the entire sky over and
- 12:02over again. Telescopes monitor millions of stars
- 12:06continuously. Radio arrays are generating constant
- 12:10streams of information. We've reached a point
- 12:13where no human could examine it all, and even
- 12:17traditional programs struggle to keep up. So
- 12:21astronomers are starting to do something new.
- 12:23They're building systems that don't just follow
- 12:26instructions. They look for patterns. This is
- 12:29the AI era of astronomy. Artificial intelligence
- 12:34and machine learning are becoming critical for
- 12:36discovery. Instead of telling a computer exactly
- 12:40what to look for, we can give it data and let
- 12:42it learn what matters. Systems can now classify
- 12:46galaxies automatically, detect the subtle dimming
- 12:50of a star as a planet passes in front of it.
- 12:53and identify unusual signals that might otherwise
- 12:56go unnoticed. AI has been used to analyze a backlog
- 13:01of Hubble data looking for astrophysical anomalies.
- 13:06According to a paper published last year in Astronomy
- 13:09and Astrophysics, from nearly 100 million image
- 13:13cutouts, at least 86 new candidate gravitational
- 13:17lenses, 18 jellyfish galaxies, and 417 mergers
- 13:23or interacting galaxies have been discovered
- 13:25by AI combing through this data. Impressively,
- 13:30the entire archive was scanned in just two to
- 13:33three days. I'll include a link to this paper
- 13:36in the show notes. For most of the history of
- 13:39computing and astronomy, we told machines what
- 13:41to do. Now, we're asking them to help us decide
- 13:45what's worth looking at. In a way, this is the
- 13:48next step in data reduction. The final step,
- 13:52the interpretation, the meaning, still belongs
- 13:55to us, for now. It's quite a journey when you
- 13:59think about it. We've progressed from armillary
- 14:02spheres to using machines as collaborators for
- 14:05new discoveries. The tools have changed, but
- 14:08the goal hasn't. Astronomy is the study of things
- 14:12unimaginably distant. but the work itself is
- 14:16intensely human, even when we're using computers.
- 14:23Before we move off this topic, I wanted to experience
- 14:26some astronomy computing from days gone by. In
- 14:31past episodes, I've dabbled in Python to experiment
- 14:34with the Drake equation, simulate star populations,
- 14:38and we've even used it to demonstrate how to
- 14:41encode and decode the Arecibo signal. So, I'm
- 14:45going to compile some Fortran code for a simple
- 14:48in -body simulation, then I'll try and modernize
- 14:52the output of that code by visualizing the results
- 14:55using Python. An in -body simulation is a way
- 15:00of asking a computer a very old astronomical
- 15:03question. If you put some objects into space
- 15:06and let gravity act on all of them at once, what
- 15:10happens next? In this case, n is a variable that
- 15:14refers to the number of objects in our sim. You
- 15:18may have heard the term three -body problem,
- 15:21maybe because of the Netflix series of the same
- 15:24name. But in astrophysics, a two -body problem,
- 15:28say the Earth and Moon, is fairly routine to
- 15:31deal with mathematically, because one object
- 15:34orbiting another is predictable. But the three
- 15:38-body problem refers to the moment when physics
- 15:41stops being neatly solvable, and requires some
- 15:44heavier computation. Motion becomes complex as
- 15:49the three bodies interact with one another. In
- 15:52our code, we're going to track the motions of
- 15:5525 bodies. We'll spin up a small star cluster
- 15:59and assign each body a mass, position, and velocity.
- 16:03Then Fortran will handle the calculations, letting
- 16:07gravity do what gravity does. Every object pulls
- 16:12on every other one, and the computer keeps track
- 16:15of it all, step by step. The first thing I needed
- 16:18to do was install a Fortran compiler on my Linux
- 16:22machine. In this case, we're using GFortran on
- 16:26Fedora Linux. This language has been around since
- 16:301957, and its last major update was just in 2023,
- 16:36so it's fairly modern, despite its early roots
- 16:39in punch card computing. Not bad for a language
- 16:42nearly 70 years old. Next, I tweaked the code
- 16:47for the in -body SIM, compiled it, and ran the
- 16:50resulting executable. This only took a fraction
- 16:53of a second. The program produced a text file
- 16:57formatted as comma -separated values, containing
- 17:01lines indicating each object name, its mass,
- 17:05its position in 2D space, and its direction and
- 17:08velocity. This is the type of information astronomers
- 17:12collect, data sets indicating some sort of change
- 17:16over time. Initially, it isn't visual. We need
- 17:20to bring it to life. We can compose a little
- 17:23Python script to draw the star locations frame
- 17:27by frame and output a six -minute moving visualization
- 17:31of the objects. We'll bounce out the resulting
- 17:34animation as an MPEG -4 movie for easy viewing.
- 17:38And there it is, our clusters swirling around
- 17:41hypnotically, stars influencing one another according
- 17:45to Newton's laws, all being tossed asunder. It
- 17:50kind of looks like a computer simulation from
- 17:52the early 80s. If you'd like to tinker with this
- 17:56code yourself, I'll make all my scripts and the
- 17:59movie of the simulation available on our website.
- 18:02Just check the link in the show notes. After
- 18:21a quick break, we'll be back with this week's
- 18:24night sky. Stay with us. Welcome back. As we
- 18:40step outside this week, the sky greets us in
- 18:43a quiet, reflective mood, still recovering from
- 18:46the darkness of the new moon. just a few days
- 18:49prior on April 17th. Now a delicate waxing crescent
- 18:54begins to return to the evening sky. Look to
- 18:57the western horizon just after sunset. The moon
- 19:01will be low and subtle. You'll likely be able
- 19:04to spot Earth's shine on the moon's shadowed
- 19:07side. That's sunlight reflected off our own planet
- 19:11and back onto the moon's surface. While the moon
- 19:14quietly returns, something more dynamic is unfolding
- 19:17overhead. The Lyrid meteor shower is active this
- 19:21week, peaking around the night of April 21st
- 19:24into the early hours of April 22nd. Under good
- 19:27conditions, you might see 10 to 20 meteors per
- 19:30hour. Fast, bright streaks that sometimes leave
- 19:34glowing trails behind. The radiant point lies
- 19:37in the constellation Lyra, near the bright star
- 19:41Vega. But as always, you don't need to look directly
- 19:44at the radiant. Just get comfortable, look up,
- 19:47and let the sky come to you. With the moon still
- 19:50in a thin crescent phase, conditions this year
- 19:53are especially favorable. If you head out just
- 19:56after sunset, one object will immediately grab
- 19:59your attention. That brilliant point of light
- 20:02low in the west is Venus, still dominating the
- 20:05evening sky. On the 19th, Venus appears near
- 20:09the young crescent moon forming a beautiful pairing
- 20:12in twilight. Jupiter is still high in the sky.
- 20:16Just look almost straight up and search for the
- 20:19brightest point of light. Mars, Mercury, and
- 20:23Saturn are in a very tight grouping, but only
- 20:26visible in the moments just before sunrise, low
- 20:29on the eastern horizon. You'll likely have a
- 20:32hard time seeing them in the sun's glare. With
- 20:35the moon still modest in brightness, this is
- 20:38a good week to explore a few deeper targets,
- 20:41especially if you give yourself an hour or two
- 20:43after sunset. If you're using binoculars or a
- 20:46small telescope, consider these. Messier 3, a
- 20:51dense ancient globular cluster rising in the
- 20:54east and one of the finest of its kind. Messier
- 20:5713, the great cluster in Hercules, is still climbing
- 21:01higher each night. And Messier 81 and 82 are
- 21:07a beautiful galaxy pair in Ursa Major, especially
- 21:10under darker skies. And for something a bit more
- 21:14delicate, look for the Ring Nebula, a faint smoke
- 21:17ring suspended in space near Vega. Leo is a prominent
- 21:22constellation of the season, and around April
- 21:2524th the moon will pass near it. Look for its
- 21:28backward question mark shape, known as the sickle,
- 21:31anchored by the bright star, Regulus. That's
- 21:39going to do it for this week. If you found this
- 21:41episode interesting, please share it with a friend
- 21:44who might enjoy it. The easiest way to do that
- 21:47is by sending folks to our website, StarTrails
- 21:50.Show. And if you'd like to support the show,
- 21:54use the link on the site to buy me a coffee.
- 21:56That really helps. Be sure to follow Star Trails
- 22:00on Blue Sky and YouTube. Links are in the show
- 22:03notes. Until we meet again beneath the stars,
- 22:07clear skies everyone!