<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Spectral line analysis tools</title>
	<atom:link href="http://www.astrobetter.com/spectral-line-analysis-tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.astrobetter.com/spectral-line-analysis-tools/</link>
	<description>Tips and Tricks for Professional Astronomers</description>
	<lastBuildDate>Mon, 06 Feb 2012 12:32:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Adam Ginsburg</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-19043</link>
		<dc:creator>Adam Ginsburg</dc:creator>
		<pubDate>Tue, 13 Sep 2011 20:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-19043</guid>
		<description>More than a year later...

&lt;a href=&quot;http://casa.colorado.edu/~mirochaj/&quot; rel=&quot;nofollow&quot;&gt; Jordan Mirocha&lt;/a&gt; and I have been developing a python-based spectrosopic analysis toolkit.  It&#039;s available at &lt;a href=&quot;pyspeckit.bitbucket.org&quot; rel=&quot;nofollow&quot;&gt;pyspeckit.bitbucket.org&lt;/a&gt;.  It fits profiles interactively or via &quot;clever&quot; guessing.  It can fit gaussian, lorentzian, and voigt profiles (built in).  It can also do model-grid based fitting and has an NH3 inversion fitter written at the moment.  It deals well with unit conversions and can read and write a variety of different file types.  It has some interactive data cube capabilities, but those aren&#039;t particularly well refined at the moment.  It can link to the SPLATALOGUE radio line database to overplot line locations and has a small optical line database built in.

The big advantages are that it&#039;s designed to be extensible: i.e., you can write your own model function and plug it into the code without having to write any of the overhead stuff (e.g., x-axis units, residual calculations, annotations, etc.).  

As Ben pointed out, unhappy spectra can be unhappy in a lot of different ways.  PySpecKit is designed to deal with happy spectra, but can deal with flagged data and can be used to subtract baselines.

Finally, because it&#039;s pure python, it is slow for batch-processing large spectra.  I&#039;d like to incorporate a fortran implementation of MPFIT if possible, but that&#039;s low on the priority list for now.</description>
		<content:encoded><![CDATA[<p>More than a year later&#8230;</p>
<p><a href="http://casa.colorado.edu/~mirochaj/" rel="nofollow"> Jordan Mirocha</a> and I have been developing a python-based spectrosopic analysis toolkit.  It&#8217;s available at <a href="pyspeckit.bitbucket.org" rel="nofollow">pyspeckit.bitbucket.org</a>.  It fits profiles interactively or via &#8220;clever&#8221; guessing.  It can fit gaussian, lorentzian, and voigt profiles (built in).  It can also do model-grid based fitting and has an NH3 inversion fitter written at the moment.  It deals well with unit conversions and can read and write a variety of different file types.  It has some interactive data cube capabilities, but those aren&#8217;t particularly well refined at the moment.  It can link to the SPLATALOGUE radio line database to overplot line locations and has a small optical line database built in.</p>
<p>The big advantages are that it&#8217;s designed to be extensible: i.e., you can write your own model function and plug it into the code without having to write any of the overhead stuff (e.g., x-axis units, residual calculations, annotations, etc.).  </p>
<p>As Ben pointed out, unhappy spectra can be unhappy in a lot of different ways.  PySpecKit is designed to deal with happy spectra, but can deal with flagged data and can be used to subtract baselines.</p>
<p>Finally, because it&#8217;s pure python, it is slow for batch-processing large spectra.  I&#8217;d like to incorporate a fortran implementation of MPFIT if possible, but that&#8217;s low on the priority list for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert M. Elowitz</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-15949</link>
		<dc:creator>Robert M. Elowitz</dc:creator>
		<pubDate>Sun, 31 Jul 2011 21:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-15949</guid>
		<description>I use a program called SpecView from the Space Telescope Science Institute. It can fit basic models such as Gaussian, Lorentzian, and Voigt profiles to spectral lines. It also has other models such as blackbody, powerlaw fits, etc. You can overplot line ids on your spectrum. It runs under MS Windows and has a descent GUI interface. You can get SpecView at the following website. One nice feature with SpecView is that it can import spectra in the form of ascii files. There only has to be some very basic header lines in the ascii file, which is described in the SpecView documentation.

http://www.stsci.edu/resources/software_hardware/specview</description>
		<content:encoded><![CDATA[<p>I use a program called SpecView from the Space Telescope Science Institute. It can fit basic models such as Gaussian, Lorentzian, and Voigt profiles to spectral lines. It also has other models such as blackbody, powerlaw fits, etc. You can overplot line ids on your spectrum. It runs under MS Windows and has a descent GUI interface. You can get SpecView at the following website. One nice feature with SpecView is that it can import spectra in the form of ascii files. There only has to be some very basic header lines in the ascii file, which is described in the SpecView documentation.</p>
<p><a href="http://www.stsci.edu/resources/software_hardware/specview" rel="nofollow">http://www.stsci.edu/resources/software_hardware/specview</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelle</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-12336</link>
		<dc:creator>Kelle</dc:creator>
		<pubDate>Fri, 27 May 2011 12:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-12336</guid>
		<description>another one: SpecPro
&quot;an interactive IDL program for viewing and analyzing astronomical spectra...SpecPro&#039;s interactive design lets the user simultaneously view spectroscopic, photometric, and imaging data, allowing for rapid object classification and redshift determination.&quot;
http://adsabs.harvard.edu/abs/2011PASP..123..638M</description>
		<content:encoded><![CDATA[<p>another one: SpecPro<br />
&#8220;an interactive IDL program for viewing and analyzing astronomical spectra&#8230;SpecPro&#8217;s interactive design lets the user simultaneously view spectroscopic, photometric, and imaging data, allowing for rapid object classification and redshift determination.&#8221;<br />
<a href="http://adsabs.harvard.edu/abs/2011PASP..123..638M" rel="nofollow">http://adsabs.harvard.edu/abs/2011PASP..123..638M</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Weiner</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-3349</link>
		<dc:creator>Ben Weiner</dc:creator>
		<pubDate>Thu, 12 Aug 2010 17:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-3349</guid>
		<description>Happy spectra are all alike; every unhappy spectrum is unhappy in its own way.  Although 1-D spectra are the same basic data structure, different regimes have substantially different systematics - baseline stability, blendedness, whether you care about the damping wings, and so on.  Further, some people want to dink around with the initial guesses and use a GUI to adjust the fit, some people want to fit 100,000 lines and have it not take all day, and so on.

I fit lines in optical spectra with a Fortran program that uses Levenberg-Marquardt non-linear least squares to fit a Gaussian or Voigt (or multiple lines), with simple automated construction of the initial guesses (important for an iterative routine).  One should be able to do the same thing with MPFIT in IDL, less clunkily but slower.  I use a subroutine written long ago by my advisor that does a very accurate fast approximation of a Voigt function and its derivatives.  Email me if you want a copy of this subroutine.</description>
		<content:encoded><![CDATA[<p>Happy spectra are all alike; every unhappy spectrum is unhappy in its own way.  Although 1-D spectra are the same basic data structure, different regimes have substantially different systematics &#8211; baseline stability, blendedness, whether you care about the damping wings, and so on.  Further, some people want to dink around with the initial guesses and use a GUI to adjust the fit, some people want to fit 100,000 lines and have it not take all day, and so on.</p>
<p>I fit lines in optical spectra with a Fortran program that uses Levenberg-Marquardt non-linear least squares to fit a Gaussian or Voigt (or multiple lines), with simple automated construction of the initial guesses (important for an iterative routine).  One should be able to do the same thing with MPFIT in IDL, less clunkily but slower.  I use a subroutine written long ago by my advisor that does a very accurate fast approximation of a Voigt function and its derivatives.  Email me if you want a copy of this subroutine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Ginsburg</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-3347</link>
		<dc:creator>Adam Ginsburg</dc:creator>
		<pubDate>Thu, 12 Aug 2010 13:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-3347</guid>
		<description>Returning to this page 10 months after the fact.... it&#039;s still kind of surprising to me that every instrument and every group seems to use their own code.  As far as I can tell from discussions with locals, IRAF is the only program that&#039;s nice about fitting Voigt profiles, particularly blended ones.  Most of the codes listed above &quot;could be used&quot; to do any given task, provided a lot of additional work is put in at the front to incorporate the types of fitting you want to do.  Since spectra are essentially the same once reduced, it seems like there should be one major spectral line tool similar to DS9 for imaging.  I&#039;m not volunteering to do that... but at the very least, a list of spectral line tools should be maintained.  I&#039;ll start a wiki page for it.</description>
		<content:encoded><![CDATA[<p>Returning to this page 10 months after the fact&#8230;. it&#8217;s still kind of surprising to me that every instrument and every group seems to use their own code.  As far as I can tell from discussions with locals, IRAF is the only program that&#8217;s nice about fitting Voigt profiles, particularly blended ones.  Most of the codes listed above &#8220;could be used&#8221; to do any given task, provided a lot of additional work is put in at the front to incorporate the types of fitting you want to do.  Since spectra are essentially the same once reduced, it seems like there should be one major spectral line tool similar to DS9 for imaging.  I&#8217;m not volunteering to do that&#8230; but at the very least, a list of spectral line tools should be maintained.  I&#8217;ll start a wiki page for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Westmoquette</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-2389</link>
		<dc:creator>Mark Westmoquette</dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-2389</guid>
		<description>Just to add another alternative to the already fairly extensive list discussed above, I&#039;ve been using &lt;a href=&quot;http://ifs.wikidot.com/pan&quot; title=&quot;PAN&quot; rel=&quot;nofollow&quot;&gt;PAN&lt;/a&gt; (Peak ANalysis). This is an IDL-based general-purpose curve-fitting utility with a graphical user interface, based on Craig Markwardt’s MPFIT. PAN can be used to fit any of its in-built functions (straight line, Gaussian, Lorentzian, etc.) or you can create custom functions to fit your data (e.g. Ha+[NII]). There is no limit to the number of functions to which you can fit simultaneously but more functions result in more computation time.

PAN is particularly useful for IFU/MOS data since:
1. It has the ability to read in multiple spectra at once in an array format, and fit one initial guess to these spectra automatically. This is ideal for IFS data with potentially hundreds of spectra.
2. The spectrum+fit, the residuals and the numerical results are displayed on-screen for each spectrum, meaning you can view and review the fit for each spectrum in a very visual manner.
3. The initial parameter guesses (amplitude, position and width) can be specified visually with the mouse. PAN was written such that the amount of typing done by the user is minimized.</description>
		<content:encoded><![CDATA[<p>Just to add another alternative to the already fairly extensive list discussed above, I&#8217;ve been using <a href="http://ifs.wikidot.com/pan" title="PAN" rel="nofollow">PAN</a> (Peak ANalysis). This is an IDL-based general-purpose curve-fitting utility with a graphical user interface, based on Craig Markwardt’s MPFIT. PAN can be used to fit any of its in-built functions (straight line, Gaussian, Lorentzian, etc.) or you can create custom functions to fit your data (e.g. Ha+[NII]). There is no limit to the number of functions to which you can fit simultaneously but more functions result in more computation time.</p>
<p>PAN is particularly useful for IFU/MOS data since:<br />
1. It has the ability to read in multiple spectra at once in an array format, and fit one initial guess to these spectra automatically. This is ideal for IFS data with potentially hundreds of spectra.<br />
2. The spectrum+fit, the residuals and the numerical results are displayed on-screen for each spectrum, meaning you can view and review the fit for each spectrum in a very visual manner.<br />
3. The initial parameter guesses (amplitude, position and width) can be specified visually with the mouse. PAN was written such that the amount of typing done by the user is minimized.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Jacoby</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-1598</link>
		<dc:creator>George Jacoby</dc:creator>
		<pubDate>Wed, 27 Jan 2010 13:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-1598</guid>
		<description>Okay, I&#039;ll admit to being the original author of SPLOT and most of the ONEDSPEC package in IRAF. I find it both thrilling and shocking that most people (including myself) use these tools &quot;as is&quot; 25 years after I wrote them. (Note that Frank Valdes has provided many improvements and additions over the years.) My intent here is to encourage users to send suggestions to IRAF support at NOAO. Many improvements can be made relatively quickly and easily (e.g., a true database output from SPLOT). Although the resources at NOAO for IRAF are currently very limited, once improvements are made, the entire community benefits.</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;ll admit to being the original author of SPLOT and most of the ONEDSPEC package in IRAF. I find it both thrilling and shocking that most people (including myself) use these tools &#8220;as is&#8221; 25 years after I wrote them. (Note that Frank Valdes has provided many improvements and additions over the years.) My intent here is to encourage users to send suggestions to IRAF support at NOAO. Many improvements can be made relatively quickly and easily (e.g., a true database output from SPLOT). Although the resources at NOAO for IRAF are currently very limited, once improvements are made, the entire community benefits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-997</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Mon, 21 Dec 2009 11:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-997</guid>
		<description>Hi all,
in the same line of work as Gandalf, there is STECKMAP, which I wrote during my PhD and I am still using and upgrading, along with a number of believers. You can check it out here:
http://astro.u-strasbg.fr/~ocvirk/
drop me a line if youre interested, Ill keep you up to date with the latest developments.</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
in the same line of work as Gandalf, there is STECKMAP, which I wrote during my PhD and I am still using and upgrading, along with a number of believers. You can check it out here:<br />
<a href="http://astro.u-strasbg.fr/~ocvirk/" rel="nofollow">http://astro.u-strasbg.fr/~ocvirk/</a><br />
drop me a line if youre interested, Ill keep you up to date with the latest developments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anca Constantin</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-945</link>
		<dc:creator>Anca Constantin</dc:creator>
		<pubDate>Thu, 17 Dec 2009 16:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-945</guid>
		<description>I didn&#039;t see here any mention of G. Kriss&#039; SPECFIT, IRAF again [included in the stsdas group, under contrib.spfitpkg package], but it&#039;s been pretty good to me.   And, definitely much more versatile than SPLOT.  The help file was sufficient for me when I first tried it, and a brief description can be found in the 1994,  PASP  Conf.  Series, Vol.  61,  p.  437.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t see here any mention of G. Kriss&#8217; SPECFIT, IRAF again [included in the stsdas group, under contrib.spfitpkg package], but it&#8217;s been pretty good to me.   And, definitely much more versatile than SPLOT.  The help file was sufficient for me when I first tried it, and a brief description can be found in the 1994,  PASP  Conf.  Series, Vol.  61,  p.  437.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim van K.</title>
		<link>http://www.astrobetter.com/spectral-line-analysis-tools/#comment-925</link>
		<dc:creator>Tim van K.</dc:creator>
		<pubDate>Wed, 16 Dec 2009 08:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.astrobetter.com/?p=933#comment-925</guid>
		<description>I would go for CLASS. It is a bit of a steeper learning curve, but Class 90 can do a lot of fitting and a lot of moments easily. I have been using it in the submm for years now, even converting starlink produced spectra to class. One big advantage of class that i found cumbersome in IDL routine is its ability to easily do spectral line maps with variable fits of different baseline orders.</description>
		<content:encoded><![CDATA[<p>I would go for CLASS. It is a bit of a steeper learning curve, but Class 90 can do a lot of fitting and a lot of moments easily. I have been using it in the submm for years now, even converting starlink produced spectra to class. One big advantage of class that i found cumbersome in IDL routine is its ability to easily do spectral line maps with variable fits of different baseline orders.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

