SLAService¶
-
class
pyvo.dal.sla.
SLAService
(baseurl)[source]¶ Bases:
pyvo.dal.query.DALService
a representation of an spectral line catalog (SLA) service
instantiate an SLA service
Parameters: baseurl : str
the base URL for submitting search queries to the service.
Methods Summary
create_query
([wavelength, request])create a query object that constraints can be added to and then search
(wavelength, \*\*keywords)submit a simple SLA query to this service with the given constraints. Methods Documentation
-
create_query
(wavelength=None, request='queryData', **keywords)[source]¶ create a query object that constraints can be added to and then executed. The input arguments will initialize the query with the given values.
Parameters: wavelength :
Quantity
class or sequence of two floatsthe bandwidth range the observations belong to. assuming meters if unit is not specified.
**keywords :
additional parameters can be given via arbitrary case insensitive keyword arguments. Where there is overlap with the parameters set by the other arguments to this function, these keywords will override.
Returns: SLAQuery
the query instance
See also
-
search
(wavelength, **keywords)[source]¶ submit a simple SLA query to this service with the given constraints.
This method is provided for a simple but typical SLA queries. For more complex queries, one should create an SLAQuery object via create_query()
Parameters: wavelength :
Quantity
class or sequence of two floatsthe bandwidth range the observations belong to. assuming meters if unit is not specified.
**keywords :
additional parameters can be given via arbitrary case insensitive keyword arguments. Where there is overlap with the parameters set by the other arguments to this function, these keywords will override.
Returns: SLAResults
a container holding a table of matching spectral lines
Raises: DALServiceError
for errors connecting to or communicating with the service
DALQueryError
if the service responds with an error, including a query syntax error.
-