SLAService¶
-
class
pyvo.dal.sla.
SLAService
(baseurl, resmeta=None, version='1.0')[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.
resmeta : dict
an optional dictionary of properties about the service
Methods Summary
create_query
([wavelength, format])create a query object that constraints can be added to and then search
(wavelength[, format])submit a simple SLA query to this service with the given constraints. Methods Documentation
-
create_query
(wavelength=None, format=None)[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 : 2-element sequence of floats
a 2-element tuple giving the wavelength spectral range to search in meters
format : str
the spectral format(s) of interest. “metadata” indicates that no spectra should be returned–only an empty table with complete metadata.
Returns: SLAQuery
the query instance
See also
-
search
(wavelength, format=None, **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 : 2-element sequence of floats
a 2-element sequence giving the wavelength spectral range to search in meters
format : str
the spectral format(s) of interest. “metadata” indicates that no spectra should be returned–only an empty table with complete metadata.
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.
-