[AstroPy] astroquery.vizier.Vizier.get_catalogs doesn't fetch more than 50 rows

Samuel Harrold harrold at astro.as.utexas.edu
Mon Jan 27 15:51:07 EST 2014


Hello,

I'm having trouble downloading all rows from a VizieR table using
astroquery: I have a table with more than 50 rows with the "-out.max"
keyword set to greater than 50, but astroquery returns only 50 rows. I've
included terminal output below. (Also, astroquery warns that I'm using an
old version of astropy, but both are up-to-date.)

Am I using the function correctly? Is there a workaround?

Thanks for any help!
Sam
**********
Samuel Harrold
PhD student
Astronomy Department
University of Texas at Austin

Terminal Output
********************
$ pip install --upgrade astropy
Requirement already up-to-date: astropy in
/Users/harrold/anaconda/lib/python2.7/site-packages
Cleaning up...
$ pip install --upgrade astroquery
Requirement already up-to-date: astroquery in
/Users/harrold/anaconda/lib/python2.7/site-packages
Requirement already up-to-date: astropy in
/Users/harrold/anaconda/lib/python2.7/site-packages (from astroquery)
Cleaning up...
$ python
Python 2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Jan 10 2014, 11:23:15)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import astropy
>>> astropy.version.version
'0.3'
>>> import astroquery
/Users/harrold/anaconda/lib/python2.7/site-packages/astroquery/__init__.py:132:
UserWarning: You are using an 'old' version of astropy prior to the change
that made all units singular.  astropy is being monkeypatched such that
degrees and degree are both allow and hours and hour are both allowed.
 This is NOT normal astropy behavior.
  warn("You are using an 'old' version of astropy prior to the change "
>>> astroquery.version.version
'0.1'
>>> from astroquery.vizier import Vizier
>>> Vizier.get_catalogs('2013ApJS..204....5K', {"-out.max":1000000})
TableList with 1 tables:
'0:J/ApJS/204/5/table2' with 20 column(s) and 50 row(s)

# However, the table actually has ~20,000 rows:
#
http://vizier.u-strasbg.fr/viz-bin/asu-txt?-source=2013ApJS..204....5K&-out.max=1000000

********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140127/e9618e8e/attachment.html>


More information about the AstroPy mailing list