SvoFpsClass¶
- class astroquery.svo_fps.SvoFpsClass[source]¶
Bases:
BaseQuery
Class for querying the Spanish Virtual Observatory filter profile service
Attributes Summary
Methods Summary
data_from_svo
(query[, cache, timeout, error_msg])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
, andget_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. List of search parameters can be found at http://svo2.cab.inta-csic.es/theory/fps/fps.php?FORMAT=metadata
- 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
Cache the results? Defaults to True
- Returns:
- astropy.table.table.Table object
Table containing data fetched from SVO (in response to query)
- get_filter_index(wavelength_eff_min=<Quantity 0. Angstrom>, wavelength_eff_max=<Quantity 1.79769313e+308 Angstrom>, **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_min
Quantity
having units of angstrom, optional Minimum value of Wavelength Effective (default is 0 angstrom)
- wavelength_eff_max
Quantity
having units of angstrom, optional Maximum value of Wavelength Effective (default is a very large quantity FLOAT_MAX angstroms i.e. maximum value of np.float64)
- kwargsdict
Passed to
data_from_svo
. Relevant arguments includecache
- wavelength_eff_min
- 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 includecache
- 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
andget_filter_index
as thefilterID
column.- kwargsdict
Passed to
data_from_svo
. Relevant arguments includecache
- Returns:
- astropy.table.table.Table object
Table containing data fetched from SVO (in response to query)