ESA Hubble
ESA Hubble Space Telescope archive (eHST).
Module name:
esa_hubblePython class:
astroquery.esa.hubble.ESAHubbleFunctions: 23
Call any function below with the astroquery_execute MCP tool. Descriptions are taken from the upstream astroquery/astropy docstrings.
Function |
Summary |
|---|---|
Removes all cache files. |
|
To execute a cone search defined by a coordinate and a radius |
|
To execute a cone search defined by a coordinate (an |
|
Download a file from eHST based on its filename. |
|
Download artifacts from EHST. Artifact is a single Hubble product file. |
|
Retrieves all the FITS files associated to an observation |
|
Download products from EHST based on their observation ID and the |
|
Download artifacts from EHST. Artifact is a single Hubble product file. |
|
Retrieves all the files associated to an observation |
|
Get the available columns for a table in EHST TAP service |
|
Get the available columns for a table in EHST TAP service |
|
Returns the related members of hap and hst observations |
|
Returns the related members of simple and composite observations |
|
Returns the type of an observation |
|
Retrieves all the observations associated to a program/proposal ID |
|
Download postcards from EHST |
|
Retrieve the messages to inform users about |
|
Get the available table in EHST TAP service |
|
Launches a synchronous or asynchronous job to query the HST tap |
|
ESAHubble.query_metadata |
|
Launches a synchronous or asynchronous job to query the HST tap |
|
It executes a query over EHST and download the xml with the results. |
|
Resets the cache location to the default astropy cache |
Functions
clear_cache
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="clear_cache",
params={},
)
- ESAHubbleClass.clear_cache()
Removes all cache files.
cone_search
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="cone_search",
params={"coordinates": "<coordinates>", "radius": "<radius>"},
)
- ESAHubbleClass.cone_search(coordinates, radius, *, filename=None, output_format='votable', cache=True, async_job=False, verbose=False)
To execute a cone search defined by a coordinate and a radius
- Parameters:
coordinates (
astropy.coordinate,mandatory) – coordinates of the center in the cone searchradius (
floatorquantity) – radius in arcmin (int, float) or quantity of the cone_searchfilename (
str, defaultNone) – Path and name of the file to store the results. If the filename is defined, the file will be automatically savedoutput_format (
string) – results format. Options are: ‘votable’: str, binary VOTable format ‘csv’: str, comma-separated values formatasync_job (
bool, optional, default'False') – executes the query (job) in asynchronous/synchronous mode (default synchronous)cache (
bool) – optional, default ‘True’ Flag to save the results in the local cacheverbose (
bool, optional, default'False') – flag to display information about the process
- Return type:
astropy.table.Table with the resultofthe cone_search
cone_search_criteria
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="cone_search_criteria",
params={"radius": "<radius>"},
)
- ESAHubbleClass.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)
To execute a cone search defined by a coordinate (an 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:
radius (
floatorquantity) – radius in arcmin (int, float) or quantity of the cone_searchtarget (
str,mandatory if no coordinates is provided) – name of the target, that will act as center in the cone searchcoordinates (
astropy.coordinate,mandatory if no target is provided) – coordinates of the center in the cone searchcalibration_level (
strorint, optional) – The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0)data_product_type (
str, optional) – High level description of the product. image, spectrum or timeseries.intent (
str, optional) – The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATIONcollection (
listofstr, optional) – List of collections that are available in eHST catalogue. HLA, HSTinstrument_name (
listofstr, optional) – Name(s) of the instrument(s) used to generate the datasetfilters (
listofstr, optional) – Name(s) of the filter(s) used to generate the datasetproposal (
int, optional) – Proposal ID associated to the observationsasync_job (
bool, optional, default'False') – executes the query (job) in asynchronous/synchronous mode (default synchronous)filename (
str, defaultNone) – Path and name of the file to store the results. If the filename is defined, the file will be automatically savedoutput_format (
string) – results format. Options are: ‘votable’: str, binary VOTable format ‘csv’: str, comma-separated values formatsave (
bool) – 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 filecache (
bool) – optional, default ‘True’ Flag to save the results in the local cacheverbose (
bool, optional, default'False') – flag to display information about the process
- Return type:
astropy.table.Table with the resultofthe cone_search
download_file
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_file",
params={"file": "<file>"},
)
- ESAHubbleClass.download_file(file, *, filename=None, folder=None, verbose=False)
Download a file from eHST based on its filename.
- Parameters:
file (
string) – file name of the artifact to be downloadedfilename (
string) – file name to be used to store the file, optional, default Nonefolder (
string) – optional, default current path Local folder to store the fileverbose (
bool) – optional, default ‘False’ flag to display information about the process
- Return type:
None. The file is associated
download_files_from_program
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_files_from_program",
params={"program": "<program>"},
)
- ESAHubbleClass.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)
Download artifacts from EHST. Artifact is a single Hubble product file.
- Parameters:
program (
int) – Program or Proposal ID associated to the observationsfolder (
string) – optional, default current path Local folder to store the filecalibration_level (
strorint, optional) – The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0)data_product_type (
str, optional) – High level description of the product. image, spectrum or timeseries.intent (
str, optional) – The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATIONobs_collection (
listofstr, optional) – List of collections that are available in eHST catalogue. HLA, HST, HAPinstrument_name (
strorlistofstr, optional) – Name(s) of the instrument(s) used to generate the datasetfilters (
listofstr, optional) – Name(s) of the filter(s) used to generate the datasetonly_fits (
bool) – optional, default ‘False’ flag to download only FITS files
- Return type:
None. It downloads the artifact indicated
download_fits_files
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_fits_files",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.download_fits_files(observation_id, *, folder=None, verbose=False)
Retrieves all the FITS files associated to an observation
- Parameters:
observation_id (
stringorlistofstrings) – 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) – optional, default current path Local folder to store the fileverbose (
bool) – optional, default ‘False’ flag to display information about the process
- Return type:
None. The file is associated
download_product
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="download_product",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.download_product(observation_id, *, calibration_level=None, filename=None, folder=None, verbose=False, product_type=None)
Download products from EHST based on their observation ID and the calibration level or the product type.
- 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 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 AUXILIARYfilename (
string) – File name to be used to store the artifact, optional, default Nonefolder (
string) – optional, default current folder Local folder to store the fileverbose (
bool) – optional, default ‘False’ flag to display information about the processproduct_type (
string) – type of product retrieval, optional SCIENCE, PREVIEW, THUMBNAIL or AUXILIARY ———— Deprecation Warning: PRODUCT, SCIENCE_PRODUCT or POSTCARD are no longer supported. ————
- Return type:
None. It downloads the observation indicated
get_artifact
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_artifact",
params={"artifact_id": "<artifact_id>"},
)
- ESAHubbleClass.get_artifact(artifact_id, *, filename=None, folder=None, verbose=False)
Download artifacts from EHST. Artifact is a single Hubble product file.
- Parameters:
artifact_id (
string) – filename 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 artifactfolder (
string) – optional, default current path Local folder to store the fileverbose (
bool) – optional, default ‘False’ flag to display information about the process
- Return type:
None. It downloads the artifact indicated
get_associated_files
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_associated_files",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.get_associated_files(observation_id, *, verbose=False)
Retrieves all the files associated to an observation
- Parameters:
- Return type:
None. The file is associated
get_columns
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_columns",
params={"table_name": "<table_name>"},
)
- ESAHubbleClass.get_columns(table_name, *, only_names=True, verbose=False)
Get the available columns for a table in EHST TAP service
- Parameters:
- Return type:
A listofcolumns
get_datalabs_path
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_datalabs_path",
params={"filename": "<filename>"},
)
- ESAHubbleClass.get_datalabs_path(filename, default_volume=None)
Get the available columns for a table in EHST TAP service
get_hap_hst_link
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_hap_hst_link",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.get_hap_hst_link(observation_id)
Returns the related members of hap and hst observations
- 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.- Returns:
A listofstrings with the observation_idofthe associatedobservations
get_member_observations
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_member_observations",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.get_member_observations(observation_id)
Returns the related members of simple and composite observations
- Parameters:
observation_id (
str) – Observation identifier.- Returns:
A listofstrings with the observation_idofthe associatedobservations
get_observation_type
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_observation_type",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.get_observation_type(observation_id)
Returns the type of an observation
- 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.- Return type:
String with the observation type
get_observations_from_program
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_observations_from_program",
params={"program": "<program>"},
)
- ESAHubbleClass.get_observations_from_program(program, *, output_file=None, output_format='votable', verbose=False)
Retrieves all the observations associated to a program/proposal ID
- Parameters:
program (
int) – Program or Proposal ID associated to the observationsoutput_file (
string) – optional, default None file name to be used to store the resultoutput_format (
string) – results format. Options are: ‘votable’: str, binary VOTable format ‘csv’: str, comma-separated values formatverbose (
bool) – optional, default ‘False’ flag to display information about the process
- Return type:
A table object
get_postcard
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_postcard",
params={"observation_id": "<observation_id>"},
)
- ESAHubbleClass.get_postcard(observation_id, *, calibration_level='RAW', resolution=256, filename=None, verbose=False)
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 AUXILIARYresolution (
integer) – postcard resolution, optional, default 256 Resolution of the retrieved postcard. 256 or 1024filename (
string) – file name to be used to store the postcard, optional, default None File name for the artifactverbose (
bool) – optional, default ‘False’ Flag to display information about the process
- Return type:
None. It downloads the observation postcard indicated
get_status_messages
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_status_messages",
params={},
)
- ESAHubbleClass.get_status_messages()
Retrieve the messages to inform users about the status of eHST TAP
get_tables
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="get_tables",
params={},
)
- ESAHubbleClass.get_tables(*, only_names=True, verbose=False)
Get the available table in EHST TAP service
query_criteria
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_criteria",
params={},
)
- ESAHubbleClass.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)
Launches a synchronous or asynchronous job to query the HST tap using calibration level, data product type, intent, collection, instrument name, and filters as criteria to create and execute the associated query.
- Parameters:
calibration_level (
strorint, optional) – The identifier of the data reduction/processing applied to the data. RAW (1), CALIBRATED (2), PRODUCT (3) or AUXILIARY (0)data_product_type (
str, optional) – High level description of the product. image, spectrum or timeseries.intent (
str, optional) – The intent of the original observer in acquiring this observation. SCIENCE or CALIBRATIONobs_collection (
listofstr, optional) – List of collections that are available in eHST catalogue. HLA, HST, HAPinstrument_name (
strorlistofstr, optional) – Name(s) of the instrument(s) used to generate the datasetfilters (
listofstr, optional) – Name(s) of the filter(s) used to generate the datasetproposal (
int, optional) – Proposal ID associated to the observationsasync_job (
bool, optional, default'True') – executes the query (job) in asynchronous/synchronous mode (default synchronous)output_file (
str, optional, defaultNone) – file name where the results are saved if dumpToFile is True. If this parameter is not provided, the jobid is used insteadoutput_format (
str, optional, default'votable') – results formatverbose (
bool, optional, default'False') – flag to display information about the processget_query (
bool, optional, default'False') – flag to return the query associated to the criteria as the result of this function.
- Return type:
A table object
query_metadata
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_metadata",
params={},
)
- ESAHubbleClass.query_metadata(*, output_format='votable', verbose=False)
query_tap
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_tap",
params={"query": "<query>"},
)
- ESAHubbleClass.query_tap(query, *, async_job=False, output_file=None, output_format='votable', verbose=False)
Launches a synchronous or asynchronous job to query the HST tap
- Parameters:
query (
str,mandatory) – query (adql) to be executedasync_job (
bool, optional, default'False') – executes the query (job) in asynchronous/synchronous mode (default synchronous)output_file (
str, optional, defaultNone) – file name where the results are saved if dumpToFile is True. If this parameter is not provided, the jobid is used insteadoutput_format (
str, optional, default'votable') – results formatverbose (
bool, optional, default'False') – flag to display information about the process
- Return type:
A table object
query_target
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="query_target",
params={"name": "<name>"},
)
- ESAHubbleClass.query_target(name, *, filename=None, output_format='votable', verbose=False, async_job=False, radius=7)
It executes a query over EHST and download the xml with the results.
- Parameters:
name (
string) – target name to be requested, mandatoryfilename (
string) – file name to be used to store the metadata, optional, default Noneoutput_format (
string) – optional, default ‘votable’ output format of the queryverbose (
bool) – optional, default ‘False’ Flag to display information about the processasync_job (
bool, optional, default'False') – executes the query (job) in asynchronous/synchronous mode (default synchronous)radius (
int) – optional, default 7 radius in arcmin (int, float) or quantity of the cone_search
- Return type:
Table with the resultofthe query. It downloads metadata as a file.
reset_cache_location
Call via MCP
astroquery_execute(
module_name="esa_hubble",
function_name="reset_cache_location",
params={},
)
- ESAHubbleClass.reset_cache_location()
Resets the cache location to the default astropy cache