SvoFpsClass

class astroquery.svo_fps.SvoFpsClass[source]

Bases: BaseQuery

Class for querying the Spanish Virtual Observatory filter profile service

Attributes Summary

SVO_MAIN_URL

TIMEOUT

Methods Summary

data_from_svo(query, *[, cache, timeout, ...])

Get data in response to the query send to SVO FPS.

get_filter_index(wavelength_eff_min, ...)

Get master list (index) of all filters at SVO Optional parameters can be given to get filters data for specified Wavelength Effective range from SVO

get_filter_list(facility, *[, instrument])

Get filters data for requested facilty and instrument from SVO

get_transmission_data(filter_id, **kwargs)

Get transmission data for the requested Filter ID from SVO

Attributes Documentation

SVO_MAIN_URL = 'http://svo2.cab.inta-csic.es/theory/fps/fps.php'
TIMEOUT = 60

Methods Documentation

data_from_svo(query, *, cache=True, timeout=None, error_msg='No data found for requested query')[source]

Get data in response to the query send to SVO FPS. This method is not generally intended for users, but it can be helpful if you want something very specific from the SVO FPS service. If you don’t know what you’re doing, try get_filter_index, get_filter_list, and get_transmission_data instead.

Parameters:
querydict

Used to create a HTTP query string i.e. send to SVO FPS to get data. In dictionary, specify keys as search parameters (str) and values as required. Description of search parameters can be found at http://svo2.cab.inta-csic.es/theory/fps/index.php?mode=voservice

error_msgstr, optional

Error message to be shown in case no table element found in the responded VOTable. Use this to make error message verbose in context of the query made (default is ‘No data found for requested query’)

cachebool

Defaults to True. If set overrides global caching behavior. See caching documentation.

Returns:
astropy.table.table.Table object

Table containing data fetched from SVO (in response to query)

get_filter_index(wavelength_eff_min, wavelength_eff_max, **kwargs)[source]

Get master list (index) of all filters at SVO Optional parameters can be given to get filters data for specified Wavelength Effective range from SVO

Parameters:
wavelength_eff_minQuantity with units of length

Minimum value of Wavelength Effective

wavelength_eff_maxQuantity with units of length

Maximum value of Wavelength Effective

kwargsdict

Passed to data_from_svo. Relevant arguments include cache

Returns:
astropy.table.table.Table object

Table containing data fetched from SVO (in response to query)

get_filter_list(facility, *, instrument=None, **kwargs)[source]

Get filters data for requested facilty and instrument from SVO

Parameters:
facilitystr

Facilty for filters

instrumentstr, optional

Instrument for filters (default is None). Leave empty if there are no instruments for specified facilty

kwargsdict

Passed to data_from_svo. Relevant arguments include cache

Returns:
astropy.table.table.Table object

Table containing data fetched from SVO (in response to query)

get_transmission_data(filter_id, **kwargs)[source]

Get transmission data for the requested Filter ID from SVO

Parameters:
filter_idstr

Filter ID in the format SVO specifies it: ‘facilty/instrument.filter’. This is returned by get_filter_list and get_filter_index as the filterID column.

kwargsdict

Passed to data_from_svo. Relevant arguments include cache

Returns:
astropy.table.table.Table object

Table containing data fetched from SVO (in response to query)