Maps of the Sky

The other day I came across a very awesome graph of the entire universe. It shows more-or-less every object in space we know about on a logarithmic scale from the center of the earth to the edge of the visible universe. It got me thinking about what you can do with large datasets so I decided to play around a little with the tycho-2 catalog. This is a famous catalog in the astronomy world. It contains the position and brightness and some other information of more than 2.5 million stars. That's about 99% of all the stars brighter than 11th magnitude (about 100 times fainter than what you can see with the naked eye!).

I used processing.org as my programming language and wrote a short piece of code to parse through the giant 2,539,913 line datafile and draw a pixel for every star with the brightness of the pixel based on the brightness of the star. And it looked pretty cool. But there was more work to be done. I wanted to use the color information in the catalog to make a color picture of the sky. This is not as straightforward as it might seem. The tycho-2 catalog has the relative brightness of each star measured using a standard blue filter (B) and a standard green filter (V — for historical reasons). Somehow I had to turn that into a color for a computer screen. Luckily a lot of the hard work has been done for me! I found a person who had already worked out screen colors for stars! All I had to do was write a function to approximate a screen color for a given color index (B-V). Sure made that sound easy didn't I?

Color Index

Color Index

Now I can map the sky with all the stars and their color and brightness. It looks something like this:

A map of the sky from the tycho-2 catalog.

A map of the sky from the tycho-2 catalog.

The bright snake-y thing is the milky way. Since we are in the middle of a galaxy when we look through the plane of galaxy we see most of the other stars in that same plane. Think about standing in the middle of a giant disk of dust, if you look straight up you see out of the disk and through a small amount of dust, but if you look right into the disk you see all the dust in a thick cloud. This is the milky way. The dark patches are clouds of gas thick enough to obscure the stars behind them.

The reason it looks like a curve in this picture is because I printed it in equatorial coordinates. These are sky coordinates based on the earth. The middle of the image is directly overhead the equator and the top and bottom are the North and South poles respectively. The milky way is a straight line in the sky, but if you unwrap a spherical map to rectangular coordinates you get all kind of distortion. As an alternative I can also make a map in galactic coordinates. These are coordinates locked to the milky way itself and looks like this:

Map of the sky in calactic coordinates.

Map of the sky in galactic coordinates.

I'm not sure what to do with these pictures but I am surprised how easy it was to make. I am thinking of other large datasets that might be interesting to play with. Any suggestions?

Here are the full size images and the code I used to make them:

If you would like to use the images feel free (this site is published under Creative Commons), drop me a line if you use them for something cool!

Posted in Science | Tagged , , | Leave a comment

Time Lapse from Mt Tabor

I like my camera as much as the next guy, but it's missing a feature: an intervalometer. An intervalometer is a device or program that lets you take a series of pictures in a row at some interval. This lets you do, among other things, time lapse videos.

So like a good nerd I hacked one together using an arduino. It's about as simple as it gets. In my circuit I used an infrared LED and that's it (Sure I should have added a current limiting resistor, but I like throwing caution to the wind sometimes). I found online someone who already figured out the blink code to trigger a shutter release. I used his code and that was it!

To test it I took it up to the top of Mt. Tabor and snapped off a 8 second exposures continuously for almost an hour. Later I took the results and used blender to stitch them into a video. And here it is!

Portland at Night from Nathan Bergey on Vimeo.

Notice that I caught the Hawthorne Bridge going up for a passing ship! Totally by accident.

Posted in Pacific NW | Tagged , , , , | 5 Comments

Looking Back at Gnomedex

I was lucky enough this year to have the most awesome experience of attending my first Gnomedex. Gnomedex is the self-described “Technology Conference of Inspiration and Influence” that meets yearly in Seattle, WA. It's a bunch of blogger, new media, tech enthusiast types that get together to discuss the society and the Internet. It may sound like a bunch of geeks, but this would only be partially true. Yes there was plenty of talk about gadgets and websites, but it all came back to community and how technology affects everyone.

Gnomedex is a relatively small conference, usually just a couple hundred people. Small as it may be, this group of people tends toward the amazing. Even though a lot people already knew each other through things like twitter, getting to meet in person still is important. After-party conversations ranged from how to build business models off of twitter to rapid prototyping circuit boards. The one constant was the quality of the conversation. In the real world, just like on the web, content is king.

Good Content

I was most interested in two particular talks at Gnomedex. One by a long time role-model of mine Dr. Phil Plait—otherwise known as the BadAstronomer.

The Bad Astronomer

The Bad Astronomer

Phil gave an awesome talk about skepticism on-line and the misinformation we are up against. News can spread so fast now that there is practically no firewall between the public and bad information. His archetypal example was a particularly bright meteor that was caught on camera, coincidently, a couple of days after a widely reported collision of two satellites in space. Almost immediately the Internet (well okay, just twitter) was abuzz with speculation that the meteor was a piece of the former spacecraft falling to the ground. Never mind that it happened at the wrong time of day in the wrong location and was moving far too fast. The rumor that it was a spacecraft quickly became ‘fact.’

This misinformation could be avoided if people are careful and ask questions about the evidence they're presented. Which is his point about skepticism. It's not really about being cynical or mistrusting but instead simply double checking the things you hear. Whether it's from wikipedia or from your family doctor, people can be wrong. And sometimes the wrong info can be dangerous.

Phil has been especially concerned about the growing influence of so called “antivaxxers.” These are people who are using their influence to convince—likely because they themselves believe it—people that vaccines are dangerous and lead to maladies such as autism. There are thousands of parents who believe this and it's extremely unfortunate because there is absolutely no link whatsoever! The real danger lies in not getting kids vaccinated. Suddenly there are cases of measles and polio and other diseases thought to be more or less eradicated showing up again in these un-vaccinated children. Some have died. The lesson here is to fight back. Misinformation is best kept at bay through constant vigilance—speaking out on the behalf of truth in letters to news programs, forum posts, or anywhere else you see questionable content.

Bre Pettis and his amazing MakerBot

Bre Pettis and his amazing MakerBot

Another talk was given the same day by a master of the modern DIY movement, Bre Pettis. Bre Pettis makes things. He is an amazing guy who has an uncanny ability to both consistently come up with great ideas and to follow through on them. He helped start NYC resistor, a group that makes cool things in New York and is the founder of MakerBot. MakerBot is an awesome open source 3D printer. 3D printers are great, instead of paper they print things. MakerBot extrudes ABS plastic and makes it into whatever shape you can imagine. It's like your own mini factory!

Something amazing happed when people were given access to 3D printers. A whole community sprung up around sharing digital files, just one step from being real things. One website in particular has emerged, called thingverse.

“People still haven't figured out that sharing is the best thing ever”

Bre talked about the amazing things that can happen when large sets of data are shared like that. Objects evolve, people add and refine designs and the end product is almost always better than it started. Historically design has been such a closed concept, with individuals and companies holding their cards close to their chest until the final product was unveiled. But it doesn't have to be this way. Open source is just as strong as ever and wonderful things happen when people collaborate.

Showing Up Counts

I didn't realize it until I got back to Portland and had some time to think about it, but the most interesting thing about all the people at Gnomedex is they all wanted to be there. I figured that I would be more of a spectator, happy to watch and maybe learn a thing or two. But really everyone is there to learn from each other and be a part of something. All you need to do is show up. I encourage anyone who likes talking about the internet or technology to go to Gnomedex next year and see who you meet. It's a great conference.

Posted in Pacific NW | Tagged , , , , , , | Leave a comment

Gnomedex

Gnomedex, I'm going!

Gnomedex, I'm going!

Just a quick note, I am going to be at Gnomedex 9.0 this week in Seattle. Gnomedex is the self-proclaimed “Technology Conference of Inspiration and Influence!” that attracts some of the leading bloggers and webby types from around the country. This is my first time attending and I don't really know what to expect but I hope to have fun! I'm bringing my camera so look for pictures next week, and I might even post my thoughts here about some of the talks.

Posted in Pacific NW | Tagged , , | 4 Comments

Solar System Center of Mass

Right now scientists are searching for new planets. They have telescopes pointed at distant stars carefully measuring how fast they move and looking for tiny deviations—or wobble—in their speed. This wobble tells us that something must be orbiting the star. When two objects are in orbit, they both orbit their respective center or mass, called the barycenter.

In the case of solar systems the sun is so much more massive that the rest of the planets that the barycenter is very nearly at the center of the sun. This is also helped by the fact that on any given day the planets are likely scattered randomly about and to some degree cancel each other out. Think of an evenly matched tug-of-war. But what if all the planets were on one side of the sun? Then how far off center would the barycenter be? I guessed it would be still very near the middle of the sun, but it turns out it's about 800,000 kilometers outside the sun!

Don't believe me? I didn't believe it when I first read it so I had to calculate it myself. How does one go about calculating the center of mass of the solar system?

First lets set up the situation. Like all great physics problems, this is a vast simplification. We can safely make some favorable assumptions. Put the sun at the center of a coordinate system, and everything is on the x-axis, and only count the 8 most massive objects other than the sun.

Center of mass diagram

To find the center of mass \boldsymbol{R} we just add up the masses m_i times the distances \boldsymbol{r_i} for everything and divide by the total mass.

\boldsymbol{R} = \frac{\displaystyle\sum\nolimits_i m_i \boldsymbol{r_i}}{\displaystyle\sum\nolimits_i m_i}

Lets actually look at some numbers:

Body Distance from Sun[1] [cm] Mass[2] [g] % Mass of the Solar System
Sun 0 1.99×1033 99.866
Mercury 5.78×1012 3.3×1026 0.000017
Venus 1.08×1013 4.87×1027 0.00024
Earth 1.50×1013 5.98×1027 0.00030
Mars 2.28×1013 6.5×1026 0.000033
Jupiter 7.79×1013 1.90×1030 0.095
Saturn 1.43×1014 5.70×1029 0.029
Uranus 2.88×1014 8.7×1028 0.0043
Neptune 4.50×1014 1.00×1029 0.0050

Again you can really see just how massive the sun is. It accounts for about 99.866% of the mass in the solar system! If we use the equation above and plug in all the distances and masses and add it up we get:

\boldsymbol{R} = \displaystyle\frac{2.9969\times 10^{44}  \, [\mathrm{cm} \cdot \mathrm{g}]}{1.9917\times 10^{33} \, [\mathrm{g}]}

\boldsymbol{R} = 1.51\times 10^{11}  \, [\mathrm{cm}]

Or in other words, the center of mass of the solar system, with all the planets to one side, is about 1.5 million kilometers from the center of the sun. The sun itself is about 0.7 million kilometers across, so that puts the center of mass about 800,000 kilometers off the surface of the sun.

Just something to think about. But don't forget, given the scale of the solar system, 800,000 kilometers isn't very far. In fact it's about 70 times closer to the sun than Mercury, the closest planet.

References

  1. Universe today — How Far are the Planets from the Sun? http://www.univer...
  2. Ask a Scientist — Planets and Their Mass http://www.newton.dep.anl.gov/...
Posted in Science | Tagged , | 5 Comments
  • What I'm Tweeting...

    Powered by Twitter Tools