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
0
votes
0 answers

Can not recover get_body coordinate from Astroquery Horizons

I am trying to get the same coordinate of the Moon as seen from Earth with get_body from Astropy (which supposedly uses GCRS) and Astroquery Horizons setting the Moon as target (id=301) and the Earth as observation point (location=399). But the…
0
votes
0 answers

Astroquery.jplhorizons not working on Windows

The astroquery.horizons package includes this code in the documentation: >>> from astroquery.jplhorizons import Horizons >>> obj = Horizons(id='Ceres', location='568', ... epochs={'start':'2010-01-01', 'stop':'2010-03-01', ... …
Itaer
  • 73
  • 1
  • 3
0
votes
2 answers

How to get earth vector data from jpl horizons in python?

I am trying to get the vector data for Earth using Astroquery's Horizons Class. I have the following code: from astroquery.jplhorizons import Horizons import numpy as np earth = Horizons(id=399, epochs = {'start':'2005-06-20',…
0
votes
0 answers

SDSS.get_images ValueError

When I try running SDSS.get_images in a class I've made I get this error. I am unsure how to resolve this. --------------------------------------------------------------------------- ValueError Traceback (most recent…
0
votes
1 answer

Astropy - Astroquery How to find magnitudes in Simbad?

among other parameters, I am trying to find the magnitudes of some objects using astroquery and Simbad. I think the magnitudes are in 'measurements' votable, but when I invoke Simbad.add_votable_fields('measurements') I get an error: Exception: No…
Adrian
  • 177
  • 9
0
votes
1 answer

How to use Getclosest() in a list in Python

I have code which is taking RA and DEC values (some coordinates in str form) from a text file and using astroquery to query objects respect to those RA and DEC data and shows a table for those objects and their attributes. Then I put them into a…
Ege Tunç
  • 11
  • 4
0
votes
1 answer

I want SIMBAD to treat the dash(hyphen) as a space

I have a code using astroquery.Simbad to query star names. However Simbad working with names like "LP 944-20". However, the data contains names as "LP-944-20". How can i make code to ignore that first dash(hyphen)? My code: from astroquery.simbad…
Ege Tunç
  • 11
  • 4
0
votes
1 answer

In an array, list indices must be integers or slices, not str error python

I have a code which reads data from .tsv file then turns its columns into arrays. However, when i try to use those arrays in for loop it says "TypeError: list indices must be integers or slices, not str". How can i fix this? Here's my code: import…
Ege Tunç
  • 11
  • 4
0
votes
1 answer

Astroquery JPL Horizons Python

I'd like to ask if anyone knows how can i get list of all objects that are in the Solar system. I mean all planets and their natural satellites. Or first 400 objects that are the closest to the barycenter of the solar system. The only thing i can…
Sernight
  • 5
  • 1
0
votes
1 answer

SkyCoord Bug: 'list' (or 'Series) object has no attribute 'SkyCoord' - when querying stars inside for loop

So, I'm trying to do a code in which I take my stars sample (M dwarf stars in general) and get only the stars which have a confirmed exoplanet orbiting around it. But the star sample is big (around 178 stars) and I have to automatize it and put the…
Ericfa1510
  • 23
  • 3
0
votes
0 answers

Is there a way to combine KeplerTargetPixelFile Object in python?

I tried to download the Kepler data form LightKurve pixelFile = search_targetpixelfile('KIC 6922244', quarter=4).download() pixelFile I received a warning saying there are 4 more files available to download When I did download all the four files,…
Enos jeba
  • 72
  • 1
  • 3
  • 10
0
votes
1 answer

Best way to read and write CSV files utilizing astroquery to obtain large data sets

from astroquery.mast import Catalogs import numpy as np from astropy.io import ascii myfile='/Users/slaterjonesoden/Desktop/GALEX_analysis/RQE_sample_data.csv' sample = ascii.read(myfile, format='csv', delimiter=',',…
0
votes
1 answer

Searching a list using astroquery

I have the following code below that I got from https://astroquery.readthedocs.io/en/latest/gaia/gaia.html. I get the br when ra and dec is a number. However, I have not just one number, but a list of ra and dec. When I tried putting a list in for…
Zegary
  • 13
  • 4
0
votes
1 answer

Problems encountered when writing astronomy/astrodynamic program

I am attempting to write a program that will show me the sky from a certain point on the earth with certain solar system bodies using the JPL Horizons Ephemeris. There are two problems I encountered: the astroquery.jplhorizons module will not work,…
-2
votes
1 answer

Need Astroquery 4.1 installed visual studio

Visual studio Python Anaconda Astroquery is supposed to be part of astropy. Not there Ive downloaded zip files and run them....nothing yet. How to do it
1
2