ESAHubbleClass¶
-
class
astroquery.esa.hubble.
ESAHubbleClass
(url_handler=None, tap_handler=None)[source]¶ Bases:
astroquery.query.BaseQuery
Attributes Summary
TIMEOUT
data_url
metadata_url
Methods Summary
cone_search
(coordinates[, radius, filename, …])download_product
(observation_id[, …])Download products from EHST get_artifact
(artifact_id[, filename, verbose])Download artifacts from EHST. get_columns
(table_name[, only_names, verbose])Get the available columns for a table in EHST TAP service get_postcard
(observation_id[, …])Download postcards from EHST get_tables
([only_names, verbose])Get the available table in EHST TAP service query_hst_tap
(query[, output_file, …])Launches a synchronous job to query the HST tap query_target
(name[, filename, …])It executes a query over EHST and download the xml with the results. Attributes Documentation
-
TIMEOUT
= 60¶
-
data_url
= 'http://archives.esac.esa.int/ehst-sl-server/servlet/data-action?'¶
-
metadata_url
= 'http://archives.esac.esa.int/ehst-sl-server/servlet/metadata-action?'¶
Methods Documentation
-
download_product
(observation_id, calibration_level='RAW', filename=None, verbose=False)[source]¶ Download products from EHST
Parameters: observation_id : string
id of the observation to be downloaded, mandatory The identifier of the observation we want to retrieve, regardless of whether it is simple or composite.
calibration_level : string
calibration level, optional, default ‘RAW’ The identifier of the data reduction/processing applied to the data. By default, the most scientifically relevant level will be chosen. RAW, CALIBRATED, PRODUCT or AUXILIARY
filename : string
file name to be used to store the artifact, optional, default None File name for the observation.
verbose : bool
optional, default ‘False’ flag to display information about the process
Returns: None. It downloads the observation indicated
-
get_artifact
(artifact_id, filename=None, verbose=False)[source]¶ Download artifacts from EHST. Artifact is a single Hubble product file.
Parameters: artifact_id : string
id of the artifact to be downloaded, mandatory The identifier of the physical product (file) we want to retrieve.
filename : string
file name to be used to store the artifact, optional, default None File name for the artifact
verbose : bool
optional, default ‘False’ flag to display information about the process
Returns: None. It downloads the artifact indicated
-
get_columns
(table_name, only_names=True, verbose=False)[source]¶ Get the available columns for a table in EHST TAP service
Parameters: table_name : string, mandatory, default None
table name of which, columns will be returned
only_names : bool, TAP+ only, optional, default ‘False’
True to load table names only
verbose : bool, optional, default ‘False’
flag to display information about the process
Returns: A list of columns
-
get_postcard
(observation_id, calibration_level='RAW', resolution=256, filename=None, verbose=False)[source]¶ Download postcards from EHST
Parameters: observation_id : string
id of the observation for which download the postcard, mandatory The identifier of the observation we want to retrieve, regardless of whether it is simple or composite.
calibration_level : string
calibration level, optional, default ‘RAW’ The identifier of the data reduction/processing applied to the data. By default, the most scientifically relevant level will be chosen. RAW, CALIBRATED, PRODUCT or AUXILIARY
resolution : integer
postcard resolution, optional, default 256 Resolution of the retrieved postcard. 256 or 1024
filename : string
file name to be used to store the postcard, optional, default None File name for the artifact
verbose : bool
optional, default ‘False’ Flag to display information about the process
Returns: None. It downloads the observation postcard indicated
-
get_tables
(only_names=True, verbose=False)[source]¶ Get the available table in EHST TAP service
Parameters: only_names : bool, TAP+ only, optional, default ‘False’
True to load table names only
verbose : bool, optional, default ‘False’
flag to display information about the process
Returns: A list of tables
-
query_hst_tap
(query, output_file=None, output_format='votable', verbose=False)[source]¶ Launches a synchronous job to query the HST tap
Parameters: query : str, mandatory
query (adql) to be executed
output_file : str, optional, default None
file name where the results are saved if dumpToFile is True. If this parameter is not provided, the jobid is used instead
output_format : str, optional, default ‘votable’
results format
verbose : bool, optional, default ‘False’
flag to display information about the process
Returns: A table object
-
query_target
(name, filename=None, output_format='votable', verbose=False)[source]¶ It executes a query over EHST and download the xml with the results.
Parameters: name : string
target name to be requested, mandatory
filename : string
file name to be used to store the metadata, optional, default None
output_format : string
optional, default ‘votable’ output format of the query
verbose : bool
optional, default ‘False’ Flag to display information about the process
Returns: Table with the result of the query. It downloads metadata as a file.
-