<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alexandre Beelen @ IAS - Tools</title><link href="http://www.ias.u-psud.fr/pperso/abeelen/" rel="alternate"></link><link href="http://www.ias.u-psud.fr/pperso/abeelen/feeds/tools.atom.xml" rel="self"></link><id>http://www.ias.u-psud.fr/pperso/abeelen/</id><updated>2016-06-08T00:00:00+02:00</updated><entry><title>IDL Scripts</title><link href="http://www.ias.u-psud.fr/pperso/abeelen/articles/idl-scripts.html" rel="alternate"></link><published>2006-06-08T00:00:00+02:00</published><updated>2016-06-08T00:00:00+02:00</updated><author><name>Alexandre Beelen</name></author><id>tag:www.ias.u-psud.fr,2006-06-08:/pperso/abeelen/articles/idl-scripts.html</id><summary type="html">&lt;p&gt;Several, mostly discarded, &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; scripts that I wrote for my own use but that may be usefull to other. Dealing with line fitting, wrapping the ASURV software, general statistics and much more. They are all under the &lt;a href="http://www.gnu.org/licenses/gpl-3.0.txt" title="The GPL v3 License"&gt;GPL&lt;/a&gt;, so everyone is permitted to redistribute and/or modify them under the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Several, mostly discarded, &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; scripts that I wrote for my own use but that may be usefull to other. Dealing with line fitting, wrapping the ASURV software, general statistics and much more. They are all under the &lt;a href="http://www.gnu.org/licenses/gpl-3.0.txt" title="The GPL v3 License"&gt;GPL&lt;/a&gt;, so everyone is permitted to redistribute and/or modify them under the terms of the &lt;a href="http://www.gnu.org/licenses/gpl-3.0.txt" title="The GPL v3 License"&gt;GPL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can find them on &lt;a href="https://git.ias.u-psud.fr/abeelen/IDL"&gt;gitlab&lt;/a&gt; or as a &lt;a href="https://git.ias.u-psud.fr/abeelen/IDL/repository/archive.tar.gz?ref=master"&gt;tar&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;a href="https://www.iram.fr/IRAMFR/GILDAS/https://www.iram.fr/IRAMFR/GILDAS/" title="The IRAM GILDAS Software"&gt;GILDAS&lt;/a&gt; Line fitting (gildas)&lt;/h2&gt;
&lt;p&gt;Deriving line parameter from a UVFIT in the &lt;a href="https://www.iram.fr/IRAMFR/GILDAS/https://www.iram.fr/IRAMFR/GILDAS/" title="The IRAM GILDAS Software"&gt;Grenoble Image and Line Data Analysis System&lt;/a&gt; is not an easy task. I developped a few program to be able to do it easily. First you should patch the gio library of &lt;a href="https://www.iram.fr/IRAMFR/GILDAS/https://www.iram.fr/IRAMFR/GILDAS/" title="The IRAM GILDAS Software"&gt;GILDAS&lt;/a&gt; in order to be able to save uvfit result in fits format. The task gildas_fits or fits will then be able to save UVFITS result table in fits format (use standard fits format and number of bits=-32). The resulting fits file can then be used to derive line parameters, for example with the IDL script included, using the Markwardt IDL Library to make the fit. The very usefull TexToIDL library is also used to legend the plot. Uncertainties on the fitted line parameters are derived from spectra uncertainties, computed from the visibilities and thus does not required the complex process of deconvolution/reconvolution involved in the mapping of interferometric data.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;tofits.diff&lt;/code&gt; : small patch for the tofits.f file of the gio library of GILDAS&lt;/li&gt;
&lt;li&gt;&lt;code&gt;fit_line.pro&lt;/code&gt; : fit a gaussian line to the spectrum&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mp_gauss.pro&lt;/code&gt; : define the fitted function, a gaussian with a continnum&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt;-&lt;a href="http://astrostatistics.psu.edu/statcodes/sc_censor.html" title="The ASURV software"&gt;ASURV&lt;/a&gt; (asurv)&lt;/h2&gt;
&lt;p&gt;To easily use and test the &lt;a href="http://astrostatistics.psu.edu/statcodes/sc_censor.html" title="The ASURV software"&gt;Astronomical SURVival Analysis package&lt;/a&gt;, I wrote a simple C wrapper which can be directly be called, as a library, from &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt;or other language/program. This work has been highly simplified by the splitting of the original monolitical code of &lt;a href="http://astrostatistics.psu.edu/statcodes/sc_censor.html" title="The ASURV software"&gt;ASURV&lt;/a&gt; by the Starlink project. The univariate two sample tests, bivariate correlation tests and linear regression have been wrapped.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;asurv.tar.gz&lt;/code&gt; : The, now gone, starlink version of &lt;a href="http://astrostatistics.psu.edu/statcodes/sc_censor.html" title="The ASURV software"&gt;ASURV&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;lib_bivar.f  lib_univar.f  lunivar.c&lt;/code&gt; : actual wrapper&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Makefile&lt;/code&gt; : makefile to build the wrapper&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; - Statistics (stats)&lt;/h2&gt;
&lt;p&gt;Two very usefull routines to plot the histogram and the partition function of a dataset. The first use the IDL  histogram function but also compute the proper abscissa.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;plot_repart.pro&lt;/code&gt; : draw an histogram of a variable&lt;/li&gt;
&lt;li&gt;&lt;code&gt;plot_histo.pro&lt;/code&gt; : plot the repartition function of a variable&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt;-&lt;a href="http://www.sdss.org/" title="The Sloan Digital Sky Survey"&gt;SDSS&lt;/a&gt; (sdss)&lt;/h2&gt;
&lt;p&gt;I wrote some &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; routine to easily manipulate &lt;a href="http://www.sdss.org/" title="The Sloan Digital Sky Survey"&gt;SDSS&lt;/a&gt; spectra. It has been tested on the &lt;a href="http://www.sdss.org/dr4/products/value_added/qsocat_dr3.html" title="The SDSS QSO Data Release 3"&gt;DR3QSO&lt;/a&gt; catalog and spectra.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;filename_sdss.pro&lt;/code&gt; : construct the filename of a spectra from information in the &lt;a href="http://www.sdss.org/dr4/products/value_added/qsocat_dr3.html" title="The SDSS QSO Data Release 3"&gt;DR3QSO&lt;/a&gt; catalog&lt;/li&gt;
&lt;li&gt;&lt;code&gt;read_sdss_spectrum.pro&lt;/code&gt; : read an &lt;a href="http://www.sdss.org/" title="The Sloan Digital Sky Survey"&gt;SDSS&lt;/a&gt; spectrum into a &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; structure&lt;/li&gt;
&lt;li&gt;&lt;code&gt;plot_sdss_spectrum.pro&lt;/code&gt; : plot an &lt;a href="http://www.sdss.org/" title="The Sloan Digital Sky Survey"&gt;SDSS&lt;/a&gt; spectrum the &lt;a href="http://www.sdss.org/" title="The Sloan Digital Sky Survey"&gt;SDSS&lt;/a&gt; way&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; Misc. (misc)&lt;/h2&gt;
&lt;p&gt;Here are a few &lt;a href="http://www.exelisvis.com/docs/using_idl_home.htmlscripts" title="The Interactive Data Language"&gt;IDL&lt;/a&gt; scripts that I wrote for every day use.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;zeta.pro&lt;/code&gt; compute the zeta function&lt;/li&gt;
&lt;li&gt;&lt;code&gt;barre.pro&lt;/code&gt; draw an horizontal bar&lt;/li&gt;
&lt;li&gt;&lt;code&gt;const.pro&lt;/code&gt; define some physical constant (SI)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;copyright.pro&lt;/code&gt; add copyright to your plot&lt;/li&gt;
&lt;li&gt;&lt;code&gt;draft.pro&lt;/code&gt; add a draft comment to your plot&lt;/li&gt;
&lt;/ul&gt;</content><category term="IDL"></category><category term="GILDAS"></category><category term="SDSS"></category><category term="ASURV"></category><category term="Statistics"></category></entry><entry><title>SHARC II / CRUSH</title><link href="http://www.ias.u-psud.fr/pperso/abeelen/articles/sharc-ii-crush.html" rel="alternate"></link><published>2006-06-08T00:00:00+02:00</published><updated>2006-06-08T00:00:00+02:00</updated><author><name>Alexandre Beelen</name></author><id>tag:www.ias.u-psud.fr,2006-06-08:/pperso/abeelen/articles/sharc-ii-crush.html</id><summary type="html">&lt;p class="first last"&gt;A few tools to help with SHARC II / CRUSH reduction&lt;/p&gt;
</summary><content type="html">&lt;div class="panel panel-warning"&gt;
&lt;div class="panel-heading"&gt;
Warning&lt;/div&gt;
&lt;div class="panel-body"&gt;
Note that those scripts where made for use with CRUSH I. Although
they could still apply with the newest CRUSH II software, they have
not been tested.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In order to make batch reduction with &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/crush/index.htm"&gt;CRUSH&lt;/a&gt;, I also
wrote some shell scripts to simplify this process.&lt;/p&gt;
&lt;p&gt;You can find they on
&lt;a class="reference external" href="https://git.ias.u-psud.fr/abeelen/CRUSH"&gt;gitlab&lt;/a&gt; or as a
&lt;a class="reference external" href="https://git.ias.u-psud.fr/abeelen/CRUSH/repository/archive.tar.gz?ref=master"&gt;tar&lt;/a&gt;.&lt;/p&gt;
&lt;div class="section" id="shell-scripts-to-process-batch-of-sharc-ii-data-using-crush"&gt;
&lt;h2&gt;Shell scripts to process batch of &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/http://www.submm.caltech.edu/~sharc/"&gt;SHARC II&lt;/a&gt; data using &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/crush/index.htm"&gt;CRUSH&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You have to change the &lt;cite&gt;config.sh&lt;/cite&gt; to set the correct path for your
configuration. You also need to create a target_sources file in the
&lt;cite&gt;$LIST_DIR&lt;/cite&gt; directory which list all your target sources name as
reported in the fits files. Run the &lt;cite&gt;make_list.sh&lt;/cite&gt; script to produce
scan list for each target source. You can now reduce the complete
project by running &lt;cite&gt;reduce_target.sh&lt;/cite&gt; or individual sources with
&lt;cite&gt;reduce_source.sh source_name&lt;/cite&gt; ￼ Shell scripts to reduce  &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/http://www.submm.caltech.edu/~sharc/"&gt;SHARC II&lt;/a&gt;
project in batch with &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/crush/index.htm"&gt;CRUSH&lt;/a&gt;&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;config.sh&lt;/cite&gt; : define all the variable parameters/path&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;make_list.sh&lt;/cite&gt; : make the scan lists for target sources&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;reduce_source.sh&lt;/cite&gt; : reduce one source&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;reduce_target.sh&lt;/cite&gt; : reduce all the target sources&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="idl-scripts-to-display-crush-reduced-sharc-ii-data"&gt;
&lt;h2&gt;&lt;a class="reference external" href="http://www.exelisvis.com/docs/using_idl_home.html"&gt;IDL&lt;/a&gt; scripts to display &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/crush/index.htm"&gt;CRUSH&lt;/a&gt; reduced &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/http://www.submm.caltech.edu/~sharc/"&gt;SHARC II&lt;/a&gt; data&lt;/h2&gt;
&lt;p&gt;I also wrote a few &lt;a class="reference external" href="http://www.exelisvis.com/docs/using_idl_home.html"&gt;IDL&lt;/a&gt; scripts I use to display astronomical maps taken with &lt;a class="reference external" href="http://www.submm.caltech.edu/~sharc/http://www.submm.caltech.edu/~sharc/"&gt;SHARC II&lt;/a&gt;
and reduced with CRUSH. They made intensive use of the &lt;a class="reference external" href="http://idlastro.gsfc.nasa.gov/"&gt;IDL Astronomy
User's Library&lt;/a&gt; and &lt;a class="reference external" href="http://www.exelisvis.com/docs/imdisp.html"&gt;IMDISP&lt;/a&gt; library.&lt;/p&gt;
&lt;p&gt;You have to change the default path in &lt;cite&gt;read_scan.pro&lt;/cite&gt;, and then you case
use the &lt;cite&gt;plot_scan&lt;/cite&gt; routine with a least one argument, the fits file
name, to display the signal (default), the noise (&lt;cite&gt;/noise&lt;/cite&gt;), the
signal-to-noise ratio (&lt;cite&gt;/s2n&lt;/cite&gt;), or the integrated time (&lt;cite&gt;/time&lt;/cite&gt;). You can
also smooth the map to the FWHM of the CSO (&lt;cite&gt;/smooth&lt;/cite&gt;), force the correct
aspect ratio of the image (&lt;cite&gt;/aspect&lt;/cite&gt;), crop the pixel with integrated time
less than a value (&lt;cite&gt;crop=value&lt;/cite&gt;), put a cross on the pointed position
(&lt;cite&gt;/cross&lt;/cite&gt;), change the display of the axis - offset (&lt;cite&gt;default&lt;/cite&gt;) or absolute
(&lt;cite&gt;/type&lt;/cite&gt;), change the contours wrt to time (&lt;cite&gt;contours_time=[0,5]&lt;/cite&gt;), and
suppress the wedge (/nowedge)&lt;/p&gt;
&lt;p&gt;The plot_scan routine is in fact more general and could be use with
any kind of astronomical image, as long as the structure returned by the
read_scan routine is filled with the right values.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;read_scan.pro&lt;/cite&gt; : read the fits file; unit conversions; return a
structure containing the data&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;plot_scan.pro&lt;/cite&gt; : display the scan with various options&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><category term="IDL"></category><category term="CRUSH"></category></entry><entry><title>Perl ADS</title><link href="http://www.ias.u-psud.fr/pperso/abeelen/articles/perl-ads.html" rel="alternate"></link><published>2006-06-07T00:00:00+02:00</published><updated>2006-06-07T00:00:00+02:00</updated><author><name>Alexandre Beelen</name></author><id>tag:www.ias.u-psud.fr,2006-06-07:/pperso/abeelen/articles/perl-ads.html</id><summary type="html">&lt;p&gt;These &lt;a href="https://www.perl.org/" title="The Perl Programming Language"&gt;perl&lt;/a&gt; scripts are used to access the &lt;a href="http://adsabs.harvard.edu/" title="The SAO/NASA Astrophysics Data System"&gt;ADS&lt;/a&gt; database in an easy way, directly from the shell prompt. They are useful to build a bibtex database, retrieve pdf files of a list of paper, or to make simple statistics. There is two sets of scripts : the first one, somehow …&lt;/p&gt;</summary><content type="html">&lt;p&gt;These &lt;a href="https://www.perl.org/" title="The Perl Programming Language"&gt;perl&lt;/a&gt; scripts are used to access the &lt;a href="http://adsabs.harvard.edu/" title="The SAO/NASA Astrophysics Data System"&gt;ADS&lt;/a&gt; database in an easy way, directly from the shell prompt. They are useful to build a bibtex database, retrieve pdf files of a list of paper, or to make simple statistics. There is two sets of scripts : the first one, somehow older, is based on &lt;a href="http://search.cpan.org/~ether/libwww-perl-6.13/lib/LWP/UserAgent.pm" title="LWP::UserAgent - Web user agent class"&gt;LWP::UserAgent&lt;/a&gt; to access directly &lt;a href="http://adsabs.harvard.edu/" title="The SAO/NASA Astrophysics Data System"&gt;ADS&lt;/a&gt; web pages. The second is a rewrite of the latter using the &lt;a href="http://search.cpan.org/~duffee/Astro-ADS-1.26/ADS.pm" title="Astro::ADS - An object orientated interface to NASAs ADS database"&gt;Astro::ADS&lt;/a&gt; library.&lt;/p&gt;
&lt;p&gt;You can find they on &lt;a href="https://git.ias.u-psud.fr/abeelen/Perl_ADS"&gt;gitlab&lt;/a&gt; or as a &lt;a href="https://git.ias.u-psud.fr/abeelen/Perl_ADS/repository/archive.tar.gz?ref=master"&gt;tar&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;￼
Scripts using the &lt;a href="http://search.cpan.org/~ether/libwww-perl-6.13/lib/LWP/UserAgent.pm" title="LWP::UserAgent - Web user agent class"&gt;LWP::UserAgent&lt;/a&gt; library&lt;/p&gt;
&lt;hr&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;get_author.pl&lt;/code&gt; : produce bibliography in the bibtex format from ADS, given an author name and start/stop year&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_bib.pl&lt;/code&gt; : retrieve the bibtex entry of an article in ADS given its journal, volume and page.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_bibtex.pl&lt;/code&gt; : retrieve the bibtex entry of an article in ADS given its bibcode
￼&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Scripts using the &lt;a href="http://search.cpan.org/~duffee/Astro-ADS-1.26/ADS.pm" title="Astro::ADS - An object orientated interface to NASAs ADS database"&gt;Astro::ADS&lt;/a&gt; library&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;adsastro.patch&lt;/code&gt; : patch for the Astro::ADS library to take the Journal/Volume/Page information as an entry&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_biblio.pl&lt;/code&gt; : retrieve a specific bibtex entry and the pdf of a given astro-ph or ADS article&lt;/li&gt;
&lt;li&gt;&lt;code&gt;process_list.pl&lt;/code&gt; : retrieve the pdf and bibtex entry of a list of mixed astro-ph and ADS (J/V/P) entries&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_astroph.pl&lt;/code&gt; : get the bibcode of an article published in astro-ph, given its id number&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_bibcode.pl&lt;/code&gt; : get the bibcode of an article published in ADS given its journal, volume and page&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_bibpdf.pl&lt;/code&gt;  : retrieve the pdf of a given bibcode&lt;/li&gt;
&lt;/ul&gt;&lt;/hr&gt;</content><category term="ADS"></category><category term="Perl"></category></entry><entry><title>Thesis IAS</title><link href="http://www.ias.u-psud.fr/pperso/abeelen/articles/thesis-ias.html" rel="alternate"></link><published>2004-04-16T00:00:00+02:00</published><updated>2008-04-16T00:00:00+02:00</updated><author><name>Alexandre Beelen</name></author><id>tag:www.ias.u-psud.fr,2004-04-16:/pperso/abeelen/articles/thesis-ias.html</id><summary type="html">&lt;p&gt;I adapted the [thloria][thloria] LaTex class for thesis wrote at  &lt;a href="http://www.ias.u-psud.fr"&gt;IAS&lt;/a&gt;. You need to install the [thloria][thloria] class in order to use this one.&lt;/p&gt;</summary><content type="html">&lt;p&gt;I adapted the &lt;a href="http://www.loria.fr/~roegel/TeX/TL.html" title="Th Loria latex class"&gt;thloria&lt;/a&gt; LaTex class for thesis wrote at  &lt;a href="http://www.ias.u-psud.fr"&gt;IAS&lt;/a&gt;. You need to install the &lt;a href="http://www.loria.fr/~roegel/TeX/TL.html" title="Th Loria latex class"&gt;thloria&lt;/a&gt; class in order to use this one.&lt;/p&gt;
&lt;p&gt;You can find the files on &lt;a href="https://git.ias.u-psud.fr/abeelen/Thesis_IAS"&gt;gitlab&lt;/a&gt; or as a &lt;a href="https://git.ias.u-psud.fr/abeelen/Thesis_IAS/repository/archive.tar.gz?ref=master"&gt;tar&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;ias.eps&lt;/code&gt; : vectorized IAS logo&lt;/li&gt;
&lt;li&gt;&lt;code&gt;main.tex&lt;/code&gt; : example file&lt;/li&gt;
&lt;li&gt;&lt;code&gt;thesis_IAS.cls&lt;/code&gt; : the actual LaTex Class&lt;/li&gt;
&lt;/ul&gt;</content><category term="IAS"></category><category term="thesis"></category><category term="LaTex"></category></entry></feed>