Coding (and Coloring) the Universe

Micro to macro
Micro to macro
Illustration: NASA/CXC/K.Divona

When people ask me what I do for work, I often say that I’m a storyteller. It’s not that I stand on a stage with a microphone and narrate long tales to a rapt audience.

My stories are told differently, not through voice or music, but through lines of code and technical applications. They are stories, of science.

As an undergraduate, I began my career in molecular biology, looking at the tiny organisms that can transmit Lyme disease to humans aboard the Ixodes Scapularis (a.k.a., the Deer tick). But by the time I graduated, I was moving on to learn about another type of science: that of computers.

Binary Code
Binary Code
Credit: Christiaan Colen, CC BY-SA 2.0

I didn’t quite realize this as a fresh-out-of-college graduate, but coding is mostly about telling stories. Like many good stories you want to begin at the beginning. The main characters need to be carefully crafted, follow a compelling plot, and arrive at some conclusion, whether a happy ending or not. To make this happen, you use vocabulary and the rules of grammar to change and edit how your story is told.

The difference between more traditional storytelling and that in computer science is that you must use a language foreign to many. Instead of French, German or Arabic, you speak one of the languages of coding, weaving together multiple plot lines: in this case, those of the computer, the code’s functions, and the end user. Your language might be C++, Perl, Java or SQL.

This is what I’ve done in my career, albeit covering quite different topics than what I started looking at under a microscope. For the past two decades, I have worked for NASA’s Chandra X-ray Observatory. This telescope in space looks at some of the most violent and energetic phenomena in the Universe – from black holes to exploded stars.

Chandra
NASA’s Chandra X-ray Observatory
Illustration: NASA/CXC/D.Berry & M.Weiss

I work as the Visualization Lead for Chandra and am responsible for a talented team of people who take the data - the information -from this multi-billion-dollar observatory and translate it into products that people from any background can access and use.

In this role, I have attended countless technology and science conferences, speaking engagements and events. Often I would present talks and work with classes of students, and groups for kids.

As has been noted by many, I was surprised and disappointed to find that there seemed to be fewer technical women in or entering the field of computer science than I had seen even when I was an undergraduate back in the 90’s. Surveys from the Computing Research Association reported that less than 12% of bachelor degrees in computer science were awarded women between 2010-11.

There are now many excellent programs out there to address the gender gap in coding, such as Girls Who Code, Women Who Code, Girl Develop It, etc., along with many other groups that address STEM (science, technology, engineering and math) as a whole. I felt like I had an obligation to formulate activities that could work separately or with such groups with like-minded colleagues of my own.

This became possible when my group joined forces with Google and the American Astronomical Society (AAS). A couple years back, a conversation started between two neighbors, David Bau from Google at the time, and Gus Muench from the AAS. They had a few brief discussions about putting together a coding in astronomy tutorial for Computer Science Education Week and the Hour of Code. They wanted to create a coding exercise for kids to learn about RGB (red, green and blue) color on the computer based on the open-source Pencil Code platform.

Gus reached out to me and asked if I wanted to be involved in bringing their idea to fruition. I was immediately excited about the project and dug right in. We formed a team with two educators from Google CS First and within a few weeks built up the coding exercise and video tutorial “Recoloring the Universe.”

The activity was one of those missing links I had been looking for. It offered a real-world example, a way to show — and not just tell — about the type of work you can do in computer science (and astronomy). And the content connects so well with similar processes done in other scientific fields from molecular biology to medicine, that it’s primed for expansion.

Data
Data, from astronomy to molecular biology
Illustration: NASA/CXC/K.Divona

In my experience, astronomy is a very accessible science. In addition to covering exciting topics, astronomy is also highly visual. The images are often so jaw dropping to look at, they can attract all on their own.

By combining the how-to of coding with the discoveries of astronomy, we’ve developed a program that can tap into the best of both worlds. With this activity, we can enable others to tell a story about something in the Universe. The aim is to help show that computing does not end with computers, but extends much further into real world applications.

Computing
Computing does not end with computers
Illustration: NASA/CXC/M.Weiss

Since we’ve developed the “Recoloring the Universe” Pencil code project, we’ve presented it to many dozens of schools and groups, with perhaps half of the groups with a near majority of girls in the audience. I don’t expect each one of them to become coders or astronomers, but I hope that some of them will see that they can be if they choose to do so.

This is the type of amazing potential that could be unleashed into the world after the White House’s United State of Women event. Let’s give everyone an opportunity and the confidence to follow their dream and tell their own story, whether it’s a story about science or not­­. (Follow along at #StateofWomen)

-Kimberly K. Arcand

This blog was also published at the Huffington Post.

Read also: How to Hold a Dead Star in Your Hand

Category: 
Disclaimer: This service is provided as a free forum for registered users. Users' comments do not reflect the views of the Chandra X-ray Center and the Harvard-Smithsonian Center for Astrophysics.
Please note this is a moderated blog. No pornography, spam, profanity or discriminatory remarks are allowed. No personal attacks are allowed. Users should stay on topic to keep it relevant for the readers.
Read the privacy statement