IbeClass¶
-
class
astroquery.ibe.IbeClass[source]¶ Bases:
astroquery.query.BaseQueryAttributes Summary
DATASETMISSIONTABLETIMEOUTURLMethods Summary
get_columns([mission, dataset, table])Get the schema for a given table. list_datasets([mission, cache])For a given mission, list the available datasets list_missions([cache])Return a list of the available missions list_tables([mission, dataset, cache])For a given mission and dataset (see list_missions,list_datasets), return the list of valid table names to query.query_region([coordinate, where, mission, …])For certain missions, this function can be used to search for image and catalog files based on a point, a box (bounded by great circles) and/or an SQL-like whereclause.query_region_async([coordinate, where, …])For certain missions, this function can be used to search for image and catalog files based on a point, a box (bounded by great circles) and/or an SQL-like whereclause.query_region_sia([coordinate, mission, …])Query using simple image access protocol. show_docs([mission, dataset, table])Open the documentation for a given table in a web browser. Attributes Documentation
-
DATASET= 'images'¶
-
MISSION= 'ptf'¶
-
TABLE= 'level1'¶
-
TIMEOUT= 60¶
-
URL= 'http://irsa.ipac.caltech.edu/ibe/'¶
Methods Documentation
-
get_columns(mission=None, dataset=None, table=None)[source]¶ Get the schema for a given table.
Parameters: mission : str
The mission to be used (if not the default mission).
dataset : str
The dataset to be used (if not the default dataset).
table : str
The table to be queried (if not the default table).
Returns: table :
TableA table containing a description of the columns
-
list_datasets(mission=None, cache=True)[source]¶ For a given mission, list the available datasets
Parameters: mission : str
A mission name. Must be one of the valid missions from
list_missions. Defaults to the configured Missioncache : bool
Cache the query result
Returns: datasets : list
A list of dataset names
-
list_missions(cache=True)[source]¶ Return a list of the available missions
Parameters: cache : bool
Cache the query result
-
list_tables(mission=None, dataset=None, cache=True)[source]¶ For a given mission and dataset (see
list_missions,list_datasets), return the list of valid table names to query.Parameters: mission : str
A mission name. Must be one of the valid missions from
list_missions. Defaults to the configured Missiondataset : str
A dataset name. Must be one of the valid dataset from
list_datsets(mission). Defaults to the configured Datasetcache : bool
Cache the query result
Returns: tables : list
A list of table names
-
query_region(coordinate=None, where=None, mission=None, dataset=None, table=None, columns=None, width=None, height=None, intersect='OVERLAPS', most_centered=False)[source]¶ For certain missions, this function can be used to search for image and catalog files based on a point, a box (bounded by great circles) and/or an SQL-like
whereclause.If
coordinatesis specified, then the optionalwidthandheightarguments control the width and height of the search box. If neitherwidthnorheightare provided, then the search area is a point. If only one ofwidthorheightare specified, then the search area is a square with that side length centered at the coordinate.Parameters: coordinate : str,
astropy.coordinatesobjectGives the position of the center of the box if performing a box search. If it is a string, then it must be a valid argument to
SkyCoord. Required ifwhereis absent.where : str
SQL-like query string. Required if
coordinatesis absent.mission : str
The mission to be used (if not the default mission).
dataset : str
The dataset to be used (if not the default dataset).
table : str
The table to be queried (if not the default table).
columns : str, list
A space-separated string or a list of strings of the names of the columns to return.
width : str or
QuantityobjectWidth of the search box if
coordinatesis present.The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay also be used.height : str,
QuantityobjectHeight of the search box if
coordinatesis present.The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay also be used.intersect :
'COVERS','ENCLOSED','CENTER','OVERLAPS'Spatial relationship between search box and image footprint.
'COVERS': X must completely contain S. Equivalent to'CENTER'and'OVERLAPS'if S is a point.'ENCLOSED': S must completely contain X. If S is a point, the query will always return an empty image table.'CENTER': X must contain the center of S. If S is a point, this is equivalent to'COVERS'and'OVERLAPS'.'OVERLAPS': The intersection of S and X is non-empty. If S is a point, this is equivalent to'CENTER'and'COVERS'.most_centered : bool
If True, then only the most centered image is returned.
Returns: table :
TableA table containing the results of the query
-
query_region_async(coordinate=None, where=None, mission=None, dataset=None, table=None, columns=None, width=None, height=None, action='search', intersect='OVERLAPS', most_centered=False)[source]¶ For certain missions, this function can be used to search for image and catalog files based on a point, a box (bounded by great circles) and/or an SQL-like
whereclause.If
coordinatesis specified, then the optionalwidthandheightarguments control the width and height of the search box. If neitherwidthnorheightare provided, then the search area is a point. If only one ofwidthorheightare specified, then the search area is a square with that side length centered at the coordinate.Parameters: coordinate : str,
astropy.coordinatesobjectGives the position of the center of the box if performing a box search. If it is a string, then it must be a valid argument to
SkyCoord. Required ifwhereis absent.where : str
SQL-like query string. Required if
coordinatesis absent.mission : str
The mission to be used (if not the default mission).
dataset : str
The dataset to be used (if not the default dataset).
table : str
The table to be queried (if not the default table).
columns : str, list
A space-separated string or a list of strings of the names of the columns to return.
width : str or
QuantityobjectWidth of the search box if
coordinatesis present.The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay also be used.height : str,
QuantityobjectHeight of the search box if
coordinatesis present.The string must be parsable by
Angle. The appropriateQuantityobject fromastropy.unitsmay also be used.intersect :
'COVERS','ENCLOSED','CENTER','OVERLAPS'Spatial relationship between search box and image footprint.
'COVERS': X must completely contain S. Equivalent to'CENTER'and'OVERLAPS'if S is a point.'ENCLOSED': S must completely contain X. If S is a point, the query will always return an empty image table.'CENTER': X must contain the center of S. If S is a point, this is equivalent to'COVERS'and'OVERLAPS'.'OVERLAPS': The intersection of S and X is non-empty. If S is a point, this is equivalent to'CENTER'and'COVERS'.most_centered : bool
If True, then only the most centered image is returned.
action :
'search','data', or'sia'The action to perform at the server. The default is
'search', which returns a table of the available data.'data'requires advanced path construction that is not yet supported.'sia'provides access to the ‘simple image access’ IVOA protocolReturns: response :
ResponseThe HTTP response returned from the service
-
query_region_sia(coordinate=None, mission=None, dataset=None, table=None, width=None, height=None, intersect='OVERLAPS', most_centered=False)[source]¶ Query using simple image access protocol. See
query_regionfor details. The returned table will include a list of URLs.
-
show_docs(mission=None, dataset=None, table=None)[source]¶ Open the documentation for a given table in a web browser.
Parameters: mission : str
The mission to be used (if not the default mission).
dataset : str
The dataset to be used (if not the default dataset).
table : str
The table to be queried (if not the default table).
-