Questions tagged [astroquery]

Astroquery is a python package containing utilities to access online astronomical data. This tag should be used for questions and problems related to the queries included in astroquery. Consider using the more general python, numpy or astropy tag if your question is only tangential to the astroquery package.

Astroquery is an astropy-affiliated package that makes use of the request module to query online astronomical data such as web forms and databases.

The following list contains an (not-exhaustive) list of services that can be queried with astroquery (taken from the astroquery project documentation):

  • SIMBAD
  • VizieR
  • ESASky
  • IRSA Dust Extinction Service
  • NED
  • Splatalogue
  • Vamdc
  • IRSA Image Server program interface (IBE)
  • IRSA
  • UKIDSS
  • MAGPIS
  • NRAO
  • Besancon
  • NIST
  • NVAS
  • GAMA
  • ESO
  • xMatch
  • Atomic Line List
  • ALMA
  • Skyview
  • NASA ADS
  • HEASARC
30 questions
4
votes
2 answers

Astroquery SIMBAD : Obtaining coordinates for all frames

I'm trying to obtain coordinates for all frames using the Simbad class from astroquery, just like it is shown on the SIMBAD web page (Basic data section) I have the following code : from astroquery.simbad import Simbad def get(): …
civa
  • 459
  • 3
  • 12
3
votes
1 answer

How to use Astropy/Astroquery to get Sloan magnitudes

I would like to create a script to download the magnitudes from a set of objects. For example the ones which appear here: http://mirror.sdss3.org/spectrumDetail?plateid=556&mjd=51991&fiber=312 As an input I have the object coordinates (which I get…
Delosari
  • 677
  • 2
  • 17
  • 29
2
votes
2 answers

Astroquery VizieR UCAC4 full download

I would like to have a local (offline) ASCII version of UCAC4 star catalogue in order to have an isolated work environment. I am having issues trying to retrieve this specific full catalog. Downloading small parts is pretty straightforward using…
2
votes
1 answer

astroquery: vizier.query_region over a large area failing

I try to make relatively large queries on the 2MASS catalogue with astroquery.vizier.VizierClass.query_region(). While it works for small areas, it fails for large area. Here is the code I use: from astroquery.vizier import Vizier import…
HBouy
  • 245
  • 3
  • 14
2
votes
1 answer

Input FITS table to astroquery.xmatch

I need to use xmatch from the astroquery package to cross match a large local catalogue with 2MASS. I load my local FITS table with astropy as usual: from astropy.io import fits hdu = fits.open(root+'mycat.fits') Then try to use xmatch with that…
HBouy
  • 245
  • 3
  • 14
2
votes
0 answers

Astroquery python: querying NED with list of objects

I have extracted a list of Simbad names from a VizieR catalog and would like to find the axis ratio of the objects from the diameters table in NED. Code below. import numpy as np from astropy.table import Table,Column from astroquery.vizier import…
tommw
  • 123
  • 5
1
vote
0 answers

problem with astroquery download from the MAST archive

All, While testing a python script, I noticed that retrieving data from the TIC catalog results in an error message, like this: ticinfo = Catalogs.query_criteria(catalog="Tic", ID=tic).as_array() requests.exceptions.ConnectionError:…
Siegfried
  • 49
  • 3
1
vote
1 answer

Query Gaia by star name

I am attempting to query Gaia programmatically in python to get the parallax, distance and kmag of specific stars. I can write a query which obtains the parallax, but only for all stars, not a set of stars or one specific star. Ideally I would just…
1
vote
0 answers

Trying to overplot TESS and 2MASS images using WCSaxes and Astroquery

I'm trying to plot a 2MASS image on the same projection as a TESS image. I used to do this with pywcsgrid2, but I can't seem to install it anymore. So I'm trying with Astropy WCSAxes. Both the TESS image and 2MASS image are retrieved using…
Stephanie
  • 11
  • 4
1
vote
1 answer

Is there a way to do an astroquery conesearch with a magnitude limit?

Goal: I would like to return an astropy table of star coordinates with magnitudes below a specified number. Currently: I am using astroquery.vo_conesearch.conesearch to get the table of star coordinates and magnitudes and then afterwards removing…
Zachary
  • 47
  • 5
1
vote
1 answer

Using Python - After a coordinate query in Simbad, how do I extract the image generated by Aladin (opened with the Simbad plot button on the website)?

Basic Goal: Given a set of sky coordinates (ra, dec), this Python function should return a FITS image of the sky centered at those coordinates. Detailed Goal: The function will perform a coordinate query using astroquery and simbad. Ideally, it will…
Zachary
  • 47
  • 5
1
vote
1 answer

Criteria Query on SIMBAD database with astroquery.simbad

I have a big amount of criteria queries to do on SIMBAD database like this one : region(circle, 29.20 -0.214, 0.60d) & otypes in ('ClG','SCG','GrG','CGG','SC?','C?G','Gr?')& redshift > 0.037 & redshift < 0.0531 This query gives all objects of types…
1
vote
1 answer

Python pickling error: TypeError: object pickle not returning list

I am aware if this very old question Python pickling error: TypeError: object pickle not returning list. Issue with numpy? but the only answer given is rather obscure. This is the code that reproduces the issue in Python 3.6. import pickle from…
Gabriel
  • 40,504
  • 73
  • 230
  • 404
1
vote
1 answer

Astroquery SIMBAD : Obtaining data for diameter, mass, distance, luminosity and age of celestial object

Is there any way in astroquery we can obtain data for diameter and distance of star for example? Seems like I can not find any of these reading the astroquery documentation and checking all supported fields in the votable_fields_dict.json…
civa
  • 459
  • 3
  • 12
0
votes
1 answer

Planet not following orbit in Solar System Simulation

I'm trying to simulate a solar system, but the planets don't seem to follow the orbit, instead, the distance between a planet and the sun increases. I can't figure out what's wrong with this code. Here is an MRE. import numpy as np import…
atin
  • 985
  • 3
  • 11
  • 28
1
2