<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Possibility and Probability &#187; Astronomy</title>
	<atom:link href="http://ironboundsoftware.com/blog/category/space/astronomy/feed/" rel="self" type="application/rss+xml" />
	<link>http://ironboundsoftware.com/blog</link>
	<description>Droplets of Yes and No</description>
	<lastBuildDate>Wed, 28 Dec 2011 01:37:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>TDD and honesty in code</title>
		<link>http://ironboundsoftware.com/blog/2010/09/10/tdd-and-honesty-in-code/</link>
		<comments>http://ironboundsoftware.com/blog/2010/09/10/tdd-and-honesty-in-code/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 16:02:48 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://ironboundsoftware.com/blog/?p=375</guid>
		<description><![CDATA[I&#8217;m working on a little project to help keep track of satellites. Specifically, I&#8217;m taking an existing code base (the AIAA SGP4 code which is written in C/C++), wrapping it with python, and then eventually putting a web front end on it. The end goal is that astronomers will be able to use this code/website to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a little project to help keep track of satellites.</p>
<p>Specifically, I&#8217;m taking an existing code base (the <a href="http://pdf.aiaa.org/preview/CDReadyMAST06_1308/PV2006_6753.pdf">AIAA SGP4 code</a> which is written in C/C++), wrapping it with <a href="http://python.org">python</a>, and then eventually putting a web front end on it. The end goal is that astronomers will be able to use this code/website to check their observations to see if there was a satellite in their field of view when they took their measurements.</p>
<p>Since I&#8217;m using a known library in to create something new, this seemed like a really great opportunity to use some Test Driven Development (TDD) to ensure that as I build up the parts of the system, the numbers stay true and that the code stays honest.</p>
<p>This is working out really well. Combining python&#8217;s unit test module with <a href="http://somethingaboutorange.com/mrl/projects/nose">nosetests</a> allows me to quickly bang out a test to make sure that the positional numbers that the SGP4 code generates is what the documentation says it should be. By using TDD I can map out where the code needs to go a little better: As I find something that is missing I can write out a quick test that will fail. When I run nosetests, I have that failure glaring at me telling me where more code is needed.</p>
<p>For example, I have one set of test data that gives the observer&#8217;s location in standard latitude and longitude coordinates. My code isn&#8217;t quite expecting this, the <a href="http://www.minorplanetcenter.org/iau/mpc.html">MPC format </a>is a little bit different. This is a problem that is easy to fix, but I have a plethora of problems at the moment and I need to make sure this one gets taken care of properly. So I opened up the python file that tests the Observatory class and added in a failing test that called <em>testLatLongToXYZ(). </em>When I run the tests I now see that this is a failing method which gives me the mental kick in the pants to go and implement that method, even if it is just a stub.</p>
<p>Why do I say just a stub? Because putting in the stub lets  me do two things: 1) I&#8217;ve now got something there, and 2) I can now update the test to call that stub. The secret is that the test should now call the stub and expect it to pass, but the stub should always return something (None, False, -1, etc.) to indicate that it failed.</p>
<p>This acts as a pointer to an area that needs improvement in the code. This is what TDD is all about. You keep repeating this process until you converge on a &#8220;correct&#8221; answer which is a method that does just what it needs to do. In theory, and so far my practice confirms this, the resulting code should be smaller and more accurate.</p>
<p>For me this is a great thing because it encourages code that is more honest. What is honest code? To me, it is code that does what it says and nothing else. The shorter the code is, the more focused it is. The python language is very expressive and allows you to do a lot without saying a lot. This power can lead you to try and do too much in one function. Once you have a function that not only converts Lat and Long, but also converts polar coordinates and writes satellite data to the database, can you really honestly call that function <em>convertLatLongToXYZ()</em>?</p>
<p>This is especially valuable in the scientific context of this astronomy related code. The code is open source, and in the event there is a problem with it, as people dig into the code they need to have confidence that the code is relatively well written. At a high level the tests give them the numerical sense of ease that it is working when the tests run and show the proper numbers being returned. At a low level, seeing that the code is broken up into small logical sections gives the confidence that once  problem is found it can be corrected, tested, and shown that there are minimal side effects in other parts of the program.</p>
<p>As the lone developer on this project, this type of check-and-balance gives me a lot of hope that I&#8217;ll be able to produce something that is accurate and useful to the community at large. Openness and honesty help build confidence and trust. If you are interested in the project, be sure to check it out:</p>
<p><a href="https://bitbucket.org/nloadholtes/obssatid">ObsSatId: A python astronomy project to wrap the SGP4 code to check for satellites</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2010/09/10/tdd-and-honesty-in-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why a Hubble repair mission? Why not just launch a new one?</title>
		<link>http://ironboundsoftware.com/blog/2006/10/31/why-a-hubble-repair-mission-why-not-just-launch-a-new-one/</link>
		<comments>http://ironboundsoftware.com/blog/2006/10/31/why-a-hubble-repair-mission-why-not-just-launch-a-new-one/#comments</comments>
		<pubDate>Wed, 01 Nov 2006 01:10:25 +0000</pubDate>
		<dc:creator>Nick Loadholtes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Probes]]></category>
		<category><![CDATA[Space]]></category>
		<category><![CDATA[Spaceflight]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[The coming apocalypse]]></category>

		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=251</guid>
		<description><![CDATA[Today in space news: SPACE.com &#8212; NASA&#8217;s Mission to Service Hubble in 2008 Will Cost $900 Million To me this begs the question: Why risk humans (and the fragile shuttle) to repair the ailing satellite, when for probably the same amount ($900 million) they could just launch one or more new Hubble-class satellites? The big [...]]]></description>
			<content:encoded><![CDATA[<p>Today in space news: <a href="http://www.space.com/news/061013_hubble_cost.html">SPACE.com &#8212; NASA&#8217;s Mission to Service Hubble in 2008 Will Cost $900 Million</a></p>
<p>To me this begs the question: Why risk humans (and the fragile shuttle) to repair the ailing satellite, when for probably the same amount ($900 million) they could just launch one or more new Hubble-class satellites? The big thing about Hubble is that it is serviceable, but what if it wasn&#8217;t? Wouldn&#8217;t that make it cheaper?</p>
<p>It just seems to me that it would be smarter, faster, and cheaper to take that money and launch a couple of new replacements.</p>
<p>But this is NASA we&#8217;re talking about. Logic doesn&#8217;t seem to have a place in their planning when it comes to topics like the shuttle, the ISS, or the Hubble. *sigh*</p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2006/10/31/why-a-hubble-repair-mission-why-not-just-launch-a-new-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The line between planet and asteriod</title>
		<link>http://ironboundsoftware.com/blog/2006/02/03/the-line-between-planet-and-asteriod/</link>
		<comments>http://ironboundsoftware.com/blog/2006/02/03/the-line-between-planet-and-asteriod/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 23:06:15 +0000</pubDate>
		<dc:creator>Nick Loadholtes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Space]]></category>

		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=188</guid>
		<description><![CDATA[With the confirmation of 2003 UB313 being bigger than Pluto the questions of &#8220;Is this the tenth planet?&#8221; and &#8220;Is Pluto really a planet?&#8221; have cropped up again. For a long time I was on the side of the fence that said &#8220;Just leave Pluto alone, and lets say there are no more planets out [...]]]></description>
			<content:encoded><![CDATA[<p>With the confirmation of <a href="http://spaceflightnow.com/news/n0602/01tenthplanet/">2003 UB313 being bigger than Pluto</a> the questions of &#8220;Is this the tenth planet?&#8221; and &#8220;Is Pluto really a planet?&#8221;  have cropped up again. For a long time I was on the side of the fence that said &#8220;Just leave Pluto alone, and lets say there are no more planets out there.&#8221;.</p>
<p>But after reading this article about <a href="http://www.spaceobs.com/perso/textes/planetsandasteroids.htm">the differences between planets and asteroids</a>, I&#8217;ve changed my mind. I think Pluto should be demoted and the planet count set to 8.</p>
<p>In the article Alain Maury points out that if you graph the mass and orbital inclination of the planets and the asteroids (and KBO&#8217;s and TNO&#8217;s) that something really interesting happens: the two cluster seem to form, one for planets, and one for everything else. Pluto and 2003 UB313 (and several other new discoveries) don&#8217;t fall into the planet group, they land in the &#8220;asteroid&#8221; group.</p>
<p>After seeing these charts I&#8217;m inclined (har har) to say that unless an object can show by a combination of its mass and orbital inclination that it belongs in the &#8220;planet&#8221; group, that it is not a major planet.</p>
<p>Something tells me that once we are able to explore other solar systems we will probably use that type of a guideline when marking new planets. Of course at some point it won&#8217;t matter, the sheer number of objects found across the stars will make it impossible to name and keep track of everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2006/02/03/the-line-between-planet-and-asteriod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An explosion on the moon</title>
		<link>http://ironboundsoftware.com/blog/2005/12/24/an-explosion-on-the-moon/</link>
		<comments>http://ironboundsoftware.com/blog/2005/12/24/an-explosion-on-the-moon/#comments</comments>
		<pubDate>Sat, 24 Dec 2005 16:43:34 +0000</pubDate>
		<dc:creator>Nick Loadholtes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Exploration]]></category>
		<category><![CDATA[Space]]></category>

		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=177</guid>
		<description><![CDATA[We know that the earth runs into small meteorites all the time (ranging from dust size up to small boulders). We see these as &#8220;Shooting Stars&#8221; in the night time sky. But here&#8217;s something you might not have thought about: The moon get hit too. Unlike the earth, the moon has no thick atmosphere to [...]]]></description>
			<content:encoded><![CDATA[<p>We know that the earth runs into small meteorites all the time (ranging from dust size up to small boulders). We see these as &#8220;Shooting Stars&#8221; in the night time sky. But here&#8217;s something you might not have thought about: The moon get hit too. Unlike the earth, the moon has no thick atmosphere to protect it, so when something hits, it <strong>hits</strong>.</p>
<p><a href="http://science.nasa.gov/headlines/y2005/22dec_lunartaurid.htm">This article</a> talks about a telescope that has been setup to monitor the moon for the these types of collisions. On its first night in operation it captured the explosion of a 12cm meteor impacting the lunar surface at 27 km/s! The resulting explosion was equivalent to 70 kg of TNT and it is thought to have left a crater 3 meters in diameter!</p>
<p>An interesting tidbit from the article is that they are reviewing the data from the telescope by watching it, not by having a computer process it. That blew my mind, these explosions from impacts would probably be really short lived events. Plus imagine all of the cross checking the computer could do: As it finds a flash it could look to see if there were any satellites in the vicinity, then check the duration of the event to make sure it wasn&#8217;t a cosmic ray, it could cross check with another telescope to make sure it wasn&#8217;t a fluke camera malfunction&#8230; The possibilities are endless. I really need to get more involved in virtual astronomy, there is just so much coolness happening there.</p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2005/12/24/an-explosion-on-the-moon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xena and Gabrielle, back together again.</title>
		<link>http://ironboundsoftware.com/blog/2005/10/02/xena-and-gabrielle-back-together-again/</link>
		<comments>http://ironboundsoftware.com/blog/2005/10/02/xena-and-gabrielle-back-together-again/#comments</comments>
		<pubDate>Sun, 02 Oct 2005 01:16:46 +0000</pubDate>
		<dc:creator>Nick Loadholtes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Exploration]]></category>
		<category><![CDATA[Space]]></category>

		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=141</guid>
		<description><![CDATA[This is kinda cool, they have found a moon orbiting large Trans-Neptunian Object that was announced a few weeks ago: The moon of the 10th planet. You know, the one called Xena. In fact, they are calling the moon Gabrielle. Once they are able to get some telescope time they are going to try and [...]]]></description>
			<content:encoded><![CDATA[<p>This is kinda cool, they have found a moon orbiting large Trans-Neptunian Object that was announced a few weeks ago: <a href="http://www.gps.caltech.edu/~mbrown/planetlila/moon/index.html">The moon of the 10th planet</a>. You know, the one called Xena. In fact, they are calling the moon Gabrielle.</p>
<p>Once they are able to get some telescope time they are going to try and determine the orbital period which will give a pretty good mass estimate for the planet. Yes, I said planet, it sure seems like it is one crazy orbit or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2005/10/02/xena-and-gabrielle-back-together-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Astronomy: the new bloodsport</title>
		<link>http://ironboundsoftware.com/blog/2005/09/23/astronomy-the-new-bloodsport/</link>
		<comments>http://ironboundsoftware.com/blog/2005/09/23/astronomy-the-new-bloodsport/#comments</comments>
		<pubDate>Thu, 22 Sep 2005 22:40:30 +0000</pubDate>
		<dc:creator>Nick Loadholtes</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Space]]></category>

		<guid isPermaLink="false">http://www.ironboundsoftware.com/blog/?p=129</guid>
		<description><![CDATA[A few months ago when it was announced that astronomers had found a trio of large objects in the outer solar system, I was intrigued. I&#8217;ve been a huge &#8220;Space Fan&#8221; ever since I could remember and in the last year or so I&#8217;ve been getting really interested in Astronomy. I found out that there [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago when it was <a href="http://cnn.com/2005/TECH/space/07/30/new.planet/index.html">announced</a> that astronomers had found a trio of large objects in the outer solar system, I was intrigued. I&#8217;ve been a huge &#8220;Space Fan&#8221; ever since I could remember and in the last year or so I&#8217;ve been getting really interested in Astronomy.</p>
<p>I found out that there was a Yahoo! group called the  <a href="http://groups.yahoo.com/group/mpml/">Minor Planet Mailing List</a> which has a mailing list where a lot of astronomers talk about what they are finding, how they observe, etc. I joined this list and was expecting to read some really interesting (if not over my head) tidbits about the heavens.</p>
<p>Was I in for a surprise.</p>
<p>It turns out that the announcement of the new objects was stirring up quite a controversy.  Allegations of hacking, blackmail, theft, and all kinds infractions were flying back and forth on the list. A good little explanation of what was (and still is) going on was put out in Scientific American today: <a href="http://www.newscientistspace.com/article.ns?id=dn8033"> Breaking News &#8211; Astronomer denies improper use of web data</a>.</p>
<p>This incident has really riled up this community of star gazers. They are all really passionate about their craft (which is a great thing) and the controversy has made some really big waves. It still strikes me as funny that I joined the list to read some scholarly discussions about what lies out beyond the orbit of Neptune, and instead I walked into a flame war like you would see on <a href="http://slashdot.org">Slashdot</a>.</p>
<p>Despite the action on the list, I have learned a lot just by reading it. In fact, reading the list has inspired me to learn more about astronomy so that if nothing else I can understand more of what they are talking about.</p>
]]></content:encoded>
			<wfw:commentRss>http://ironboundsoftware.com/blog/2005/09/23/astronomy-the-new-bloodsport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

