<?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>Mon, 26 Jul 2010 13:28:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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

The documentation is [...]]]></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>




Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;title=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9&amp;bodytext=For%20anyone%20who%20uses%20python%20and%20ds9%20to%20visualize%20their%20FITS%20files%2C%20I%20think%20pyds9%20is%20now%20a%20must-have.%20It%20is%20officially%20written%20and%20developed%20through%20SAOImage%20ds9%20so%20it%20will%20be%20supported%20for%20the%20long%20haul.%20Here%20are%20the%20primary%20links%20to%20get%20going%3A%0D%0A%0D%0A%09TA" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;title=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9&amp;notes=For%20anyone%20who%20uses%20python%20and%20ds9%20to%20visualize%20their%20FITS%20files%2C%20I%20think%20pyds9%20is%20now%20a%20must-have.%20It%20is%20officially%20written%20and%20developed%20through%20SAOImage%20ds9%20so%20it%20will%20be%20supported%20for%20the%20long%20haul.%20Here%20are%20the%20primary%20links%20to%20get%20going%3A%0D%0A%0D%0A%09TA" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;t=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;title=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9&amp;annotation=For%20anyone%20who%20uses%20python%20and%20ds9%20to%20visualize%20their%20FITS%20files%2C%20I%20think%20pyds9%20is%20now%20a%20must-have.%20It%20is%20officially%20written%20and%20developed%20through%20SAOImage%20ds9%20so%20it%20will%20be%20supported%20for%20the%20long%20haul.%20Here%20are%20the%20primary%20links%20to%20get%20going%3A%0D%0A%0D%0A%09TA" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Manipulating%20and%20Viewing%20FITS%20Files%20in%20Python%20with%20pyds9%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fmanipulating-and-viewing-fits-files-in-python-with-pyds9%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=2262&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/manipulating-and-viewing-fits-files-in-python-with-pyds9/feed/</wfw:commentRss>
		<slash:comments>8</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 few [...]]]></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><span id="more-2146"></span></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>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;title=Interpolation%20and%20Integration%20in%20Python&amp;bodytext=Interpolation%0D%0A%0D%0A%0D%0AInterpolation%20is%20a%20used%20for%20many%20astronomical%20applications.%20Interpolation%20is%20required%20to%20combine%20sub-pixel%20dithered%20images%20or%20spectroscopy%2C%20sample%20grids%20of%20stellar%20evolution%20or%20stellar%20atmosphere%20models%2C%20calculate%20extinction%20from%20o" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;title=Interpolation%20and%20Integration%20in%20Python&amp;notes=Interpolation%0D%0A%0D%0A%0D%0AInterpolation%20is%20a%20used%20for%20many%20astronomical%20applications.%20Interpolation%20is%20required%20to%20combine%20sub-pixel%20dithered%20images%20or%20spectroscopy%2C%20sample%20grids%20of%20stellar%20evolution%20or%20stellar%20atmosphere%20models%2C%20calculate%20extinction%20from%20o" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;t=Interpolation%20and%20Integration%20in%20Python" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;title=Interpolation%20and%20Integration%20in%20Python&amp;annotation=Interpolation%0D%0A%0D%0A%0D%0AInterpolation%20is%20a%20used%20for%20many%20astronomical%20applications.%20Interpolation%20is%20required%20to%20combine%20sub-pixel%20dithered%20images%20or%20spectroscopy%2C%20sample%20grids%20of%20stellar%20evolution%20or%20stellar%20atmosphere%20models%2C%20calculate%20extinction%20from%20o" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Interpolation%20and%20Integration%20in%20Python&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Interpolation%20and%20Integration%20in%20Python%20-%20http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Finterpolation-and-integration-in-python%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=2146&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/interpolation-and-integration-in-python/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FITS images with catalog overlays</title>
		<link>http://www.astrobetter.com/fits-images-with-catalog-overlays/</link>
		<comments>http://www.astrobetter.com/fits-images-with-catalog-overlays/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 23:48:31 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[ds9]]></category>
		<category><![CDATA[fits]]></category>
		<category><![CDATA[idl]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[starlink]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=1859</guid>
		<description><![CDATA[I have been using ds9 to display images primarily due to inertia. I like the catalog tool for existing catalogs available online; but I wish there were a way to use custom catalog files without RA and Dec (just pixel coordinates) as well. I commonly resort to making ds9 region files, but this requires knowing [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I have been using ds9 to display images primarily due to inertia. I like the catalog tool for existing catalogs available online; but I wish there were a way to use custom catalog files without RA and Dec (just pixel coordinates) as well. I commonly resort to making ds9 region files, but this requires knowing exactly what you want to see (or filter on) ahead of time.</p>
<p>So three questions arise:</p>
<ol>
<li>what FITS file viewer do you use (I am talking about interactive image viewing here, not plotting and saving image files)?</li>
<li>what is your favorite way to work with catalogs and images together?</li>
<li>are there hidden interfaces to ds9 for custom catalog types (e.g. image coordinates rather than WCS)?</li>
</ol>
<p>In your comments, consider adding in how steep of a learning curve you had to climb when learning to use your favorite tools in this area.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;title=FITS%20images%20with%20catalog%20overlays&amp;bodytext=I%20have%20been%20using%20ds9%20to%20display%20images%20primarily%20due%20to%20inertia.%20I%20like%20the%20catalog%20tool%20for%20existing%20catalogs%20available%20online%3B%20but%20I%20wish%20there%20were%20a%20way%20to%20use%20custom%20catalog%20files%20without%20RA%20and%20Dec%20%28just%20pixel%20coordinates%29%20as%20well.%20I%20commonly%20" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;title=FITS%20images%20with%20catalog%20overlays&amp;notes=I%20have%20been%20using%20ds9%20to%20display%20images%20primarily%20due%20to%20inertia.%20I%20like%20the%20catalog%20tool%20for%20existing%20catalogs%20available%20online%3B%20but%20I%20wish%20there%20were%20a%20way%20to%20use%20custom%20catalog%20files%20without%20RA%20and%20Dec%20%28just%20pixel%20coordinates%29%20as%20well.%20I%20commonly%20" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;t=FITS%20images%20with%20catalog%20overlays" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;title=FITS%20images%20with%20catalog%20overlays&amp;annotation=I%20have%20been%20using%20ds9%20to%20display%20images%20primarily%20due%20to%20inertia.%20I%20like%20the%20catalog%20tool%20for%20existing%20catalogs%20available%20online%3B%20but%20I%20wish%20there%20were%20a%20way%20to%20use%20custom%20catalog%20files%20without%20RA%20and%20Dec%20%28just%20pixel%20coordinates%29%20as%20well.%20I%20commonly%20" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=FITS%20images%20with%20catalog%20overlays&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=FITS%20images%20with%20catalog%20overlays%20-%20http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffits-images-with-catalog-overlays%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=1859&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/fits-images-with-catalog-overlays/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Fourier Transforms of Images in Python</title>
		<link>http://www.astrobetter.com/fourier-transforms-of-images-in-python/</link>
		<comments>http://www.astrobetter.com/fourier-transforms-of-images-in-python/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 23:26:08 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=1809</guid>
		<description><![CDATA[There are many applications for taking fourier transforms of images (noise filtering, searching for small structures in diffuse galaxies, etc.). I wanted to point out some of the python capabilities that I have found useful in my particular application, which is to calculate the power spectrum of an image (for later separation of the distribution [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There are many applications for taking fourier transforms of images (noise filtering, searching for small structures in diffuse galaxies, etc.). I wanted to point out some of the python capabilities that I have found useful in my particular application, which is to calculate the power spectrum of an image (for later separation of the distribution of stars from the PSF and the noise; see Sheehy et al. 2006).</p>
<p>Below I have posted an example snippet of code, which you can also find on the <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=python_image_fft">wiki</a>. But first, some figures to show what we are doing &#8212;  an astronomical image (<em>left</em>), the 2D power spectrum of the image (<em>middle</em>), and the azimuthally averaged 1D power spectrum (<em>right</em>).<br />

<a href='http://www.astrobetter.com/fourier-transforms-of-images-in-python/image_fft_examp_image/' title='image_fft_examp_image'><img width="150" height="150" src="http://www.astrobetter.com/wp-content/uploads/2010/03/image_fft_examp_image-150x150.png" class="attachment-thumbnail" alt="" title="image_fft_examp_image" /></a>
<a href='http://www.astrobetter.com/fourier-transforms-of-images-in-python/image_fft_examp_psd2d/' title='image_fft_examp_psd2d'><img width="150" height="150" src="http://www.astrobetter.com/wp-content/uploads/2010/03/image_fft_examp_psd2d-150x150.png" class="attachment-thumbnail" alt="" title="image_fft_examp_psd2d" /></a>
<a href='http://www.astrobetter.com/fourier-transforms-of-images-in-python/image_fft_examp_psd1d/' title='image_fft_examp_psd1d'><img width="150" height="150" src="http://www.astrobetter.com/wp-content/uploads/2010/03/image_fft_examp_psd1d-150x150.png" class="attachment-thumbnail" alt="" title="image_fft_examp_psd1d" /></a>
<br />
<span id="more-1809"></span><br />
The bulk of the heavy lifting can be done using SciPy&#8217;s fftpack. I also wrote <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=python_radial_profiles">radialProfile.py</a> and it is very crude at the moment.<br />
[code lang="python"]<br />
from scipy import fftpack<br />
import pyfits<br />
import numpy as np<br />
import pylab as py<br />
import radialProfile</p>
<p>image = pyfits.getdata('myimage.fits')</p>
<p># Take the fourier transform of the image.<br />
F1 = fftpack.fft2(image)</p>
<p># Now shift the quadrants around so that low spatial frequencies are in<br />
# the center of the 2D fourier transformed image.<br />
F2 = fftpack.fftshift( F1 )</p>
<p># Calculate a 2D power spectrum<br />
psd2D = np.abs( F2 )**2</p>
<p># Calculate the azimuthally averaged 1D power spectrum<br />
psd1D = radialProfile.azimuthalAverage(psd2D)</p>
<p># Now plot up both<br />
py.figure(1)<br />
py.clf()<br />
py.imshow( np.log10( image ), cmap=py.cm.Greys)</p>
<p>py.figure(2)<br />
py.clf()<br />
py.imshow( np.log10( psf2D ))</p>
<p>py.figure(3)<br />
py.clf()<br />
py.semilogy( psf1D )<br />
py.xlabel('Spatial Frequency')<br />
py.ylabel('Power Spectrum')</p>
<p>py.show()<br />
[/code]</p>
<p>If you have suggestions for the above examples or other related code snippets or helper functions, let me know or comment below. I have posted this example <a href="http://www.astrobetter.com/wiki/tiki-index.php?page=python_image_fft">on the wiki</a> and will keep it updated with your suggestions.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;title=Fourier%20Transforms%20of%20Images%20in%20Python&amp;bodytext=There%20are%20many%20applications%20for%20taking%20fourier%20transforms%20of%20images%20%28noise%20filtering%2C%20searching%20for%20small%20structures%20in%20diffuse%20galaxies%2C%20etc.%29.%20I%20wanted%20to%20point%20out%20some%20of%20the%20python%20capabilities%20that%20I%20have%20found%20useful%20in%20my%20particular%20applicati" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;title=Fourier%20Transforms%20of%20Images%20in%20Python&amp;notes=There%20are%20many%20applications%20for%20taking%20fourier%20transforms%20of%20images%20%28noise%20filtering%2C%20searching%20for%20small%20structures%20in%20diffuse%20galaxies%2C%20etc.%29.%20I%20wanted%20to%20point%20out%20some%20of%20the%20python%20capabilities%20that%20I%20have%20found%20useful%20in%20my%20particular%20applicati" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;t=Fourier%20Transforms%20of%20Images%20in%20Python" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;title=Fourier%20Transforms%20of%20Images%20in%20Python&amp;annotation=There%20are%20many%20applications%20for%20taking%20fourier%20transforms%20of%20images%20%28noise%20filtering%2C%20searching%20for%20small%20structures%20in%20diffuse%20galaxies%2C%20etc.%29.%20I%20wanted%20to%20point%20out%20some%20of%20the%20python%20capabilities%20that%20I%20have%20found%20useful%20in%20my%20particular%20applicati" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Fourier%20Transforms%20of%20Images%20in%20Python&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Fourier%20Transforms%20of%20Images%20in%20Python%20-%20http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffourier-transforms-of-images-in-python%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=1809&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/fourier-transforms-of-images-in-python/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Fitting surface brightness profiles</title>
		<link>http://www.astrobetter.com/fitting-surface-brightness-profiles/</link>
		<comments>http://www.astrobetter.com/fitting-surface-brightness-profiles/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 00:31:39 +0000</pubDate>
		<dc:creator>Jane Rigby</dc:creator>
				<category><![CDATA[analysis]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=1440</guid>
		<description><![CDATA[It&#8217;s time for another session of, &#8220;Which tool do you use to accomplish a given astro-task, and why that tool?&#8221;  The topic:  fitting surface brightness profiles.  Two likely suspects:  the Archangel package, and iraf&#8217;s stsdas.analysis.isophote.  OK, go.



Share This:


	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p></p><p>It&#8217;s time for another session of, &#8220;Which tool do you use to accomplish a given astro-task, and why that tool?&#8221;  The topic:  fitting surface brightness profiles.  Two likely suspects:  the Archangel package, and iraf&#8217;s stsdas.analysis.isophote.  OK, go.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;title=Fitting%20surface%20brightness%20profiles&amp;bodytext=It%27s%20time%20for%20another%20session%20of%2C%20%22Which%20tool%20do%20you%20use%20to%20accomplish%20a%20given%20astro-task%2C%20and%20why%20that%20tool%3F%22%C2%A0%20The%20topic%3A%C2%A0%20fitting%20surface%20brightness%20profiles.%C2%A0%20Two%20likely%20suspects%3A%C2%A0%20the%20Archangel%20package%2C%20and%20iraf%27s%20stsdas.analysis.isophote.%C2%A0%20" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;title=Fitting%20surface%20brightness%20profiles&amp;notes=It%27s%20time%20for%20another%20session%20of%2C%20%22Which%20tool%20do%20you%20use%20to%20accomplish%20a%20given%20astro-task%2C%20and%20why%20that%20tool%3F%22%C2%A0%20The%20topic%3A%C2%A0%20fitting%20surface%20brightness%20profiles.%C2%A0%20Two%20likely%20suspects%3A%C2%A0%20the%20Archangel%20package%2C%20and%20iraf%27s%20stsdas.analysis.isophote.%C2%A0%20" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;t=Fitting%20surface%20brightness%20profiles" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;title=Fitting%20surface%20brightness%20profiles&amp;annotation=It%27s%20time%20for%20another%20session%20of%2C%20%22Which%20tool%20do%20you%20use%20to%20accomplish%20a%20given%20astro-task%2C%20and%20why%20that%20tool%3F%22%C2%A0%20The%20topic%3A%C2%A0%20fitting%20surface%20brightness%20profiles.%C2%A0%20Two%20likely%20suspects%3A%C2%A0%20the%20Archangel%20package%2C%20and%20iraf%27s%20stsdas.analysis.isophote.%C2%A0%20" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Fitting%20surface%20brightness%20profiles&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Fitting%20surface%20brightness%20profiles%20-%20http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Ffitting-surface-brightness-profiles%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=1440&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/fitting-surface-brightness-profiles/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Better ways to make large image mosaics?</title>
		<link>http://www.astrobetter.com/better-ways-to-make-large-image-mosiacs/</link>
		<comments>http://www.astrobetter.com/better-ways-to-make-large-image-mosiacs/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 13:00:20 +0000</pubDate>
		<dc:creator>Kelle</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[idl]]></category>
		<category><![CDATA[iraf]]></category>
		<category><![CDATA[mopex]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=973</guid>
		<description><![CDATA[Given the useful responses to Jane&#8217;s question about spectral line analysis, here&#8217;s another query for the community. This one is about making large image mosaics and it comes from Adam Ginsburg, a grad student at the University of Colorado, Boulder.
I want to make a large-scale mosaic of the Galactic Plane covering 90-180 degrees x a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Given the useful responses to <a href="http://www.astrobetter.com/apps/spectral-line-analysis-tools/">Jane&#8217;s question about spectral line analysis</a>, here&#8217;s another query for the community. This one is about making large image mosaics and it comes from <a href="http://casa.colorado.edu/~ginsbura/">Adam Ginsburg</a>, a grad student at the <a href="http://aps.colorado.edu/">University of Colorado, Boulder</a>.</em></p>
<p>I want to make a large-scale mosaic of the Galactic Plane covering 90-180 degrees x a few degrees.  There are a few ways to do this:</p>
<ul>
<li><a href="http://tucana.tuc.noao.edu/scripts/irafhelp?imcombine">IRAF&#8217;s imcombine</a> with offset=wcs is a quick and dirty path to a mosaic.  It is very fast, but very inaccurate over large scales and it sometimes does things flat-out wrong.</li>
<li><a href="http://idlastro.gsfc.nasa.gov/ftp/pro/astrom/hastrom.pro">IDL&#8217;s hastrom</a> and related astrolib utils generally work, but for large arrays (96000&#215;4000 pixels) I&#8217;ve seen IDL just crash.</li>
<li><a href="http://montage.ipac.caltech.edu/">IRSA&#8217;s Montage</a> works well, but is slow and consumes a lot of hard drive space in the process of making mosaics.  The setup is also kind of a pain; you need to make a lot of subdirectories and .tbl files in the process.</li>
<li><a href="http://ssc.spitzer.caltech.edu/postbcd/mopex.html">SSC&#8217;s mopex</a> must work quite well, but I just discovered it today and, like Montage, it has a learning curve.</li>
</ul>
<p>So, I&#8217;m curious, what do others use?  For example, what did <a href="http://www.gigagalaxyzoom.org/">GigaGalaxy Zoom</a> use?  If you&#8217;re trying to build a large near-IR finder chart using <a href="http://www.ipac.caltech.edu/2mass/">2MASS</a>, do you just go to montage?  Does anyone have convenient wrapper scripts written up?  Let&#8217;s hear it in the comments.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;title=Better%20ways%20to%20make%20large%20image%20mosaics%3F&amp;bodytext=Given%20the%20useful%20responses%20to%20Jane%27s%20question%20about%20spectral%20line%20analysis%2C%20here%27s%20another%20query%20for%20the%20community.%20This%20one%20is%20about%20making%20large%20image%20mosaics%20and%20it%20comes%20from%20Adam%20Ginsburg%2C%20a%20grad%20student%20at%20the%20University%20of%20Colorado%2C%20Boulder.%0D%0A" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;title=Better%20ways%20to%20make%20large%20image%20mosaics%3F&amp;notes=Given%20the%20useful%20responses%20to%20Jane%27s%20question%20about%20spectral%20line%20analysis%2C%20here%27s%20another%20query%20for%20the%20community.%20This%20one%20is%20about%20making%20large%20image%20mosaics%20and%20it%20comes%20from%20Adam%20Ginsburg%2C%20a%20grad%20student%20at%20the%20University%20of%20Colorado%2C%20Boulder.%0D%0A" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;t=Better%20ways%20to%20make%20large%20image%20mosaics%3F" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;title=Better%20ways%20to%20make%20large%20image%20mosaics%3F&amp;annotation=Given%20the%20useful%20responses%20to%20Jane%27s%20question%20about%20spectral%20line%20analysis%2C%20here%27s%20another%20query%20for%20the%20community.%20This%20one%20is%20about%20making%20large%20image%20mosaics%20and%20it%20comes%20from%20Adam%20Ginsburg%2C%20a%20grad%20student%20at%20the%20University%20of%20Colorado%2C%20Boulder.%0D%0A" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Better%20ways%20to%20make%20large%20image%20mosaics%3F&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Better%20ways%20to%20make%20large%20image%20mosaics%3F%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fbetter-ways-to-make-large-image-mosiacs%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=973&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/better-ways-to-make-large-image-mosiacs/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Integral Field Spectroscopy Wiki</title>
		<link>http://www.astrobetter.com/the-integral-field-spectroscopy-wiki/</link>
		<comments>http://www.astrobetter.com/the-integral-field-spectroscopy-wiki/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 16:00:56 +0000</pubDate>
		<dc:creator>Kelle</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[IFS]]></category>
		<category><![CDATA[spectroscopy]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=946</guid>
		<description><![CDATA[Here&#8217;s a guest post from Mark Westmoquette at the University College London.

Do you currently work with, or are you thinking about applying for integral field unit (IFU) observations? If so, then the Integral Field Spectroscopy wiki is for you.
With IFS instruments installed on all the main optical telescope facilities around the world, it is likely [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Here&#8217;s a guest post from <a href="http://zuserver2.star.ucl.ac.uk/~msw/">Mark Westmoquette</a> at the <a href="http://www.ucl.ac.uk/star/">University College London</a>.</em></p>
<p><img src="http://www.astrobetter.com/wp-content/uploads/2009/10/IFS_logo-300x68.jpg" alt="IFS_logo" title="IFS_logo" width="200" style="float:left; margin: 1em;"/></p>
<p>Do you currently work with, or are you thinking about applying for integral field unit (IFU) observations? If so, then the <a href="http://ifs.wikidot.com">Integral Field Spectroscopy wiki</a> is for you.</p>
<p>With IFS instruments installed on all the main optical telescope facilities around the world, it is likely that you will come across IFS data sooner or later. Unfortunately IFS continues to be avoided by large sections of the astronomical community due to perceived difficulties with data handling, reduction and analysis. There is no doubt that dealing with IFS data is more complicated than simple imaging or long-slit spectroscopy, but many of the problems that arise could benefit from the experience and knowledge of others. We have set up the IFS wiki in order to facilitate exchange of IFS knowledge, and to be a repository of information, tips, codes, tools, references, etc., accessible and editable by the whole community. The wiki is intended for use by IFS beginners for any questions or issues with IFS data and for more expert users. All are invited to contribute &#8211; tips, experience of particular instrumental quirks, pieces of code, etc, are particularly welcome.</p>
<ul>
Topics covered by the wiki are: </p>
<li>current and future integral field spectrographs; </li>
<li>observational techniques and planning; </li>
<li>data reduction, including overview of procedures for different types of IFS; </li>
<li>more advanced tasks like mosaicing or differential atmospheric refraction (DAR) correction; </li>
<li>analysis techniques, from visualisation to line fitting and source extraction. </li>
</ul>
<p>The founders and maintainers of this site are currently <a href="http://zuserver2.star.ucl.ac.uk/~msw/">Mark Westmoquette</a> (<a href="http://www.ucl.ac.uk/star/">University College London</a>, UK) and <a href="http://ster.kuleuven.be/staff/katrina/index_en.html">Katrina Exter</a> (<a href="http://ster.kuleuven.be/">Katholieke Universiteit Leuven</a>, Belgium). To access the wiki go to: <a href="http://ifs.wikidot.com">http://ifs.wikidot.com</a>.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;title=The%20Integral%20Field%20Spectroscopy%20Wiki&amp;bodytext=Here%27s%20a%20guest%20post%20from%20Mark%20Westmoquette%20at%20the%20University%20College%20London.%0D%0A%0D%0A%0D%0A%0D%0ADo%20you%20currently%20work%20with%2C%20or%20are%20you%20thinking%20about%20applying%20for%20integral%20field%20unit%20%28IFU%29%20observations%3F%20If%20so%2C%20then%20the%20Integral%20Field%20Spectroscopy%20wiki%20is%20for%20you" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;title=The%20Integral%20Field%20Spectroscopy%20Wiki&amp;notes=Here%27s%20a%20guest%20post%20from%20Mark%20Westmoquette%20at%20the%20University%20College%20London.%0D%0A%0D%0A%0D%0A%0D%0ADo%20you%20currently%20work%20with%2C%20or%20are%20you%20thinking%20about%20applying%20for%20integral%20field%20unit%20%28IFU%29%20observations%3F%20If%20so%2C%20then%20the%20Integral%20Field%20Spectroscopy%20wiki%20is%20for%20you" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;t=The%20Integral%20Field%20Spectroscopy%20Wiki" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;title=The%20Integral%20Field%20Spectroscopy%20Wiki&amp;annotation=Here%27s%20a%20guest%20post%20from%20Mark%20Westmoquette%20at%20the%20University%20College%20London.%0D%0A%0D%0A%0D%0A%0D%0ADo%20you%20currently%20work%20with%2C%20or%20are%20you%20thinking%20about%20applying%20for%20integral%20field%20unit%20%28IFU%29%20observations%3F%20If%20so%2C%20then%20the%20Integral%20Field%20Spectroscopy%20wiki%20is%20for%20you" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=The%20Integral%20Field%20Spectroscopy%20Wiki&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=The%20Integral%20Field%20Spectroscopy%20Wiki%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fthe-integral-field-spectroscopy-wiki%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=946&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/the-integral-field-spectroscopy-wiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spectral line analysis tools</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/</link>
		<comments>http://www.astrobetter.com/spectral-line-analysis-tools/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 18:11:24 +0000</pubDate>
		<dc:creator>Jane Rigby</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[spectroscopy]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=933</guid>
		<description><![CDATA[This is an embarrassing post, but I&#8217;m going to forge ahead.  Time was, we used IRAF and we hated it, but what else was there?  Now, there are many choices, lots of them buggy and badly documented, some of them superb.
Say I have a one-dimensional, flux-calibrated, wavelength-calibrated spectrum.  (So, all the hard work of calibration [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is an embarrassing post, but I&#8217;m going to forge ahead.  Time was, we used IRAF and we hated it, but what else was there?  Now, there are many choices, lots of them buggy and badly documented, some of them superb.</p>
<p>Say I have a one-dimensional, flux-calibrated, wavelength-calibrated spectrum.  (So, all the hard work of calibration is already done.) I want to measure equivalent widths, fluxes, and wavelengths of lines, interactively and then non-interactively.  What software packages can people can recommend?</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;title=Spectral%20line%20analysis%20tools&amp;bodytext=This%20is%20an%20embarrassing%20post%2C%20but%20I%27m%20going%20to%20forge%20ahead.%C2%A0%20Time%20was%2C%20we%20used%20IRAF%20and%20we%20hated%20it%2C%20but%20what%20else%20was%20there%3F%C2%A0%20Now%2C%20there%20are%20many%20choices%2C%20lots%20of%20them%20buggy%20and%20badly%20documented%2C%20some%20of%20them%20superb.%0D%0A%0D%0ASay%20I%20have%20a%20one-dimensiona" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;title=Spectral%20line%20analysis%20tools&amp;notes=This%20is%20an%20embarrassing%20post%2C%20but%20I%27m%20going%20to%20forge%20ahead.%C2%A0%20Time%20was%2C%20we%20used%20IRAF%20and%20we%20hated%20it%2C%20but%20what%20else%20was%20there%3F%C2%A0%20Now%2C%20there%20are%20many%20choices%2C%20lots%20of%20them%20buggy%20and%20badly%20documented%2C%20some%20of%20them%20superb.%0D%0A%0D%0ASay%20I%20have%20a%20one-dimensiona" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;t=Spectral%20line%20analysis%20tools" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;title=Spectral%20line%20analysis%20tools&amp;annotation=This%20is%20an%20embarrassing%20post%2C%20but%20I%27m%20going%20to%20forge%20ahead.%C2%A0%20Time%20was%2C%20we%20used%20IRAF%20and%20we%20hated%20it%2C%20but%20what%20else%20was%20there%3F%C2%A0%20Now%2C%20there%20are%20many%20choices%2C%20lots%20of%20them%20buggy%20and%20badly%20documented%2C%20some%20of%20them%20superb.%0D%0A%0D%0ASay%20I%20have%20a%20one-dimensiona" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Spectral%20line%20analysis%20tools&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Spectral%20line%20analysis%20tools%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fspectral-line-analysis-tools%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=933&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/spectral-line-analysis-tools/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Hungry for Plots? Get some APLpy!</title>
		<link>http://www.astrobetter.com/hungry-for-plots-get-some-aplpy/</link>
		<comments>http://www.astrobetter.com/hungry-for-plots-get-some-aplpy/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 11:00:06 +0000</pubDate>
		<dc:creator>Eli</dc:creator>
				<category><![CDATA[analysis]]></category>
		<category><![CDATA[figures]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=637</guid>
		<description><![CDATA[Today APLpy 0.9.3 is out! It is a Python plotting package made to generate publication-quality plots in multiple formats such as EPS, PDF, PS, PNG, and SVG.
APLpy was created by Thomas Robitaille and Eli Bressert, who come from a Fortran and IDL background. With Python&#8217;s ease of use, portability, and programming they decided to make [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Today <a href="http://aplpy.sourceforge.net/" target="_blank">APLpy</a> 0.9.3 is out! It is a Python plotting package made to generate publication-quality plots in multiple formats such as EPS, PDF, PS, PNG, and SVG.</p>
<p><a href="http://aplpy.sourceforge.net/" target="_blank">APLpy</a> was created by Thomas Robitaille and Eli Bressert, who come from a Fortran and IDL background. With Python&#8217;s ease of use, portability, and programming they decided to make a plotting package for astronomers. APLpy&#8217;s objective is easy usage with great looking publication plots. In other words, more bang for the buck. Here&#8217;s an example of what an <a href="http://aplpy.sourceforge.net/" target="_blank">APLpy</a> plot looks like:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 384px">
	<a href="http://sourceforge.net/apps/gallery/aplpy/index.php?g2_itemId=37"><img title="GLIMPSE / M16" src="http://sourceforge.net/apps/gallery/aplpy/main.php?g2_view=core.DownloadItem&amp;g2_itemId=39&amp;g2_serialNumber=2" alt="" width="384" height="346" /></a>
	<p class="wp-caption-text">A color generated APLpy plot from FITS files with grid lines. </p>
</div>
<p style="text-align: center;">
<p>To see more examples and how to make the plots in Python check out this <a href="http://sourceforge.net/apps/gallery/aplpy/index.php" target="_blank">link</a>.</p>
<p><a href="http://aplpy.sourceforge.net/" target="_blank">APLpy</a> has quite a few features (some listed below &#8211; from the APLpy site) and is continuing to expand. Fortunately, there&#8217;s good <a href="http://aplpy.sourceforge.net/documentation/index.html" target="_blank">documentation</a> to accompany the features.</p>
<ul>
<li>Make plots interactively or using scripts</li>
<li>Show grayscale, colorscale, and 3-color RGB images of FITS files</li>
<li>Generate co-aligned FITS cubes to make 3-color RGB images</li>
<li>Overlay any number of contour sets</li>
<li>Overlay markers with fully customizable symbol</li>
<li>Plot customizable shapes like circles, ellipses, and rectangles</li>
<li>Overlay coordinate grids</li>
<li>Customize the appearance of labels and ticks</li>
<li>Hide, show, and remove different contour and marker layers</li>
<li>Pan, zoom, and save any view as a full publication-quality plot</li>
<li>Save plots as EPS, PDF, PS, PNG, and SVG</li>
</ul>
<p style="text-align: left;">The plotting package is under active development and there has been extensive interaction between the users and developers. We should be seeing some exciting features added to <a href="http://aplpy.sourceforge.net/" target="_blank">APLpy</a> in the next few releases.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;title=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21&amp;bodytext=Today%20APLpy%200.9.3%20is%20out%21%20It%20is%20a%20Python%20plotting%20package%20made%20to%20generate%20publication-quality%20plots%20in%20multiple%20formats%20such%20as%20EPS%2C%20PDF%2C%20PS%2C%20PNG%2C%20and%20SVG.%0D%0A%0D%0AAPLpy%20was%20created%20by%20Thomas%20Robitaille%20and%20Eli%20Bressert%2C%20who%20come%20from%20a%20Fortran%20and%20IDL%20b" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;title=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21&amp;notes=Today%20APLpy%200.9.3%20is%20out%21%20It%20is%20a%20Python%20plotting%20package%20made%20to%20generate%20publication-quality%20plots%20in%20multiple%20formats%20such%20as%20EPS%2C%20PDF%2C%20PS%2C%20PNG%2C%20and%20SVG.%0D%0A%0D%0AAPLpy%20was%20created%20by%20Thomas%20Robitaille%20and%20Eli%20Bressert%2C%20who%20come%20from%20a%20Fortran%20and%20IDL%20b" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;t=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;title=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21&amp;annotation=Today%20APLpy%200.9.3%20is%20out%21%20It%20is%20a%20Python%20plotting%20package%20made%20to%20generate%20publication-quality%20plots%20in%20multiple%20formats%20such%20as%20EPS%2C%20PDF%2C%20PS%2C%20PNG%2C%20and%20SVG.%0D%0A%0D%0AAPLpy%20was%20created%20by%20Thomas%20Robitaille%20and%20Eli%20Bressert%2C%20who%20come%20from%20a%20Fortran%20and%20IDL%20b" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Hungry%20for%20Plots%3F%20Get%20some%20APLpy%21%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fhungry-for-plots-get-some-aplpy%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=637&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/hungry-for-plots-get-some-aplpy/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Deal with upper limits</title>
		<link>http://www.astrobetter.com/deal-with-upper-limits/</link>
		<comments>http://www.astrobetter.com/deal-with-upper-limits/#comments</comments>
		<pubDate>Fri, 29 May 2009 23:46:06 +0000</pubDate>
		<dc:creator>Jane Rigby</dc:creator>
				<category><![CDATA[analysis]]></category>

		<guid isPermaLink="false">http://www.astrobetter.com/?p=481</guid>
		<description><![CDATA[Often we have datasets in which quantities are not detected.  Those upper limits contain information &#8212; the flux was definitely below X.  It turns out, there&#8217;s a rich statistical literature on how to consider both detections and upper limits.   Yet often astronomers don&#8217;t properly incorporate those upper limits in their analysis.
Fortunately, several authors have explained [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Often we have datasets in which quantities are not detected.  Those upper limits contain information &#8212; the flux was definitely below X.  It turns out, there&#8217;s a rich statistical literature on how to consider both detections and upper limits.   Yet often astronomers don&#8217;t properly incorporate those upper limits in their analysis.</p>
<p>Fortunately, several authors have explained those techniques for astronomers, shown examples using astrophysical datasets, and written a package that does the analysis for you.  Interested?</p>
<p>The first paper is <a href="http://adsabs.harvard.edu/abs/1985ApJ...293..192F">Feigelson &amp; Nelson 1985</a>, which deals with univariate distributions (luminosity functions, line ratios, mean values, etc.)</p>
<p>The second paper is <a href="http://adsabs.harvard.edu/abs/1986ApJ...306..490I">Isobe, Feigelson, and Nelson 1986</a>, which deals with correlation and regression.</p>
<p>The <a href="http://astrostatistics.psu.edu/statcodes/sc_censor.html">package ASURV</a> implements these techniques.   The included manual is very helpful.</p>
<p>It took me 2 hrs to figure out the funky syntax required for the data files (stupid fortran),  and after that, bingo, I generated reconstructed distribution functions and the probability that my samples were drawn from the same parent.  Exactly what I needed to solve my, &#8220;So, is this result significant, or what?&#8221; problem.</p>



Share This:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;partner=sociable" title="Print"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;title=Deal%20with%20upper%20limits&amp;bodytext=Often%20we%20have%20datasets%20in%20which%20quantities%20are%20not%20detected.%C2%A0%20Those%20upper%20limits%20contain%20information%20--%20the%20flux%20was%20definitely%20below%20X.%C2%A0%20It%20turns%20out%2C%20there%27s%20a%20rich%20statistical%20literature%20on%20how%20to%20consider%20both%20detections%20and%20upper%20limits.%C2%A0%C2%A0%20Y" title="Digg"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;title=Deal%20with%20upper%20limits&amp;notes=Often%20we%20have%20datasets%20in%20which%20quantities%20are%20not%20detected.%C2%A0%20Those%20upper%20limits%20contain%20information%20--%20the%20flux%20was%20definitely%20below%20X.%C2%A0%20It%20turns%20out%2C%20there%27s%20a%20rich%20statistical%20literature%20on%20how%20to%20consider%20both%20detections%20and%20upper%20limits.%C2%A0%C2%A0%20Y" title="del.icio.us"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;t=Deal%20with%20upper%20limits" title="Facebook"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;title=Deal%20with%20upper%20limits&amp;annotation=Often%20we%20have%20datasets%20in%20which%20quantities%20are%20not%20detected.%C2%A0%20Those%20upper%20limits%20contain%20information%20--%20the%20flux%20was%20definitely%20below%20X.%C2%A0%20It%20turns%20out%2C%20there%27s%20a%20rich%20statistical%20literature%20on%20how%20to%20consider%20both%20detections%20and%20upper%20limits.%C2%A0%C2%A0%20Y" title="Google Bookmarks"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Deal%20with%20upper%20limits&amp;body=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F" title="email"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Deal%20with%20upper%20limits%20-%20http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F" title="Twitter"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.astrobetter.com%2Fdeal-with-upper-limits%2F&amp;partner=sociable" title="PDF"><img src="http://www.astrobetter.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/><img src="http://www.astrobetter.com/?ak_action=api_record_view&id=481&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.astrobetter.com/deal-with-upper-limits/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
