Are there any astronomers here who may be able to point me in the right direction of code to access on-line astronomical databases? I am aware of Astro::Catalog:Query, its children and its siblings but I am hitting issues there.

The specific requirement is to be able to download data from the Gaia-DR2 catalogue at gea.esac.esa.int which runs a TAP+ service. I have been unable to find anything in CPAN relating to TAP used in this sense (i.e. nothing to do with the Testing Anything Protocol).

A few workarounds have been identified, only one being Perl-based.

The first is to make Vizier queries, either through Astro::Catalog::Query:Vizier or by calling out to the vizquery program distributed as part of the cdstools package. The former modules are elderly and buggy. A couple bugs and their fixes were sent to the maintainers a couple of days ago. A more serious bug, for which a fix is not yet in sight, is that the Vizier query doesn't always return the complete set of records. One particular query which ought to return 315 only gives 55. Other queries are even parsimonious.

Second is to abandon ship and use astropy which has implemented queries to the Gaia database. I've glanced at the code. There is a lot of it and I really would prefer not to have to re-implement it all from scratch in Perl.

Supplementary question: if there really isn't anything implemented, would anyone like to join in to create a package?


In reply to Accessing astro TAP servers by Xilman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.