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

Adam Ginsburg adam.g.ginsburg at gmail.com
Mon Jan 27 17:06:40 EST 2014


Sam & I communicated off the mailing list; he determined that
Vizier.ROW_LIMIT supercedes the '-out.max' keyword.

The other issue is likely a problem with the pip version of
astroquery, which means we need to make a new release.

On Mon, Jan 27, 2014 at 4:51 PM, Samuel Harrold
<harrold at astro.as.utexas.edu> wrote:
> 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
>
> ********************
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>



-- 
Adam Ginsburg
Fellow, European Southern Observatory
http://www.adamgginsburg.com/



More information about the AstroPy mailing list