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 SSA query that requests spectra overlapping a 

Parameters
----------
url : str
   the base URL for the SSA service
pos : 2-element sequence of floats
   a 2-element seqence giving the ICRS RA and DEC in decimal degrees
size : float
   a floating point number giving the diameter of the circular region(more...)

        def search(url, pos, size, format='all', **keywords):
    """
    submit a simple SSA query that requests spectra overlapping a 

    Parameters
    ----------
    url : str
       the base URL for the SSA service
    pos : 2-element sequence of floats
       a 2-element seqence giving the ICRS RA and DEC in decimal degrees
    size : float
       a floating point number giving the diameter of the circular region
       in decimal degrees around pos in which to search for spectra.  
    format : str
       the spectral format(s) of interest.  "all" (default) 
       indicates all available formats; "graphic" indicates
       graphical images (e.g. jpeg, png, gif; not FITS); 
       "metadata" indicates that no images should be 
       returned--only an empty table with complete metadata.
    **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
    -------
    SSAResults
        a container holding a table of matching spectrum records 

    Raises
    ------
    DALServiceError
       for errors connecting to or communicating with the service
    DALQueryError
       if the service responds with an error, including a query syntax error.  

    See Also
    --------
    SSAResults
    pyvo.dal.query.DALServiceError
    pyvo.dal.query.DALQueryError
    """
    service = SSAService(url)
    return service.search(pos, size, format, **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