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_idstring

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_levelstring

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

filenamestring

file name to be used to store the artifact, optional, default None File name for the observation.

verbosebool

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_idstring

id of the artifact to be downloaded, mandatory The identifier of the physical product (file) we want to retrieve.

filenamestring

file name to be used to store the artifact, optional, default None File name for the artifact

verbosebool

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_namestring, mandatory, default None

table name of which, columns will be returned

only_namesbool, TAP+ only, optional, default ‘False’

True to load table names only

verbosebool, 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_idstring

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_levelstring

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

resolutioninteger

postcard resolution, optional, default 256 Resolution of the retrieved postcard. 256 or 1024

filenamestring

file name to be used to store the postcard, optional, default None File name for the artifact

verbosebool

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_namesbool, TAP+ only, optional, default ‘False’

True to load table names only

verbosebool, 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
querystr, mandatory

query (adql) to be executed

output_filestr, 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_formatstr, optional, default ‘votable’

results format

verbosebool, 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
namestring

target name to be requested, mandatory

filenamestring

file name to be used to store the metadata, optional, default None

output_formatstring

optional, default ‘votable’ output format of the query

verbosebool

optional, default ‘False’ Flag to display information about the process

Returns
Table with the result of the query. It downloads metadata as a file.