VOSCatalog

class astroquery.vo_conesearch.vos_catalog.VOSCatalog(tree)[source]

Bases: astroquery.vo_conesearch.vos_catalog.VOSBase

A class to represent VO Service Catalog.

Parameters
treeJSON tree
Raises
VOSError

Missing necessary key(s).

Methods Summary

create(title, url, **kwargs)

Create a new VO Service Catalog with user parameters.

delete_attribute(key)

Delete given metadata key and its value from the catalog.

Methods Documentation

classmethod create(title, url, **kwargs)[source]

Create a new VO Service Catalog with user parameters.

Parameters
titlestr

Title of the catalog.

urlstr

Access URL of the service. This is used to build queries.

kwargsdict

Additional metadata as keyword-value pairs describing the catalog, except ‘title’ and ‘url’.

Returns
catVOSCatalog

VO Service Catalog.

Raises
TypeError

Multiple values given for keyword argument.

delete_attribute(key)[source]

Delete given metadata key and its value from the catalog.

Parameters
keystr

Metadata key to delete.

Raises
KeyError

Key not found.

VOSError

Key must exist in catalog, therefore cannot be deleted.