threeML.catalogs.VirtualObservatoryCatalog module¶
-
class
threeML.catalogs.VirtualObservatoryCatalog.
VirtualObservatoryCatalog
(name, url, description)[source]¶ Bases:
object
-
cone_search
(ra, dec, radius)[source]¶ Searches for sources in a cone of given radius and center
- Parameters
ra – decimal degrees, R.A. of the center of the cone
dec – decimal degrees, Dec. of the center of the cone
radius – radius in degrees
- Returns
a table with the list of sources
-
property
dec_center
¶
-
query
(query)[source]¶ query the entire VO table for the given logical argument. Queries are in the form of pandas queries: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.query.html
To obtain a preview of the availble columns, try catalog.variables
- Parameters
query – pandas style query string
- Returns
-
query_sources
(*sources)[source]¶ query for the specific source names.
- Parameters
sources – source(s) to search for
- Returns
-
property
ra_center
¶
-
property
result
¶ return a searchable pandas dataframe of results from the last query. :return:
-
search_around_source
(source_name, radius)[source]¶ Search for sources around the named source. The coordinates of the provided source are resolved using the astropy.coordinates.name_resolve facility.
- Parameters
source_name – name of the source, like “Crab”
radius – radius of the search, in degrees
- Returns
(ra, dec, table), where ra,dec are the coordinates of the source as resolved by astropy, and table is
a table with the list of sources
-