tag:blogger.com,1999:blog-41892999709427116132024-02-20T12:54:23.009+00:00Scripts and Ideas of a x-ray astronomerMichele Costahttp://www.blogger.com/profile/07271507931930884301noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4189299970942711613.post-81347485355481152782014-12-02T19:47:00.003+00:002014-12-02T19:47:45.577+00:00agn_lookup.py<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
I wrote this little script to make querying heasarc a bit easier its very rough but it's been useful for me.<br />
<br />
It requires heasarc's batch command-line tool - as the does all the real work - (<a href="http://heasarc.gsfc.nasa.gov/xamin/distrib/users.jar">download</a>,<a href="http://heasarc.gsfc.nasa.gov/xamin/doc/CLIUsersGuide.html">help</a>), I called the alias xain (but it can easily be changed in the script)<br />
<br />
I also use Matt Davis's jdutil class (which can be found here <a href="https://gist.github.com/jiffyclub/1294443">here</a>).<br />
<br />
Sorting of outputs is not setup for table specific columns, as I didn't need it.<br />
<br />
If those things haven't put you off
<a href="https://github.com/nocturnalastro/xraycoder/blob/master/agn_lookup.py">here it is.</a><br />
<br />
<br />
</div>
Michele Costahttp://www.blogger.com/profile/07271507931930884301noreply@blogger.com