astroquery | Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb | Dataset library
kandi X-RAY | astroquery Summary
kandi X-RAY | astroquery Summary
Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate a table
- Format the table list
- Join paths together
- Pretty print table list
- Query IRIS
- Map a list of dtypes to strings
- Calculate Ncriteria for reactions
- Download the results of a job
- Get all the jobs
- Fetch existing tables from the database
- Download a set of cutouts
- Get a list of cutouts for a given crop
- Make a vo service request
- Downloads data from the model
- Query a region of a given coordinates
- Get a list of Skycoord objects
- Downloads cutouts from SkyCoord
- Download an observation
- Delete all jobs
- Generate a SQL statement for a position
- Query a region
- Run a SQL query
- Download a post card
- Logs to the user
- Get all headers for a list of products
- Query the region of the given coordinates
astroquery Key Features
astroquery Examples and Code Snippets
Community Discussions
Trending Discussions on astroquery
QUESTION
So I wrote some code a month ago, and I've been consistently running/updating it. I uploaded my most recent one to GitHub and it works I know it works because I tested it over and over again before uploading. However, now I opened up the file nothing changed and submitting queries... NO LONGER WORKS, and by no longer works I mean that out of the 150 queries 2 succeed. I have the data from my most recent script and I know 104/150 work. Anyone know why this might be? My code is below
...ANSWER
Answered 2021-Dec-27 at 19:53Please note, this has been resolved. The reason for this is on their website: https://www.cosmos.esa.int/web/gaia/news, planned maintenance. For future reference, if your code stops working and it involves Querying, head to their website they have probably posted it.
QUESTION
I am trying to install a very recent branch of a github repo into my google colab editor. I guess I haven't yet figured out the correct syntax, despite trying out different suggestions on StackOverflow. What I have tried so far is
...ANSWER
Answered 2021-Nov-18 at 14:17Try this, it worked in my colab:
QUESTION
I have a code that uses for loop to extracts light magnitude (in this case refered to as phot_bp_rp_excess_factor
) (Bp), from a certain table.
My code:
...ANSWER
Answered 2021-Jun-01 at 05:23if you want to hide the INFO message, you can try:
QUESTION
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
...ANSWER
Answered 2020-Jul-20 at 23:33Try running conda install -c astropy astroquery
in your active conda evironment
QUESTION
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 be able to access the database of objects within the given region centered at (ra, dec). Hence, some size parameter will also be input (FoV, or radius). But mainly, when a query is done on the simbad through browser, there is an option to plot the star region centered at the input coordinates, made by AladinLite, and the function should return this image (hopefully as a FITS image).
What I've tried: Everything I've tried to get here has been discovering the use of astroquery and simbad. But I cannot find anything in the documentation on how the image from AladinLite can be obtained through astroquery. Finding a way to get an image straight from Aladin using Python doesn't seem possible either.
Question: Is it possible to get that image generated by AladinLite on the browser version of the simbad coordinate query using Python and astroquery? If so, how can I go about doing it?
Some pseudocode:
...ANSWER
Answered 2020-Jun-12 at 14:32Caveat: I am not a researcher in Astronomy and while I am an Astropy developer I'm not really a user so there might be some slightly better ways to do this if someone with more experience/understanding of the issue wants to come along.
But AladinLite is not an image catalogue. It's just a web-based UI for image viewing and plotting. However, the AladinLite sample service hosted by U. Strasbourg takes its data from their HiPS Survey services. They provide this data through a hips2fits web-based API. I don't think AladinLite provides an interface to gather all its displayed tiles into a FITS image to download. That's what the hips2fits service is for. Incidentally, it notes on the website:
We will develop an access to hips2fits from astroquery.cds. In the meantime, this notebook should get you started to query hips2fits from Python scripts.
So you have the first part of your workflow right: You would use astroquery
to query Simbad. But then you need to query for the image data. There's no Python-specific API for this yet, but the web API is well documented, so it's mostly a matter of constructing the correct URL. Here's an example workflow I came up with using the same coordinates from the screenshot you gave:
QUESTION
I'm trying to get some data from the Gaia catalog and then I transform the astropy table into a pandas DataFrame then I want to store it in an hdf5 file. I can't directly store the astropy table (result of the query) into an hdf5 file because I need to do some processing on it.
The problem is when I want to store the DataFrame into the hdf file I get this error :
...ANSWER
Answered 2020-Jun-11 at 19:32It looks like the phot_variable_flag
column has object dtype, i.e. it is a numpy array of objects. It is also masked:
QUESTION
When I run command conda, I have the upper output. Probably you are going to quickly write an answer about environmental variables, but don't be so fast. Let me tell my story:
1 month ago I installed Anaconda. For some time it was going well. But when I installed AstroQuery, debugger said something like that: __ init __ is not a method of NumPy (I can't remember). So I read something about this and on one place I found, that I need to remove NumPy and SetupTools by force, and then install them again. So I removed them, but then Conda said, that new NumPy cannot be combined with other libraries (Conda made a list of nearly 100 packages which cannot be combined with NumPy). So I thought that I destroyed Anaconda, so I deleted program with Windows tools, and then all directories with Conda similar name and files with that name. I installed again, but when I open Conda, it says (this is a translated version, I don't know original English output): The specified path cannot be found.
And there we are. I tried also with conda command, but no success.
Question in nutshell: I removed NumPy and setuptools from Conda, but then I couldn't install them again. So I removed Anaconda and installed it again. 'The specified path cannot be found' comes.
Thank you!
P.S. Yes, I added it in my environmental variables (C:\Users\me\Anaconda3\Scripts).
...ANSWER
Answered 2020-Feb-26 at 15:35This answer is posted by original asker because the question is
SOLVED
When I opened Anaconda prompt, I thought, that no environments exist or I can't make any of them. But I needed to just activate base environment.
This question shows us that sometimes we have an answer right in front of our nose, but we don't see it.
Thanks to @FlyingTeller for support in comments.
Edit: When I again ran Anaconda prompt, the error showed again. Then I added path to environmental variables, and everything was fine.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install astroquery
You can use astroquery like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page