'Gaia Astroquery Python - 500 Error 500: null
I am doing Gaia Astroquery, piloted by this website:
https://datacarpentry.org/astronomy-python/index.html
I am working on the "Transform and Select" lesson and when I reach "Selecting proper motion" section, the program does not work, instead I get an error, named "500 Error 500: null".
Here is the link to the chapter: https://datacarpentry.org/astronomy-python/05-select/index.html
My code looks like this:
candidate_coord_pm_query_base = """SELECT
{columns}
FROM gaiadr2.gaia_source
WHERE parallax < 1
AND bp_rp BETWEEN -0.75 AND 2
AND 1 = CONTAINS(POINT(ra, dec),
POLYGON({sky_point_list}))
AND 1 = CONTAINS(POINT(pmra, pmdec),
POLYGON({pm_point_list}))
"""
candidate_coord_pm_query = candidate_coord_pm_query_base.format(columns=columns,
sky_point_list=sky_point_list,
pm_point_list=pm_point_list)
candidate_coord_pm_job = Gaia.launch_job_async(candidate_coord_pm_query)
candidate_gaia_table = candidate_coord_pm_job.get_results()
I get the error message after the last row in this code. Any previous code works for me and every variable is all right and looks like on the website. So my question is how to write this to work properly?
Any help will be apreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
