Repository navigation
Archive ESA Hubble
ESA Hubble Space Telescope archive (eHST).
-
Module name:
esa_hubble -
Python class:
astroquery.esa.hubble.ESAHubble - Functions: 23
Call any function below with the astroquery_execute MCP tool. Descriptions are taken from the upstream astroquery/astropy docstrings.
| Function | Summary |
|---|---|
clear_cache |
Removes all cache files. |
cone_search |
To execute a cone search defined by a coordinate and a radius |
cone_search_criteria |
To execute a cone search defined by a coordinate (an |
download_file |
Download a file from eHST based on its filename. |
download_files_from_program |
Download artifacts from EHST. Artifact is a single Hubble product file. |
download_fits_files |
Retrieves all the FITS files associated to an observation |
download_product |
Download products from EHST based on their observation ID and the |
get_artifact |
Download artifacts from EHST. Artifact is a single Hubble product file. |
get_associated_files |
Retrieves all the files associated to an observation |
get_columns |
Get the available columns for a table in EHST TAP service |
get_datalabs_path |
Get the available columns for a table in EHST TAP service |
get_hap_hst_link |
Returns the related members of hap and hst observations |
get_member_observations |
Returns the related members of simple and composite observations |
get_observation_type |
Returns the type of an observation |
get_observations_from_program |
Retrieves all the observations associated to a program/proposal ID |
get_postcard |
Download postcards from EHST |
get_status_messages |
Retrieve the messages to inform users about |
get_tables |
Get the available table in EHST TAP service |
query_criteria |
Launches a synchronous or asynchronous job to query the HST tap |
query_metadata |
ESAHubble.query_metadata |
query_tap |
Launches a synchronous or asynchronous job to query the HST tap |
query_target |
It executes a query over EHST and download the xml with the results. |
reset_cache_location |
Resets the cache location to the default astropy cache |
Removes all cache files.
ESAHubble.clear_cache()Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="clear_cache",
params={},
)Parameters
No parameters.
To execute a cone search defined by a coordinate and a radius
ESAHubble.cone_search(coordinates, radius, *, filename=None, output_format='votable', cache=True, async_job=False, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="cone_search",
params={"coordinates": "<coordinates>", "radius": "<radius>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
coordinates (required)
|
astropy.coordinate, mandatory | coordinates of the center in the cone search | |
radius (required)
|
float or quantity | radius in arcmin (int, float) or quantity of the cone_search | |
filename |
str, default None | None |
Path and name of the file to store the results. If the filename is defined, the file will be automatically saved |
output_format |
string | 'votable' |
results format. Options are: 'votable': str, binary VOTable format 'csv': str, comma-separated values format |
cache |
bool | True |
optional, default 'True' Flag to save the results in the local cache |
async_job |
bool, optional, default 'False' | False |
executes the query (job) in asynchronous/synchronous mode (default synchronous) |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
Returns
astropy.table.Table with the result of the cone_search —
To execute a cone search defined by a coordinate (an
ESAHubble.cone_search_criteria(radius, *, target=None, coordinates=None, calibration_level=None, data_product_type=None, intent=None, obs_collection=None, instrument_name=None, filters=None, proposal=None, async_job=True, filename=None, output_format='votable', save=False, cache=True, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="cone_search_criteria",
params={"radius": "<radius>"},
)astropy.coordinate element or a target name which is resolved), a radius and a set of criteria to filter the results. This function comprises the outputs of query_target, cone_search and query_criteria methods.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
radius (required)
|
float or quantity | radius in arcmin (int, float) or quantity of the cone_search | |
target |
str, mandatory if no coordinates is provided | None |
name of the target, that will act as center in the cone search |
coordinates |
astropy.coordinate, mandatory if no target is provided | None |
coordinates of the center in the cone search |
calibration_level |
str or int | None |
The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0) |
data_product_type |
str | None |
High level description of the product. image, spectrum or timeseries. |
intent |
str | None |
The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATION |
obs_collection |
None |
||
instrument_name |
list of str | None |
Name(s) of the instrument(s) used to generate the dataset |
filters |
list of str | None |
Name(s) of the filter(s) used to generate the dataset |
proposal |
int | None |
Proposal ID associated to the observations |
async_job |
bool, optional, default 'False' | True |
executes the query (job) in asynchronous/synchronous mode (default synchronous) |
filename |
str, default None | None |
Path and name of the file to store the results. If the filename is defined, the file will be automatically saved |
output_format |
string | 'votable' |
results format. Options are: 'votable': str, binary VOTable format 'csv': str, comma-separated values format |
save |
bool | False |
optional, default 'False' Flag to save the result in a file. If the filename is not defined, it will use a formatted name to save the file |
cache |
bool | True |
optional, default 'True' Flag to save the results in the local cache |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
Returns
astropy.table.Table with the result of the cone_search —
Download a file from eHST based on its filename.
ESAHubble.download_file(file, *, filename=None, folder=None, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_file",
params={"file": "<file>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
file (required)
|
string | file name of the artifact to be downloaded | |
filename |
string | None |
file name to be used to store the file, optional, default None |
folder |
string | None |
optional, default current path Local folder to store the file |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
Returns
None. The file is associated —
Download artifacts from EHST. Artifact is a single Hubble product file.
ESAHubble.download_files_from_program(program, *, folder=None, calibration_level=None, data_product_type=None, intent=None, obs_collection=None, instrument_name=None, filters=None, only_fits=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_files_from_program",
params={"program": "<program>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
program (required)
|
int | Program or Proposal ID associated to the observations | |
folder |
string | None |
optional, default current path Local folder to store the file |
calibration_level |
str or int | None |
The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0) |
data_product_type |
str | None |
High level description of the product. image, spectrum or timeseries. |
intent |
str | None |
The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATION |
obs_collection |
list of str | None |
List of collections that are available in eHST catalogue. HLA, HST, HAP |
instrument_name |
str or list of str | None |
Name(s) of the instrument(s) used to generate the dataset |
filters |
list of str | None |
Name(s) of the filter(s) used to generate the dataset |
only_fits |
bool | False |
optional, default 'False' flag to download only FITS files |
Returns
None. It downloads the artifact indicated —
Retrieves all the FITS files associated to an observation
ESAHubble.download_fits_files(observation_id, *, folder=None, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_fits_files",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
string or list of strings | 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. | |
folder |
string | None |
optional, default current path Local folder to store the file |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
Returns
None. The file is associated —
Download products from EHST based on their observation ID and the
ESAHubble.download_product(observation_id, *, calibration_level=None, filename=None, folder=None, verbose=False, product_type=None)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_product",
params={"observation_id": "<observation_id>"},
)calibration level or the product type.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
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 | None |
calibration level, optional 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 | None |
File name to be used to store the artifact, optional, default None |
folder |
string | None |
optional, default current folder Local folder to store the file |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
product_type |
string | None |
type of product retrieval, optional SCIENCE, PREVIEW, THUMBNAIL or AUXILIARY ------------ Deprecation Warning: PRODUCT, SCIENCE_PRODUCT or POSTCARD are no longer supported. ------------ |
Returns
None. It downloads the observation indicated —
Download artifacts from EHST. Artifact is a single Hubble product file.
ESAHubble.get_artifact(artifact_id, *, filename=None, folder=None, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_artifact",
params={"artifact_id": "<artifact_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
artifact_id (required)
|
string | filename to be downloaded, mandatory The identifier of the physical product (file) we want to retrieve. | |
filename |
string | None |
file name to be used to store the artifact, optional, default None File name for the artifact |
folder |
string | None |
optional, default current path Local folder to store the file |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
Returns
None. It downloads the artifact indicated —
Retrieves all the files associated to an observation
ESAHubble.get_associated_files(observation_id, *, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_associated_files",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
string or list of strings | id(s) of the observation(s) to be downloaded, mandatory The identifier of the observation we want to retrieve, regardless of whether it is simple or composite. | |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
Returns
None. The file is associated —
Get the available columns for a table in EHST TAP service
ESAHubble.get_columns(table_name, *, only_names=True, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_columns",
params={"table_name": "<table_name>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
table_name (required)
|
string, mandatory, default None | table name of which, columns will be returned | |
only_names |
bool, TAP+ only, optional, default 'False' | True |
True to load table names only |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
Returns
A list of columns —
Get the available columns for a table in EHST TAP service
ESAHubble.get_datalabs_path(filename, default_volume=None)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_datalabs_path",
params={"filename": "<filename>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
filename (required)
|
string, mandatory, default None | file name to search for its full path | |
default_volume |
string, optional, default None | None |
Default folder name in datalabs. If None, it is filled automatically |
Returns
The complete path of the file name in Datalabs —
Returns the related members of hap and hst observations
ESAHubble.get_hap_hst_link(observation_id)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_hap_hst_link",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
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. |
Returns
A list of strings with the observation_id of the associated —
Returns the related members of simple and composite observations
ESAHubble.get_member_observations(observation_id)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_member_observations",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
str | Observation identifier. |
Returns
A list of strings with the observation_id of the associated —
Returns the type of an observation
ESAHubble.get_observation_type(observation_id)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_observation_type",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
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. |
Returns
String with the observation type —
Retrieves all the observations associated to a program/proposal ID
ESAHubble.get_observations_from_program(program, *, output_file=None, output_format='votable', verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_observations_from_program",
params={"program": "<program>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
program (required)
|
int | Program or Proposal ID associated to the observations | |
output_file |
string | None |
optional, default None file name to be used to store the result |
output_format |
string | 'votable' |
results format. Options are: 'votable': str, binary VOTable format 'csv': str, comma-separated values format |
verbose |
bool | False |
optional, default 'False' flag to display information about the process |
Returns
A table object —
Download postcards from EHST
ESAHubble.get_postcard(observation_id, *, calibration_level='RAW', resolution=256, filename=None, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_postcard",
params={"observation_id": "<observation_id>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
observation_id (required)
|
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 | 'RAW' |
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 | 256 |
postcard resolution, optional, default 256 Resolution of the retrieved postcard. 256 or 1024 |
filename |
string | None |
file name to be used to store the postcard, optional, default None File name for the artifact |
verbose |
bool | False |
optional, default 'False' Flag to display information about the process |
Returns
None. It downloads the observation postcard indicated —
Retrieve the messages to inform users about
ESAHubble.get_status_messages()Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_status_messages",
params={},
)the status of eHST TAP
Parameters
No parameters.
Get the available table in EHST TAP service
ESAHubble.get_tables(*, only_names=True, verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_tables",
params={},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
only_names |
bool, TAP+ only, optional, default 'False' | True |
True to load table names only |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
Returns
A list of tables —
Launches a synchronous or asynchronous job to query the HST tap
ESAHubble.query_criteria(*, calibration_level=None, data_product_type=None, intent=None, obs_collection=None, instrument_name=None, filters=None, proposal=None, async_job=True, output_file=None, output_format='votable', verbose=False, get_query=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_criteria",
params={},
)using calibration level, data product type, intent, collection, instrument name, and filters as criteria to create and execute the associated query.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
calibration_level |
str or int | None |
The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0) |
data_product_type |
str | None |
High level description of the product. image, spectrum or timeseries. |
intent |
str | None |
The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATION |
obs_collection |
list of str | None |
List of collections that are available in eHST catalogue. HLA, HST, HAP |
instrument_name |
str or list of str | None |
Name(s) of the instrument(s) used to generate the dataset |
filters |
list of str | None |
Name(s) of the filter(s) used to generate the dataset |
proposal |
int | None |
Proposal ID associated to the observations |
async_job |
bool, optional, default 'True' | True |
executes the query (job) in asynchronous/synchronous mode (default synchronous) |
output_file |
str, optional, default None | 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' | 'votable' |
results format |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
get_query |
bool, optional, default 'False' | False |
flag to return the query associated to the criteria as the result of this function. |
Returns
A table object —
No description in upstream docstring.
ESAHubble.query_metadata(*, output_format='votable', verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_metadata",
params={},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
output_format |
'votable' |
||
verbose |
False |
Launches a synchronous or asynchronous job to query the HST tap
ESAHubble.query_tap(query, *, async_job=False, output_file=None, output_format='votable', verbose=False)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_tap",
params={"query": "<query>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query (required)
|
str, mandatory | query (adql) to be executed | |
async_job |
bool, optional, default 'False' | False |
executes the query (job) in asynchronous/synchronous mode (default synchronous) |
output_file |
str, optional, default None | 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' | 'votable' |
results format |
verbose |
bool, optional, default 'False' | False |
flag to display information about the process |
Returns
A table object —
It executes a query over EHST and download the xml with the results.
ESAHubble.query_target(name, *, filename=None, output_format='votable', verbose=False, async_job=False, radius=7)Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_target",
params={"name": "<name>"},
)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
name (required)
|
string | target name to be requested, mandatory | |
filename |
string | None |
file name to be used to store the metadata, optional, default None |
output_format |
string | 'votable' |
optional, default 'votable' output format of the query |
verbose |
bool | False |
optional, default 'False' Flag to display information about the process |
async_job |
bool, optional, default 'False' | False |
executes the query (job) in asynchronous/synchronous mode (default synchronous) |
radius |
int | 7 |
optional, default 7 radius in arcmin (int, float) or quantity of the cone_search |
Returns
Table with the result of the query. It downloads metadata as a file. —
Resets the cache location to the default astropy cache
ESAHubble.reset_cache_location()Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="reset_cache_location",
params={},
)Parameters
No parameters.
Auto-generated from source docstrings on each release. Do not edit here — changes are overwritten.