VizieR
CDS service giving access to published astronomical catalogs and data tables.
Module name:
vizierPython class:
astroquery.vizier.VizierFunctions: 12
Call any function below with the astroquery_execute MCP tool. Descriptions are taken from the upstream astroquery/astropy docstrings.
Function |
Summary |
|---|---|
Removes all cache files. |
|
Search Vizier for catalogs based on a set of keywords, e.g. author name |
|
Get a VizieR’s catalog metadata. |
|
Queries the service and returns a table object. |
|
Query the Vizier service for a specific catalog |
|
Queries the service and returns a table object. |
|
Send a query to Vizier in which you specify constraints with |
|
Queries the service and returns a table object. |
|
Serves the same purpose as |
|
Queries the service and returns a table object. |
|
Serves the same purpose as |
|
Resets the cache location to the default astropy cache |
Functions
clear_cache
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="clear_cache",
params={},
)
- VizierClass.clear_cache()
Removes all cache files.
find_catalogs
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="find_catalogs",
params={"keywords": "<keywords>"},
)
- VizierClass.find_catalogs(keywords, *, include_obsolete=False, verbose=False, max_catalogs=None, return_type='votable')
Search Vizier for catalogs based on a set of keywords, e.g. author name
- Parameters:
keywords (
listorstring) – List of keywords, or space-separated set of keywords. From Vizier: “names or words of title of catalog. The words are and’ed, i.e. only the catalogues characterized by all the words are selected.”include_obsolete (
bool, optional) – If set to True, catalogs marked obsolete will also be returned.max_catalogs (
intorNone) – The maximum number of catalogs to return. IfNone, all catalogs will be returned.
- Returns:
resource_dict – Dictionary of the “Resource” name and the VOTable resource object. “Resources” are generally publications; one publication may contain many tables.
- Return type:
Examples
>>> from astroquery.vizier import Vizier >>> catalog_list = Vizier.find_catalogs('Mars') >>> for k, v in catalog_list.items(): ... print(k, ":", v.description) J/A+A/572/A104 : Astrometric obs. of Phobos and Deimos in 1971 (Robert+, 2014) J/A+A/488/361 : Mars Express astrometric observations of Phobos (Willner+, 2008) J/A+A/603/A55 : WISE/NEOWISE Mars-crossing asteroids (Ali-Lagoa+, 2017) J/A+A/545/A144 : Astrometric observations of Deimos (Pasewaldt+, 2012) ...
get_catalog_metadata
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="get_catalog_metadata",
params={},
)
- VizierClass.get_catalog_metadata(*, catalog=None, get_query_payload=False)
Get a VizieR’s catalog metadata.
- Parameters:
catalog (
str, optional) – The catalog identifier. It usually looks like ‘III/55’ for big surveys or ‘J/ApJ/811/67’ for catalogs linked to a published paper. When this parameter is not provided, the function looks for the metadata of the catalog property of the Vizier class instance (catalog).get_query_payload (
bool, optional) – When True, returns the dict of HTTP request parameters. This does not execute the search for metadata.
- Returns:
A table with the following columns: - title - authors - abstract (the abstract of the article, modified to explain the data more specifically) - origin_article (the bibcode of the associated article) - webpage (a link to VizieR, contains more information about the catalog) - created (date of creation of the catalog in VizieR) - updated (date of the last modification applied to the entry, this is often metadata, with no appearance in the history tap on the webpage but sometimes also data erratum, which will appear in the history tab) - waveband - doi (the catalog doi when it exists)
- Return type:
Examples
>>> from astroquery.vizier import Vizier >>> Vizier(catalog="I/324").get_catalog_metadata() <Table length=1> title authors ... waveband doi object object ... object object ----------------------------------- ----------------------- ... -------- ------ The Initial Gaia Source List (IGSL) Smart R.L.; Nicastro L. ... --
>>> from astroquery.vizier import Vizier >>> Vizier.get_catalog_metadata(catalog="J/ApJS/173/185") <Table length=1> title ... doi object ... object ------------------------------------------ ... -------------------------------- GALEX ultraviolet atlas of nearby galaxies ... doi:10.26093/cds/vizier.21730185
get_catalogs
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="get_catalogs",
params={},
)
get_catalogs_async
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="get_catalogs_async",
params={"catalog": "<catalog>"},
)
- VizierClass.get_catalogs_async(catalog, *, verbose=False, return_type='votable', get_query_payload=False)
Query the Vizier service for a specific catalog
query_constraints
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_constraints",
params={},
)
- VizierClass.query_constraints(*args, **kwargs)
Queries the service and returns a table object.
Send a query to Vizier in which you specify constraints with keyword/value pairs.
See the vizier constraints page for details.
- Parameters:
catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.kwargs (
dict) – Any key/value pairs besides “catalog” will be parsed as additional column filters.cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
Examples
>>> from astroquery.vizier import Vizier >>> # note that glon/glat constraints here *must* be floats >>> result = Vizier(row_limit=3).query_constraints(catalog='J/ApJ/723/492/table1', ... GLON='>49.0 & <51.0', GLAT='<0.0') >>> result[result.keys()[0]].pprint() GRSMC GLON GLAT VLSR DelV ... alpha Note RD09 _RA.icrs _DE.icrs deg deg km / s km / s ... deg deg ------------- ------ ------ ------ ------ ... ------ ---- ---- -------- -------- G049.49-00.41 49.49 -0.41 56.90 9.12 ... 0.73 i RD09 290.9536 14.4992 G049.39-00.26 49.39 -0.26 50.94 3.51 ... 0.16 i RD09 290.7682 14.4819 G049.44-00.06 49.44 -0.06 62.00 3.67 ... 0.17 i RD09 290.6104 14.6203
- Returns:
table
- Return type:
A `~astropy.table.Tableobject.`
query_constraints_async
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_constraints_async",
params={},
)
- VizierClass.query_constraints_async(*, catalog=None, return_type='votable', cache=True, get_query_payload=False, **kwargs)
Send a query to Vizier in which you specify constraints with keyword/value pairs.
See the vizier constraints page for details.
- Parameters:
catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.kwargs (
dict) – Any key/value pairs besides “catalog” will be parsed as additional column filters.cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
- Returns:
response – The response of the HTTP request.
- Return type:
requests.Response
Examples
>>> from astroquery.vizier import Vizier >>> # note that glon/glat constraints here *must* be floats >>> result = Vizier(row_limit=3).query_constraints(catalog='J/ApJ/723/492/table1', ... GLON='>49.0 & <51.0', GLAT='<0.0') >>> result[result.keys()[0]].pprint() GRSMC GLON GLAT VLSR DelV ... alpha Note RD09 _RA.icrs _DE.icrs deg deg km / s km / s ... deg deg ------------- ------ ------ ------ ------ ... ------ ---- ---- -------- -------- G049.49-00.41 49.49 -0.41 56.90 9.12 ... 0.73 i RD09 290.9536 14.4992 G049.39-00.26 49.39 -0.26 50.94 3.51 ... 0.16 i RD09 290.7682 14.4819 G049.44-00.06 49.44 -0.06 62.00 3.67 ... 0.17 i RD09 290.6104 14.6203
query_object
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_object",
params={},
)
- VizierClass.query_object(*args, **kwargs)
Queries the service and returns a table object.
Serves the same purpose as
query_objectbut only returns the HTTP response rather than the parsed result.- Parameters:
object_name (
str) – The name of the identifier.catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.radius (
QuantityorNone) – A degree-equivalent radius (optional).coordinate_system (
strorNone) – If the object name is given as a coordinate, you should usequery_region, but you can specify a coordinate frame here instead (today, J2000, B1975, B1950, B1900, B1875, B1855, Galactic, Supergal., Ecl.J2000, )cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
- Returns:
table
- Return type:
A `~astropy.table.Tableobject.`
query_object_async
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_object_async",
params={"object_name": "<object_name>"},
)
- VizierClass.query_object_async(object_name, *, catalog=None, radius=None, coordinate_frame=None, get_query_payload=False, return_type='votable', cache=True)
Serves the same purpose as
query_objectbut only returns the HTTP response rather than the parsed result.- Parameters:
object_name (
str) – The name of the identifier.catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.radius (
QuantityorNone) – A degree-equivalent radius (optional).coordinate_system (
strorNone) – If the object name is given as a coordinate, you should usequery_region, but you can specify a coordinate frame here instead (today, J2000, B1975, B1950, B1900, B1875, B1855, Galactic, Supergal., Ecl.J2000, )cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
- Returns:
response – The response of the HTTP request.
- Return type:
Response
query_region
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_region",
params={},
)
- VizierClass.query_region(*args, **kwargs)
Queries the service and returns a table object.
Serves the same purpose as
query_regionbut only returns the HTTP response rather than the parsed result.At least one of
radiusorwidthmust be specified.- Parameters:
coordinates (
str,astropy.coordinatesobject, orTable) – The target around which to search. It may be specified as a string in which case it is resolved using online services or as the appropriateastropy.coordinatesobject. ICRS coordinates may also be entered as a string. If a table is used, each of its rows will be queried, as long as it contains two columns named_RAJ2000and_DEJ2000with proper angular units.radius (
convertibletoAngle) – The radius of the circular region to query.inner_radius (
convertibletoAngle) – When set in addition toradius, the queried region becomes annular, with outer radiusradiusand inner radiusinner_radius.width (
convertibletoAngle) – The width of the square region to query.height (
convertibletoAngle) – When set in addition towidth, the queried region becomes rectangular, with the specifiedwidthandheight.catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.column_filters (
dict, optional) – Constraints on columns of the result. The dictionary contains the column name as keys, and the constraints as values.frame (
str, optional) – The frame to use for the request. It should be ‘fk5’, ‘icrs’, or ‘galactic’. This choice influences the the orientation of box requests.cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
- Returns:
table
- Return type:
A `~astropy.table.Tableobject.`
query_region_async
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="query_region_async",
params={"coordinates": "<coordinates>"},
)
- VizierClass.query_region_async(coordinates, *, radius=None, inner_radius=None, width=None, height=None, catalog=None, get_query_payload=False, cache=True, return_type='votable', column_filters={}, frame='fk5')
Serves the same purpose as
query_regionbut only returns the HTTP response rather than the parsed result.At least one of
radiusorwidthmust be specified.- Parameters:
coordinates (
str,astropy.coordinatesobject, orTable) – The target around which to search. It may be specified as a string in which case it is resolved using online services or as the appropriateastropy.coordinatesobject. ICRS coordinates may also be entered as a string. If a table is used, each of its rows will be queried, as long as it contains two columns named_RAJ2000and_DEJ2000with proper angular units.radius (
convertibletoAngle) – The radius of the circular region to query.inner_radius (
convertibletoAngle) – When set in addition toradius, the queried region becomes annular, with outer radiusradiusand inner radiusinner_radius.width (
convertibletoAngle) – The width of the square region to query.height (
convertibletoAngle) – When set in addition towidth, the queried region becomes rectangular, with the specifiedwidthandheight.catalog (
strorlist, optional) – The catalog(s) which must be searched for this identifier. If not specified, all matching catalogs will be searched.column_filters (
dict, optional) – Constraints on columns of the result. The dictionary contains the column name as keys, and the constraints as values.frame (
str, optional) – The frame to use for the request. It should be ‘fk5’, ‘icrs’, or ‘galactic’. This choice influences the the orientation of box requests.cache (
bool) – Defaults to True. If set overrides global caching behavior. See caching documentation.
- Returns:
response – The response of the HTTP request.
- Return type:
requests.Response
reset_cache_location
Call via MCP
astroquery_execute(
module_name="vizier",
function_name="reset_cache_location",
params={},
)
- VizierClass.reset_cache_location()
Resets the cache location to the default astropy cache