Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
submit a simple SLA query that requests spectral lines within a 
wavelength range

Parameters
----------
url : str
   the base URL for the SLA service
wavelength : 2 element sequence of floats
   a 2-element sequence giving the wavelength spectral range to search 
   in meters(more...)

        def search(url, wavelength, **keywords):
    """
    submit a simple SLA query that requests spectral lines within a 
    wavelength range

    Parameters
    ----------
    url : str
       the base URL for the SLA service
    wavelength : 2 element sequence of floats
       a 2-element sequence giving the wavelength spectral range to search 
       in meters
    **keywords 
       additional parameters can be given via arbitrary 
       keyword arguments.  These can be either standard 
       parameters (with names drown from the 
       ``SSAQuery.std_parameters`` list) or paramters
       custom to the service.  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.
    """
    service = SLAService(url)
    return service.search(wavelength, **keywords)
        


src/p/y/pyvo-0.0beta2/pyvo/__init__.py   pyvo(Download)
 
from .registry import search as regsearch
from .dal import imagesearch, spectrumsearch, conesearch, linesearch
from .dal import DALAccessError, DALProtocolError, DALFormatError,   \
                 DALServiceError, DALQueryError

src/p/y/pyvo-HEAD/pyvo/__init__.py   pyvo(Download)
 
from .registry import search as regsearch
from .dal import imagesearch, spectrumsearch, conesearch, linesearch
from .dal import DALAccessError, DALProtocolError, DALFormatError,   \
                 DALServiceError, DALQueryError