Tus comentarios
Hi Alvaro,
There are two ways I can think to do this. Firstly, you can use the astroquery TAP+ module and call the ESASky TAP:
https://astroquery.readthedocs.io/en/latest/utils/tap.html
You select the table you're interested in, then perform a cone search using ADQL.
Here's some example jupyter notebook code:
# Calling the ESASky TAP and printing the available tables from astroquery.utils.tap.core import TapPlus esasky = TapPlus(url="http://sky.esa.int/esasky-tap/tap") tables = esasky.load_tables(only_names=True) for table in (tables): print(table.get_qualified_name())
# Inspect the columns of the 2MASS Catalogue esasky = TapPlus(url="http://sky.esa.int/esasky-tap/tap") tmass = esasky.load_table('public.t_tmass_original_valid_fdw') for column in (tmass.columns): print(column.name)
# Perform a cone search on 2MASS around the coordinates for M51 with a radius of 10 arcminutes: esasky = TapPlus(url="http://sky.esa.int/esasky-tap/tap") job = esasky.launch_job("SELECT * FROM public.t_tmass_original_valid_fdw \ WHERE 1=CONTAINS( \ POINT('ICRS', ra, dec), \ CIRCLE('ICRS', 202.469575, +47.195258, 0.166667))", "tmass_M51.vot") print(job) job.get_results()
If you know TOPCAT, you can also inspect the ESASky TAP and try some ADQL code. Open Topcat -> VO -> Table Access Protocol (TAP) Query -> In keyword type 'ESASky' , click 'Find Service' -> Click 'use service' button.
Dear Nora,
Please tell your user that they can access and download the latest XMM-Newton EPIC MOC here:
http://skies.esac.esa.int/XMM-Newton/EPIC-RGB/Moc.fits
This can then be loaded and visualised in pyESASky or Aladin desktop for example.
Also note, all other XMM-Newton MOCs, as well as the HiPS, can be found in http://skies.esac.esa.int/XMM-Newton/
(select the HiPS in the list and once opened, there's a link to the MOC in the list in the right).
Kind regards,
Debbie, on behalf of the ESASky Team
Dear Bruno,
Does he want this functionality (where currently it's a click on a catalogue source and the name appears in the window)?:
Many thanks,
Debbie, on behalf of the ESASky team
Servicio de atención al cliente por UserEcho
The second way isn't through astroquery, but it is within a jupyter notebook and using our ESASky Jupyter Widget called pyESASky. We have an example notebook on how to download data from pyESASky here:
https://github.com/esdc-esac-esa-int/pyesasky/blob/master/samples/What_can_you_do_with_pyESASky.ipynb
Installation instructions etc can be found here:
https://www.cosmos.esa.int/web/esdc/pyesasky
and https://github.com/esdc-esac-esa-int/pyesasky/blob/master/README.md
We've an example in Binder (Cluster Analysis notebook):
https://gke.mybinder.org/v2/gh/esdc-esac-esa-int/notebooks/master/
And we've a video here:
I hope one of these options is good for you. Let us know how you go and if you need any help installing pyESASky!
Best regards,
Debbie, on behalf of the ESASky team