The Student News Site of Texas A&M University - College Station

The Battalion

The Student News Site of Texas A&M University - College Station

The Battalion

The Student News Site of Texas A&M University - College Station

The Battalion

The intersection of Bizzell Street and College Avenue on Monday, Jan. 22, 2024.
Farmers fight Hurricane Beryl
Aggies across South Texas left reeling in wake of unexpectedly dangerous storm
J. M. Wise, News Reporter • July 20, 2024
Duke forward Cooper Flagg during a visit at a Duke game in Cameron Indoor Stadium. Flagg is one fo the top recruits in Dukes 2025 class. (Photo courtesy of Morgan Chu/The Chronicle)
From high school competition to the best in the world
Roman Arteaga, Sports Writer • July 24, 2024

Coming out of high school, Cooper Flagg has been deemed a surefire future NBA talent and has been compared to superstars such as Paul George...

Bob Rogers, holding a special edition of The Battalion.
Lyle Lovett, other past students remember Bob Rogers
Shalina SabihJuly 15, 2024

In his various positions, Professor Emeritus Bob Rogers laid down the stepping stones that student journalists at Texas A&M walk today, carving...

The referees and starting lineups of the Brazilian and Mexican national teams walk onto Kyle Field before the MexTour match on Saturday, June 8, 2024. (Kyle Heise/The Battalion)
Opinion: Bring the USWNT to Kyle Field
Ian Curtis, Sports Reporter • July 24, 2024

As I wandered somewhere in between the Brazilian carnival dancers and luchador masks that surrounded Kyle Field in the hours before the June...

An Aggie at NASA: rain or shine, the code goes on

NASA
Photo by John Rangel
NASA

Tropical storms and Python scripts – a far cry from Apollo or Mars, but so went the past few days at Johnson Space Center.

Houston was a beehive of preparation long before Tropical Storm Bill was more than a few cumulous clouds. Radio broadcasters preached preparation. Hourly emails described floods and electricity loss. I woke up half expecting Schlitterbahn in my living room, but besides heavy pockets of rainfall, reality fell thankfully short of the media’s prediction.

Most of the engineers on my floor decided to work from home to avoid Tuesday’s potential flooding, giving me some much needed time to review the Python scripts I will work with throughout the summer. Python is a high-level programming language present throughout the digital world. My engineering group uses it to build Mars mission simulations based on a hodge-podge of Fortran and C++ algorithms. Everything from a spacecraft’s shape to the Martian atmosphere is modeled in a Fortran and C++ library; it will eventually be my job to write Python scripts that call specific portions of this library to simulate how different spacecraft designs perform.

I’ve never coded in Python before, and it was definitely a shock when my engineering mentor started pulling up file after file coded exclusively in Python and told me I would soon build a Mars mission simulation based on the language. The engineers I work with are incredibly supportive however, and I’ve had as much help as I need while learning the language.  

Tuesday I spent troubleshooting a group of Python files that simulate an Earth-Mars orbit transfer. My engineering group worked with an out-of-state professor to develop the files, and I ended up communicating with him via email throughout the day as we both tried to spot the source of error – somewhere buried in the lines of code is a mistake that makes the simulation miss its target orbit altitude by several thousand kilometers.

Searching code is slow work. A possible mistake is spotted, a few characters are changed or deleted, the code is re-compiled and the results are emailed back and forth before the process repeats itself. It can get repetitive and dull, but it is classic problem-solving, and if it brings humanity an inch closer to Mars then it is worth my time.

My primary goal is to get comfortable with Python and finally find the mistake in our orbit altitude files. It’s going to be a long week of rain and code, but most accomplishments are gritty and prolonged before they become fantastic and impactful.  

Leave a Comment
Donate to The Battalion

Your donation will support the student journalists of Texas A&M University - College Station. Your contribution will allow us to purchase equipment and cover our annual website hosting costs.

More to Discover
Donate to The Battalion

Comments (0)

All The Battalion Picks Reader Picks Sort: Newest

Your email address will not be published. Required fields are marked *