<?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>AstroBetter &#187; analysis</title>
	<atom:link href="http://www.astrobetter.com/category/analysis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.astrobetter.com</link>
	<description>Tips and Tricks for Professional Astronomers</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:05:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Astrophysics Source Code Library (ASCL)</title>
		<link>http://www.astrobetter.com/astrophysics-source-code-library-ascl/</link>
		<comments>http://www.astrobetter.com/astrophysics-source-code-library-ascl/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 11:30:16 +0000</pubDate>
		<dc:creator>Guest</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ASCL]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=5135</guid>
		<description><![CDATA[You don&#8217;t know me, but if you&#8217;ve written an astrophysics code useful for producing published results, I&#8217;d like to know you, or at least know of your code. I&#8217;m Alice Allen, primary editor of the Astrophysics Source Code Library (ASCL). The ASCL is a free online reference library of (wait for it&#8230;. ) &#8230;yes! Astrophysics [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>You don&rsquo;t know me, but if you&rsquo;ve written an astrophysics code useful for producing published results, I&rsquo;d like to know you, or at least know of your code. I&rsquo;m Alice Allen, primary editor of the <a href="http://asterisk.apod.com/viewforum.php?f=35">Astrophysics Source Code Library (ASCL)</a>. The ASCL is a free online reference library of (wait for it&hellip;. ) &hellip;yes! Astrophysics codes! Founded in 1999 by Robert Nemiroff and John F. Wallin, the ASCL has been dusted off, moved to a new site, and over the past year, greatly expanded. In fact, we (those of us working on the ASCL; we have an Advisory Committee&nbsp;and everything!) believe the ASCL is the largest collection of astrophysics codes anywhere. And the ASCL is still growing, with codes added every month.</p>
<p>Why a library of codes? Aside from the importance of ensuring reproducibility of one&rsquo;s work (that scientific method stuff, you know), increasing falsifiability, demonstrating the integrity of a method or methods used to produce results, and increasing communication between researchers and those who study their research, working on it keeps me in at night (always a good thing). The ASCL also provides a way for astrophysicists to find codes that may be useful to their projects. We hope to provide a way for astrophysicist coders to get a little more recognition for their work, too, and are looking for a way to make the ASCL citable. </p>
<p><div class="toggle"></p>
<p>The ASCL is housed on <a href="http://asterisk.apod.com/index.php">Starship Asterisk</a>*, the discussion forum for APOD, in its own forum called &ldquo;<a href="http://asterisk.apod.com/viewforum.php?f=35">The Engineering Deck: Astrophysics Source Code Library</a>.&rdquo; The first three threads on the ASCL&rsquo;s forum front page are informational. The first is a guide to the resource; the table of contents for this thread, contained in the first post on the thread, is shown below.</p>
<p align="center"><img src="http://www.astrobetter.com/wp-content/uploads/2011/08/ascl.png" alt="ASCL" height="439" width="686">
	</p>
<p>Each downloadable code listed in the ASCL has its own thread; the first post of each code thread contains the following information:</p>
<ul>
<li>Name of code</li>
<li class="c6 c5">Abstract or description of code</li>
<li class="c6 c5">Person(s) credited with writing the code</li>
<li class="c6 c5">Link to the source code site</li>
<li class="c6 c5">Link to a paper which discusses or uses the code</li>
<li class="c6 c5">Unique ASCL identifier</li>
</ul>
<p>	Most entries do not house the codes themselves, but instead, list the location of a code&rsquo;s information and download site. Most developers who make their codes available prefer to maintain their own websites for codes, as one of the (big!) advantages of doing so is version control. Few codes are stored on ASCL itself at this point; the ability to do so is recent. Codes which don&rsquo;t have a download site can be made available on the ASCL by attaching an archive file (i.e., .zip or .gz) to the thread.&nbsp;Whether codes are stored on developers&rsquo; sites or on the ASCL, we want to make codes, and code sites, easier for astrophysicists to find.</p>
<p>Questions about and discussion of a code can be posted right on the code thread. It is not necessary to register for the APOD Starship Asterisk* forum to read and post on the ASCL site, but there is an advantage to doing so: registered users can subscribe to the forum and/or a particular thread on the forum, which alerts them via email when the thread or forum has been updated.</p>
<p>Codes are listed in the ASCL alphabetically by name, 100 threads to a page. Well-established codes such as Aarseth&rsquo;s <a href="http://asterisk.apod.com/viewtopic.php?f=35&amp;t=22834">N-BODY</a>&nbsp;codes, used now for 40 years, are included, as are new codes such as <a href="http://asterisk.apod.com/viewtopic.php?f=35&amp;t=24724">SHERA</a>, which was introduced last month. (We paw through papers looking for codes so you don&rsquo;t have to!) A full-text search capability is available; searches can be refined by iterative searching on the results. Because the ASCL has multiple pages of codes, which can be written in any language, the ability to search easily is increasingly important.</p>
<p>Do you know of or have a downloadable code that isn&rsquo;t listed? Tell! Tell! (Please!) To get a code added, contact me at alice.allen1 at verizon.net or post the suggestion on the <a href="http://asterisk.apod.com/viewtopic.php?f=35&amp;t=20337">New codes welcome</a>&nbsp;thread. (Sending cookies is totally optional!)</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/astrophysics-source-code-library-ascl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualizing Simulated Data</title>
		<link>http://www.astrobetter.com/visualizing-simulated-data/</link>
		<comments>http://www.astrobetter.com/visualizing-simulated-data/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 12:00:47 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[AMR]]></category>
		<category><![CDATA[yt]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=4667</guid>
		<description><![CDATA[More and more astronomers are writing, running, and using massive computer simulations. The complexity of these simulations (often 3D space + time) means that visualization can be challenging. Over at Astropython, they have posted about the - yt - toolkit that allows you to analyze and visualize the results of adaptive mesh refinement simulation codes (AMR). AMR [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.astrobetter.com/wp-content/uploads/2011/05/s_projection_z_density.png"><img class="alignright size-medium wp-image-4668" title="Density Slice Produced by yt" src="http://www.astrobetter.com/wp-content/uploads/2011/05/s_projection_z_density-300x240.png" alt="" width="300" height="240" /></a>More and more astronomers are writing, running, and using massive computer simulations. The complexity of these simulations (often 3D space + time) means that visualization can be challenging. Over at <a href="http://www.astropython.org/">Astropython</a>, they have <a href="http://www.astropython.org/resource/2011/4/yt">posted</a> about the - <strong><a href="http://yt.enzotools.org/">yt</a></strong> - toolkit that allows you to analyze and visualize the results of <a href="http://astro.berkeley.edu/~cmckee/bafd/amr.html">adaptive mesh refinement simulation codes (AMR)</a>. AMR codes are used to simulate the formation of cosmological large scale structure, the collapse of gas clouds to form stars, fluid dynamics involving shocks, jets, etc. The <strong>yt</strong> toolkit is written in python and works with several AMR codes including <a href="http://lca.ucsd.edu/portal/software/enzo">Enzo</a>, Orion, <a href="http://flash.uchicago.edu/site/flashcode/">FLASH</a>, and preliminary support for <a href="http://irfu.cea.fr/Phocea/Vie_des_labos/Ast/ast_sstechnique.php?id_ast=904">RAMSES</a>, ART, <a href="https://seesar.lbl.gov/ANAG/chombo/" class="broken_link">Chombo</a>, <a href="https://ccse.lbl.gov/Research/CASTRO/index.html">CASTRO</a> and <a href="http://www.nersc.gov/research-and-development/benchmarking-and-workload-characterization/nersc-6-benchmarks/maestro/">MAESTRO</a>. Data from one of these AMR codes can be sliced, diced, profiled, binned, and volume-rendered.</p>
<p><strong>yt</strong> is described in <a href="http://adsabs.harvard.edu/abs/2011ApJS..192....9T">Turk et al. 2010</a> and can be <a href="http://yt.enzotools.org/">downloaded for free</a>. The documentation includes a nice <a href="http://yt.enzotools.org/doc/welcome_to_yt.html">summary</a> and <a href="http://yt.enzotools.org/doc/orientation.html">orientation</a>. I have updated our <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=python">Python wiki page</a> to provide links.</p>
<p>Have you used <strong>yt</strong> and what was your experience like? What are the similar visualization packages for <a href="http://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics">smooth-particle hydrodynamics (SPH)</a> codes?</p>
<p><strong><span style="color: #c0c0c0;">Wiki: </span><a href="http://www.astrobetter.com/wiki/tiki-index.php?page=python">Python</a>, <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=Simulations">Simulations</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/visualizing-simulated-data/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>IRSA takes over Spitzer archive</title>
		<link>http://www.astrobetter.com/irsa-takes-over-spitzer-archive/</link>
		<comments>http://www.astrobetter.com/irsa-takes-over-spitzer-archive/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 12:05:56 +0000</pubDate>
		<dc:creator>Guest</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[IRSA]]></category>
		<category><![CDATA[SHA]]></category>
		<category><![CDATA[spitzer]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=4537</guid>
		<description><![CDATA[Luisa Rebull is a Research Scientist at the Spitzer Science Center at the Infrared Processing and Analysis Center (IPAC) at Caltech. She is the Archive Scientist for Spitzer, and has been working on the development of the Spitzer Heritage Achive. There are two important recent developments in the Spitzer world: (1) the handover to IRSA [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em><a href="http://web.ipac.caltech.edu/staff/rebull/">Luisa Rebull</a> is a Research Scientist at the Spitzer Science Center at the Infrared Processing and Analysis Center (IPAC) at Caltech. She is the Archive Scientist for Spitzer, and has been working on the development of the <a href="http://irsa.ipac.caltech.edu/applications/Spitzer/SHA/">Spitzer Heritage Achive</a>.</em></p>
<p><img style="float: right; margin-left: 1em;" src="http://www.astrobetter.com/wp-content/uploads/2010/10/spitzer.jpg" alt="Spitzer" width="288" height="238" /> There are two important recent developments in the Spitzer world: (1) the handover to IRSA of the Archive, and (2) the recent release of version 2.0 of the Spitzer Heritage Archive.</p>
<h2>The IRSA handover</h2>
<p>The Spitzer project has reached a major milestone in the completion of the Spitzer cryogenic mission.   Since the end of the cryogenic mission in May 2009, the Spitzer Science Center (SSC) has been conducting the final data processing<div class="toggle"> of all cryogenic mission data and these data are now available in the Spitzer Heritage Archive at the NASA/IPAC Infrared Science Archive (IRSA) at the Infrared Processing and Analysis Center (IPAC).  IRSA is responsible for the long-term curation of the Spitzer mission science data, tools and documentation.  In addition to curation of the data, IRSA now has responsibility for the cryogenic mission science user support.</p>
<p>The Spitzer cryogenic mission website is now available <a href="http://irsa.ipac.caltech.edu/data/SPITZER/docs/">here, at IRSA</a>.   The Spitzer Science Center&#8217;s active warm mission website, as well as links to the cryogenic mission pages at IRSA, remains <a href="http://ssc.spitzer.caltech.edu/">here, at the SSC</a>. Based on the resources available at the SSC and IRSA, science user support tasks are similarly divided &#8212; <a href="http://ssc.spitzer.caltech.edu/spitzerhelpdesk/">SSC for  IRAC warm and cryogenic mission support</a> and  <a href="http://irsa.ipac.caltech.edu/applications/Helpdesk">IRSA for all MIPS and IRS support</a>.  Questions sent to either the SSC or IRSA Helpdesks will be routed to the appropriate person at the SSC or IRSA.</p>
<h2>Spitzer Heritage Archive (SHA) version 2.0</h2>
<p>This new version of the <a href="http://irsa.ipac.caltech.edu/applications/Spitzer/SHA/">SHA</a> includes:</p>
<ul>
<li>Access to the Legacy Enhanced Data products &#8212; try the &#8220;Inventory search&#8221; on the bottom of the left hand side of the search page.
<ul>
<li>Recall that the Legacy projects were large, coherent observing programs, which included delivery back to the SSC of enhanced data products such as mosaics and catalogs; some teams delivered considerable ancillary data at other bandpasses as well.  Any <a href="http://ssc.spitzer.caltech.edu/spitzermission/observingprograms/legacy/">delivered enhanced products from the Legacy teams</a> are available as simple (non-interactively searchable) files on the SSC website (click on ‘data deliveries’ for any team at the link above) or as searchable individual repositories at IRSA within the Gator or ATLAS services.  Now they are also searchable through the SHA interface as an &#8220;Inventory Search.&#8221;</li>
</ul>
</li>
<li>Automatically generated download scripts for downloading and unzipping many zip files at once, in a hands-off fashion.
<ul>
<li>If your packaging request generates more than one zipfile, you are given an option to generate a download script when the packaging is complete.</li>
</ul>
</li>
<li>VAO-compliant application program interface (API) for all image data; extracted spectra will be available via the API in a future version.</li>
<li>When you first go to the page, you are dropped directly into a position search (fewer clicks to get searching quickly).
<ul>
<li>A side effect of this is that you may need to reload the <a href="http://irsa.ipac.caltech.edu/applications/Spitzer/SHA/">SHA page</a> entirely (try clicking on that link) and/or clear your browser cache if you were working in the SHA before 9 March.</li>
</ul>
</li>
<li>Many fixed bugs from version 1.5.  (See <a href="http://irsa.ipac.caltech.edu/docs/known_issues/shabugslist.html">the bugs list</a>.)</li>
<li>The online help has been updated. Also new with this version is a standalone PDF SHA manual, and brief instructional videos. These are available from <a href="http://ssc.spitzer.caltech.edu/spitzerdataarchives/">here</a>.</li>
</ul>
<h2>Questions?</h2>
<p>Questions? Problems? Bugs? Suggestions? You can reach us at the  <a href="http://irsa.ipac.caltech.edu/applications/Helpdesk">IRSA Helpdesk</a> or the  <a href="http://ssc.spitzer.caltech.edu/spitzerhelpdesk/">Spitzer Helpdesk</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/irsa-takes-over-spitzer-archive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiki Upgrade and New Page on Stellar Evolution and Atmosphere Models</title>
		<link>http://www.astrobetter.com/wiki-upgrade-and-new-page-on-stellar-evolution-and-atmosphere-models/</link>
		<comments>http://www.astrobetter.com/wiki-upgrade-and-new-page-on-stellar-evolution-and-atmosphere-models/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 15:47:59 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[about]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=4469</guid>
		<description><![CDATA[Wiki Upgrade Some of you may have noticed that the wiki appearance has changed. This is because we have upgraded the wiki to the latest and greatest version of TikiWiki (6.2). Some of the functionality, especially wiki editing, should be greatly improved. We are still in the process of importing all of our stylistic customizations [...]]]></description>
			<content:encoded><![CDATA[<p></p><h3>Wiki Upgrade</h3>
<div id="attachment_4475" class="wp-caption alignright" style="width: 300px">
	<a href="http://en.wikipedia.org/wiki/File:Stellar_evolutionary_tracks-en.svg"><img class="size-medium wp-image-4475 " title="HR Diagram" src="http://www.astrobetter.com/wp-content/uploads/2011/03/Screen-shot-2011-03-23-at-10.14.08-AM-300x251.png" alt="" width="300" height="251" /></a>
	<p class="wp-caption-text">Shows a main-sequence isochrone and several evolutionary tracks for stars of a specific mass. Click on image to see references at Wikipedia.</p>
</div>
<p>Some of you may have noticed that the wiki appearance has changed. This is because we have upgraded the wiki to the latest and greatest version of TikiWiki (6.2). Some of the functionality, especially wiki editing, should be greatly improved. We are still in the process of importing all of our stylistic customizations so the look and feel will improve with time.</p>
<p>We are also aware that the site has been generally slow and sometimes the wiki is inaccessible. Our hosting service is throttling our performance due to excess CPU usage. We are still in the process of tracking down why this is happening.</p>
<h3>New Wiki Page on Stellar Evolution and Atmosphere Models</h3>
<p>In the meantime, I have put together a collection of links and papers useful for modeling stars or stellar populations on a new <a title="Data Modeling" href="http://www.astrobetter.com/wiki/tiki-index.php?page=Data+Modeling">Data Modeling</a> page. It is thorough, but not yet complete, so please add your favorite evolution and atmosphere models and codes. Listing and linking to these models is the easy part. A more difficult proposition is deciding when to use different sets of models (mass range, age range, metallicity range, etc.). Unfortunately, there doesn&#8217;t seem to be one code for stellar evolution or atmospheres that is applicable over an entire mass range of stars (0.08 Msun &#8211; 150 Msun) even at a fixed age (I work with young populations). What are your favorite models and when do you use them? Are there libraries of synthetic spectra for atmospheres that I am missing (especially extending beyond the optical wavelengths)?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/wiki-upgrade-and-new-page-on-stellar-evolution-and-atmosphere-models/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Turn an ASCII Table into an SDSS spectrum? [Ask AstroBetter]</title>
		<link>http://www.astrobetter.com/how-to-turn-sdss-spectra-into-an-ascii-table-ask-astrobetter/</link>
		<comments>http://www.astrobetter.com/how-to-turn-sdss-spectra-into-an-ascii-table-ask-astrobetter/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 12:34:14 +0000</pubDate>
		<dc:creator>Kelle</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[sdss]]></category>
		<category><![CDATA[spectroscopy]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=4125</guid>
		<description><![CDATA[[title revised Jan 19] Since Jane&#8217;s questions have proved to be very popular and useful posts, we&#8217;ve decided to make &#8220;Ask AstroBetter&#8221; a regular feature. Continuing on the theme of spectral analysis, Eilat asks, Is there a straightforward way to take a table of wavelength, flux, error spanning the same range as SDSS spectra and [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>[<em>title revised Jan 19</em>]</p>
<p>Since <a href="http://www.astrobetter.com/fitting-surface-brightness-profiles/">Jane&#8217;s</a> <a href="http://www.astrobetter.com/spectral-line-analysis-tools/">questions</a> have proved to be very popular and useful posts, we&#8217;ve decided to make &#8220;Ask AstroBetter&#8221; a regular feature. </p>
<p>Continuing on the theme of <a href="http://www.astrobetter.com/spectral-line-analysis-tools/">spectral analysis</a>, Eilat asks,</p>
<blockquote><p>Is there a straightforward way to take a table of wavelength, flux, error spanning the same range as SDSS spectra and put it into SDSS spectrum format that is then digestible by SDSS-specific software.  If anyone knows how to do this, I imagine it would be useful beyond my own specific needs, since there are lots of codes developed for analyzing SDSS spectra that best recognize that particular file format.</p></blockquote>
<p>Looking forward to your responses in the comments!</p>
<p>Got a nagging question? Drop us a line at tips@astrobetter.com. Depending on how many questions we get, we may be motivated to get a proper discussion board started.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/how-to-turn-sdss-spectra-into-an-ascii-table-ask-astrobetter/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Recent AstroStatistics Papers</title>
		<link>http://www.astrobetter.com/recent-astrostatistics-papers/</link>
		<comments>http://www.astrobetter.com/recent-astrostatistics-papers/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 12:30:11 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=3882</guid>
		<description><![CDATA[For many astronomers, statistics is an integral part of our analysis procedure; yet, we typically get very little formal training in this area. Recently, several astro-statistics papers have been posted on astro-ph that specifically address some of the unique attributes of astronomical data (small numbers of data points, frequent systematic errors or outliers, non-linear models, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>For many astronomers, statistics is an integral part of our analysis procedure; yet, we typically get very little formal training in this area. Recently, several astro-statistics papers have been posted on astro-ph that specifically address some of the unique attributes of astronomical data (small numbers of data points, frequent systematic errors or outliers, non-linear models, heteroskedastic error bars and limits, etc.). I would like to round up these and other similar astro-stats papers and post them as a collection on the wiki. Do you know of additional astro-stats papers to include in this collection?</p>
<ul style="list-style-type: none; margin-left:0;">
<li style="margin-bottom:1em;"><a href="http://lanl.arxiv.org/abs/1009.2755">Error Estimation in Astronomy: a Guide</a>, Andrae&#8217; (arXiv:1009.2755)
<ul>
<li>critical look at a common practice of rescaling error bars to get reduced chi-squared=1.</li>
<li>very good description of the different methods for defining confidence intervals</li>
</li>
</ul>
</li>
<li style="margin-bottom:1em;"><a href="http://lanl.arxiv.org/abs/1012.3754">Dos and Don&#8217;ts of Reduced Chi-Squared</a>, Andrae&#8217;, Schulze-Hartung, &amp; Melchior (arXiv:1012.3754)</li>
<li style="margin-bottom:1em;"><a href="http://lanl.arxiv.org/abs/1008.4686">Data Analysis Recipes: Fitting a Model to Data</a>, Hogg, Bovy, &amp; Lang (arXiv:1008.4686)
<ul>
<li>describes the basics of both frequentist and bayesian approaches</li>
</ul>
</li>
</ul>
<p>Note: There are some excellent books for purchase on astro-statistics; but here I am collecting papers that are available via astro-ph or in journals that most institutions have access to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/recent-astrostatistics-papers/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Unintentional Biases, Band-Wagon Effects, and the Weaknesses of the Scientific Method</title>
		<link>http://www.astrobetter.com/unintentional-biases-band-wagon-effects-and-the-weaknesses-of-the-scientific-method/</link>
		<comments>http://www.astrobetter.com/unintentional-biases-band-wagon-effects-and-the-weaknesses-of-the-scientific-method/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 15:32:34 +0000</pubDate>
		<dc:creator>Kelle</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=3778</guid>
		<description><![CDATA[Rethinking the scientific method &#124; The New Yorker (subscription required, unfortunately) Extremely disturbing article about well-intentioned scientists&#8217; experiments and conclusions gone awry. Most upsetting is the lack of reproducibility in many important studies and the likelihood that those works don&#8217;t get published. The disturbing implication of his study is that a lot of extraordinary scientific [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.newyorker.com/reporting/2010/12/13/101213fa_fact_lehrer">Rethinking the scientific method</a> | <a href="http://www.newyorker.com/">The New Yorker</a> (subscription required, unfortunately)<br />
Extremely disturbing article about well-intentioned scientists&#8217; experiments and conclusions gone awry. Most upsetting is the lack of reproducibility in many important studies and the likelihood that those works don&#8217;t get published. </p>
<blockquote><p>The disturbing implication of his study is that a lot of extraordinary scientific data is nothing but noise. This suggests that the decline effect is actually a decline of illusion. Many scientific theories continue to be considered true even after failing numerous experimental tests. The decline effect is troubling because it reminds us how difficult it is to prove anything.</p></blockquote>
<p>The article is about medicine, but I wonder how big of a problem this is in Astronomy. I posed this question to my <a href="http://www.google.com/profiles/kellecruz#buzz">Buzz</a> followers, and <a href="http://www.google.com/profiles/august.fly#buzz">Gus Muench</a> pointed out this <a  href="http://iopscience.iop.org/1538-3881/135/1/112/fulltext">article on the distances the LMC</a>. The author describes an unsettling cluster of distance around the HST Key Project (HSTKP) value.</p>
<blockquote><p>Indeed, these measures cluster too tightly around the HSTKP value, with 68% of the measures being within 0.5-sigma of 18.50 mag. A Kolmogorov-Smirnov test proves that this concentration deviates from the expected Gaussian distribution at a >3-sigma probability level. This concentration is a symptom of a worrisome problem. Interpretations considered include correlations between papers, widespread over-estimation of error bars, and band-wagon effects. The purpose of this paper is to alert workers in the field that this is a serious problem that should be addressed.</p></blockquote>
<p>Do you know of other examples of band-wagon effects that we should be aware (and wary) of? Are there astronomical questions that are more susceptible to these types of biases than others?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/unintentional-biases-band-wagon-effects-and-the-weaknesses-of-the-scientific-method/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Topcat: Leader of the Catalogue Manipulation Gang</title>
		<link>http://www.astrobetter.com/topcat-leader-of-the-catalogue-manipulation-gang/</link>
		<comments>http://www.astrobetter.com/topcat-leader-of-the-catalogue-manipulation-gang/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 13:00:26 +0000</pubDate>
		<dc:creator>Guest</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[plotting]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=3067</guid>
		<description><![CDATA[This is a guest post&#8212;featuring our first screencast!&#8212;from Niall Deacon who studies brown dwarfs and white dwarfs in the Pan-STARRS survey at the University of Hawai`i. Niall also blogs about astronomy at weareallinthegutter. If you are drowning in search windows from different data archives and wasting time writing code to plot graphs of the simplest [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><i>This is a guest post&#8212;featuring our first screencast!&#8212;from <a href="http://ifa.hawaii.edu/~ndeacon/">Niall Deacon</a> who studies brown dwarfs and white dwarfs in the Pan-STARRS survey at the University of Hawai`i. Niall also blogs about astronomy at <a href="http://weareallinthegutter.wordpress.com/">weareallinthegutter</a>.  </i></p>
<p><img src="http://www.astrobetter.com/wp-content/uploads/2010/09/topcat1.png" alt="Topcat" height="97" width="400" style="float:right; margin:0 1em 1em 1em;">If you are drowning in search windows from different data archives and wasting time writing code to plot graphs of the simplest datasets then maybe it&#8217;s time to look at <a href="http://www.star.bristol.ac.uk/~mbt/topcat/">Topcat</a>, a nifty little Java application to make life easier.</p>
<p>
There&#8217;s a huge amount of astronomical data on the web and Topcat can give you easy access to a big chunk of it. Take for example large surveys like 2MASS and SDSS, these can be queried from the cone search (if you want all the objects in a particular area) or the multiple cone search (for extracting photometry for a list of objects). Want to check your candidates against the literature? Just search for any data table in Vizier and cross reference with it. There is also a spectroscopic database to query against. Want to quickly eyeball a couple of candidates? The activation actions can be used to bring up finders from 2MASS, SuperCOSMOS or SDSS.
</p>
<p><div class="toggle"></p>
<p>
<a href="http://www.star.bristol.ac.uk/~mbt/topcat/">Topcat</a> was developed by Mark Taylor at Bristol as part of the UK&#8217;s VO program (<a href="http://www.astrogrid.org/">Astrogrid</a>). While it can be used with other VO tools, I use it as a stand-alone application because it can do everything I want it to do on its own. It&#8217;s a Java application which I&#8217;ve run on both my Mac desktop and Ubuntu laptop without any issues.
</p>
<p>
Without an internet connection Topcat is also a useful tool for basic data manipulation and vetting. Take for example a table of candidates you&#8217;ve extracted from an archive. Using the scatter plot you can quickly plot up the data, select out a subset that looks interesting and examine it further. It also provides table matching so you could check the dataset against a table of objects you&#8217;ve already observed (either by positional matching or by matching a catalogue number). I find this incredibly useful for doing basic data quality and consistency checks.</p>
<p>
Rather than just waffle on about how useful it is, here&#8217;s a video of me doing a short science project looking for bright members of the Pleiades using Topcat:
</p>
<p><object width="580" height="360"><param name="movie" value="http://www.youtube.com/v/XMFxVpP_F1o?fs=1&amp;hl=en_US&amp;rel=0&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XMFxVpP_F1o?fs=1&amp;hl=en_US&amp;rel=0&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed></object></p>
<p>One word of warning, like all applications Topcat has memory limits. It displays how much memory it has taken up but it&#8217;s a good idea to save your session regularly just in case. As I mentioned before I only use Topcat as a stand-alone tool, anyone who has experiences using it with other VO tools is welcome to use the comments thread to show me what I&#8217;m missing out on.</p>
<p>Niall babbles about astronomy with a few other selfish transients (or postdocs as some call them) at <a href="http://weareallinthegutter.wordpress.com/">weareallinthegutter</a>. He <a href="http://ifa.hawaii.edu/~ndeacon/">studies brown dwarfs and white dwarfs</a> in the Pan-STARRS survey at the University of Hawai`i and was using his phone voice for the video.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/topcat-leader-of-the-catalogue-manipulation-gang/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Manipulating and Viewing FITS Files in Python with pyds9</title>
		<link>http://www.astrobetter.com/manipulating-and-viewing-fits-files-in-python-with-pyds9/</link>
		<comments>http://www.astrobetter.com/manipulating-and-viewing-fits-files-in-python-with-pyds9/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 12:00:07 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ds9]]></category>
		<category><![CDATA[figures]]></category>
		<category><![CDATA[pyds9]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=2262</guid>
		<description><![CDATA[For anyone who uses python and ds9 to visualize their FITS files, I think pyds9 is now a must-have. It is officially written and developed through SAOImage ds9 so it will be supported for the long haul. Here are the primary links to get going: TARball for installation: Source Documentation for installation and use: Docs [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.astrobetter.com/wp-content/uploads/2010/07/Picture-3.png"><img class="alignright size-medium wp-image-2631" title="Picture 3" src="http://www.astrobetter.com/wp-content/uploads/2010/07/Picture-3-300x217.png" alt="" width="300" height="217" /></a>For anyone who uses python and ds9 to visualize their FITS files, I think <a title="pyds9" href="http://hea-www.harvard.edu/saord/ds9/pyds9/">pyds9</a> is now a must-have. It is officially written and developed through SAOImage ds9 so it will be supported for the long haul. Here are the primary links to get going:</p>
<ul>
<li>TARball for installation: <a href="http://hea-www.harvard.edu/saord/download/ds9/python/pyds9-1.0.tar.gz">Source</a></li>
<li>Documentation for installation and use: <a title="Docs" href="http://hea-www.harvard.edu/saord/ds9/pyds9/">Docs</a></li>
</ul>
<p>The documentation is pretty basic so I put together a very small tutorial of a way I might typically use it. Most of the controls work through the XPA interface, which seems very flexible, if a little tricky to figure out exactly how to make it work for specific use-cases. If you have samples of how you use pyds9 or ds9 xpa, post them in the comments or on this <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=pyds9+Tutorials">wiki page</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> scipy <span style="color: #ff7700;font-weight:bold;">import</span> stats
<span style="color: #ff7700;font-weight:bold;">import</span> numpy <span style="color: #ff7700;font-weight:bold;">as</span> np
<span style="color: #ff7700;font-weight:bold;">import</span> ds9
&nbsp;
<span style="color: #808080; font-style: italic;"># Make a 2D gaussian image that is stored in a 2D numpy array</span>
x = np.<span style="color: black;">arange</span><span style="color: black;">&#40;</span>-<span style="color: #ff4500;">3</span>, <span style="color: #ff4500;">3</span>, <span style="color: #ff4500;">0.1</span><span style="color: black;">&#41;</span>
xx, yy = np.<span style="color: black;">meshgrid</span><span style="color: black;">&#40;</span>x, x<span style="color: black;">&#41;</span>
gauss2d = stats.<span style="color: black;">norm</span>.<span style="color: black;">pdf</span><span style="color: black;">&#40;</span>xx<span style="color: black;">&#41;</span> <span style="color: #66cc66;">*</span> stats.<span style="color: black;">norm</span>.<span style="color: black;">pdf</span><span style="color: black;">&#40;</span>yy<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Now open ds9 (this assumes no ds9 instance is yet running)</span>
d = ds9.<span style="color: black;">ds9</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Load up our 2D gaussian</span>
d.<span style="color: black;">set_np2arr</span><span style="color: black;">&#40;</span>gauss2d<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Zoom to fit</span>
d.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'zoom to fit'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Change the colormap and scaling</span>
d.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'cmap bb'</span><span style="color: black;">&#41;</span>
d.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'scale log'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Add a label</span>
d.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'regions command {text 30 20 #text=&quot;Fun with pyds9&quot; font=&quot;times 18 bold&quot;}'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Now you can play in ds9 to your heart's content.</span>
<span style="color: #808080; font-style: italic;"># Check back to see what the current color scale is.</span>
<span style="color: #ff7700;font-weight:bold;">print</span> d.<span style="color: black;">get</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'scale'</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Finally, save your completed image (including regions or labels)</span>
d.<span style="color: #008000;">set</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'saveimage png my_pyds9_img.png'</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/manipulating-and-viewing-fits-files-in-python-with-pyds9/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Interpolation and Integration in Python</title>
		<link>http://www.astrobetter.com/interpolation-and-integration-in-python/</link>
		<comments>http://www.astrobetter.com/interpolation-and-integration-in-python/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 12:02:51 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[interpolation]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=2146</guid>
		<description><![CDATA[Interpolation Interpolation is a used for many astronomical applications. Interpolation is required to combine sub-pixel dithered images or spectroscopy, sample grids of stellar evolution or stellar atmosphere models, calculate extinction from observed extinction curves, and many many more applications. The scipy.interpolate package in python has some nice built-in interpolation functions and I have gathered a [...]]]></description>
			<content:encoded><![CDATA[<p></p><h2>Interpolation</h2>
<div id="attachment_2383" class="wp-caption alignright" style="width: 280px">
	<a href="http://www.astrobetter.com/wp-content/uploads/2010/06/interpolation.png"><img class="size-thumbnail wp-image-2383" style="padding:0px;" title="interpolation_figure" src="http://www.astrobetter.com/wp-content/uploads/2010/06/interpolation.png" alt="" width="280" /></a>
	<p class="wp-caption-text">Interpolation: Filter profiles may be reported as transmission vs. wavelength data points. To resample the filter profiles to a different (regularly spaced) wavelength grid, I used scipy&#39;s interpolation package.</p>
</div>
<p>Interpolation is a used for many astronomical applications. Interpolation is required to combine sub-pixel dithered images or spectroscopy, sample grids of stellar evolution or stellar atmosphere models, calculate extinction from observed extinction curves, and many many more applications. The <a href="http://docs.scipy.org/doc/scipy/reference/interpolate.html">scipy.interpolate</a> package in python has some nice built-in interpolation functions and I have gathered a few links describing the capabilities (in addition to the documentation). I would recommend using <a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splrep.html">splrep</a>/<a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splev.html">splev</a> over <a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html#scipy.interpolate.interp1d">interp1d</a> for speed.</p>
<ul>
<li><a href="http://www.scipy.org/Cookbook/Interpolation">Scipy cookbook</a> on interpolation</li>
<li>A <a href="http://www.slideshare.net/enthought/interpolation-with-scipy-and-numpy">slideshow</a> outlining the interpolation capabilities in Scipy</li>
<li>A <a href="http://mail.scipy.org/pipermail/scipy-user/2010-February/024115.html">thread</a> explaining terms in spline interpolation/smoothing</li>
</ul>
<p><div class="toggle"></p>
<h2>Integration</h2>
<p>Within Scipy, there is an integrate package with several different functions that perform definite or indefinite integrals. I have only played with these briefly; however, I tested both the <kbd>scipy.integrate.quad()</kbd> and <kbd>scipy.integrate.romberg()</kbd> functions. These all work in roughly the same way by taking a user-defined function, and the upper and lower boundaries of the integral. Here is a brief example:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> scipy <span style="color: #ff7700;font-weight:bold;">import</span> integrate
<span style="color: #ff7700;font-weight:bold;">def</span> myfunc<span style="color: black;">&#40;</span>x, a, b<span style="color: black;">&#41;</span>:
<span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: black;">&#40;</span>x<span style="color: #66cc66;">**</span>b<span style="color: black;">&#41;</span> + a
&nbsp;
<span style="color: #808080; font-style: italic;"># These are the arguments that will be passed as a and b to myfunc()</span>
args = <span style="color: black;">&#40;</span><span style="color: #ff4500;">1.0</span>, -<span style="color: #ff4500;">2.0</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;"># Integrate myfunc() from 0.5 to 1.5</span>
results = integrate.<span style="color: black;">quad</span><span style="color: black;">&#40;</span>myfunc, <span style="color: #ff4500;">0.5</span>, <span style="color: #ff4500;">1.5</span>, args<span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Integral = '</span>, results<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>, <span style="color: #483d8b;">' with error = '</span>, results<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span></pre></div></div>

<p>The well-established Fortran QUADPACK integration code lies underneath <kbd>quad()</kbd> while <kbd>romberg()</kbd> appears to be a python only implementation (??). While I would much rather use <kbd>quad()</kbd> for its robustness, it only supports user-functions that accept single value floats; while <kbd>romberg()</kbd> will pass in vectors of values. For some of my applications, <kbd>myfunc()</kbd> is computationally intensive, so there is an order of magnitude speed gain by having a properly vectorized <kbd>myfunc()</kbd> used in vector-form by the integration code. Only with <kbd>romberg()</kbd> have I matched the speed of IDL&#8217;s <a href="http://www.physics.wisc.edu/~craigm/idl/math.html#qpint1d">qpint1d</a> (from <a href="http://www.physics.wisc.edu/~craigm/idl/">Markwardt library</a>, also based on QUADPACK, but vectorized) for identical <kbd>myfunc()</kbd>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/interpolation-and-integration-in-python/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

