astroquery/mast/missions.py
def query_region_async(self, coordinates, *, radius=3*u.arcmin, limit=5000, offset=0, **kwargs):
        """
        Given a sky position and radius, returns a list of matching dataset IDs.

        Parameters
        ----------
        coordinates : str or `~astropy.coordinates` object
            The target around which to search. It may be specified as a
            string or as the appropriate `~astropy.coordinates` object.
        radius : str or `~astropy.units.Quantity` object, optional
            Default 3 degrees.
            The string must be parsable by `~astropy.coordinates.Angle`. The
            appropriate `~astropy.units.Quantity` object from
            `~astropy.units` may also be used. Defaults to 3 arcminutes.
        limit : int
            Optional and default is 5000.
            the maximun number of dataset IDs in the results.
        offset : int
            Optional and default is 0
            the number of records you wish to skip before selecting records.
        **kwargs
            Other mission-specific keyword args.
            Any invalid keys are ignored by the API.
            All valid key names can be found using `~astroquery.mast.missions.MastMissionsClass.get_column_list`
            function.
            For example one can specify the output columns(select_cols) or use other filters(conditions)

        Returns
        -------
        response : list of `~requests.Response`
        """

        self.limit = limit

        # Put coordinates and radius into consistant format
        coordinates = commons.parse_coordinates(coordinates)

        # if radius is just a number we assume degrees
        radius = coord.Angle(radius, u.arcmin)

        # basic params
        params = {'target': [f"{coordinates.ra.deg} {coordinates.dec.deg}"],
                  'radius': radius.arcmin,
                  'radius_units': 'arcminutes',
                  'limit': limit,
                  'offset': offset}

        params['conditions'] = []
        # adding additional user specified parameters
        for prop, value in kwargs.items():
            if prop not in self._search_option_fields:
                params['conditions'].append({prop: value})
            else:
                params[prop] = value

        return self._service_api_connection.service_request_async(self.service, params, use_json=True)

        Given a sky position and radius, returns a list of matching dataset IDs.

        Parameters
        ----------
        coordinates : str or `~astropy.coordinates` object
            The target around which to search. It may be specified as a
            string or as the appropriate `~astropy.coordinates` object.
        radius : str or `~astropy.units.Quantity` object, optional
            Default 3 degrees.
            The string must be parsable by `~astropy.coordinates.Angle`. The
            appropriate `~astropy.units.Quantity` object from
            `~astropy.units` may also be used. Defaults to 3 arcminutes.
        limit : int
            Optional and default is 5000.
            the maximun number of dataset IDs in the results.
        offset : int
            Optional and default is 0
            the number of records you wish to skip before selecting records.
        **kwargs
            Other mission-specific keyword args.
            Any invalid keys are ignored by the API.
            All valid key names can be found using `~astroquery.mast.missions.MastMissionsClass.get_column_list`
            function.
            For example one can specify the output columns(select_cols) or use other filters(conditions)

        Returns
        -------
        response : list of `~requests.Response`
        
Given a sky position and radius, returns a list of matching dataset IDs.
Parameters

coordinates : str or `~astropy.coordinates` object
The target around which to search. It may be specified as a
string or as the appropriate `~astropy.coordinates` object.
radius : str or `~astropy.units.Quantity` object, optional
Default 3 degrees.
The string must be parsable by `~astropy.coordinates.Angle`. The
appropriate `~astropy.units.Quantity` object from
`~astropy.units` may also be used. Defaults to 3 arcminutes.
limit : int
Optional and default is 5000.
the maximun number of dataset IDs in the results.
offset : int
Optional and default is 0
the number of records you wish to skip before selecting records.
kwargs
Other mission-specific keyword args.
Any invalid keys are ignored by the API.
All valid key names can be found using `~astroquery.mast.missions.MastMissionsClass.get_column_list`
function.
For example one can specify the output columns(select_cols) or use other filters(conditions)

Returns

response : list of `~requests.Response`
Given a sky position and radius returns a list of matching dataset IDs . Parameters coordinates : str or ` ~astropy . coordinates ` object The target around which to search . It may be specified as a string or as the appropriate ` ~astropy . coordinates ` object . radius : str or ` ~astropy . units . Quantity ` object optional Default 3 degrees . The string must be parsable by ` ~astropy . coordinates . Angle ` . The appropriate ` ~astropy . units . Quantity ` object from ` ~astropy . units ` may also be used . Defaults to 3 arcminutes . limit : int Optional and default is 5000 . the maximun number of dataset IDs in the results . offset : int Optional and default is 0 the number of records you wish to skip before selecting records . kwargs Other mission - specific keyword args . Any invalid keys are ignored by the API . All valid key names can be found using ` ~astroquery . mast . missions . MastMissionsClass . get_column_list ` function . For example one can specify the output columns ( select_cols ) or use other filters ( conditions ) Returns response : list of ` ~requests . Response `
def query_region_async(self, coordinates, *, radius=3*u.arcmin, limit=5000, offset=0, **kwargs):
        self.limit = limit
        coordinates = commons.parse_coordinates(coordinates)
        radius = coord.Angle(radius, u.arcmin)
        params = {'target': [f"{coordinates.ra.deg} {coordinates.dec.deg}"],
                  'radius': radius.arcmin,
                  'radius_units': 'arcminutes',
                  'limit': limit,
                  'offset': offset}
        params['conditions'] = []
        for prop, value in kwargs.items():
            if prop not in self._search_option_fields:
                params['conditions'].append({prop: value})
            else:
                params[prop] = value
        return self._service_api_connection.service_request_async(self.service, params, use_json=True)
def query_region_async ( self , coordinates , * , radius = 3 * u . arcmin , limit = 5000 , offset = 0 , ** kwargs ) : self . limit = limit coordinates = commons . parse_coordinates ( coordinates ) radius = coord . Angle ( radius , u . arcmin ) params = { 'target' : [ f"{coordinates.ra.deg} {coordinates.dec.deg}" ] , 'radius' : radius . arcmin , 'radius_units' : 'arcminutes' , 'limit' : limit , 'offset' : offset } params [ 'conditions' ] = [ ] for prop , value in kwargs . items ( ) : if prop not in self . _search_option_fields : params [ 'conditions' ] . append ( { prop : value } ) else : params [ prop ] = value return self . _service_api_connection . service_request_async ( self . service , params , use_json = True )
Given a sky position and radius, returns a list of matching dataset IDs.
Given a sky position and radius returns a list of matching dataset IDs .
"""
        Given a sky position and radius, returns a list of matching dataset IDs.

        Parameters
        ----------
        coordinates : str or `~astropy.coordinates` object
            The target around which to search. It may be specified as a
            string or as the appropriate `~astropy.coordinates` object.
        radius : str or `~astropy.units.Quantity` object, optional
            Default 3 degrees.
            The string must be parsable by `~astropy.coordinates.Angle`. The
            appropriate `~astropy.units.Quantity` object from
            `~astropy.units` may also be used. Defaults to 3 arcminutes.
        limit : int
            Optional and default is 5000.
            the maximun number of dataset IDs in the results.
        offset : int
            Optional and default is 0
            the number of records you wish to skip before selecting records.
        **kwargs
            Other mission-specific keyword args.
            Any invalid keys are ignored by the API.
            All valid key names can be found using `~astroquery.mast.missions.MastMissionsClass.get_column_list`
            function.
            For example one can specify the output columns(select_cols) or use other filters(conditions)

        Returns
        -------
        response : list of `~requests.Response`
        """ # Put coordinates and radius into consistant format # if radius is just a number we assume degrees # basic params # adding additional user specified parameters
self
coordinates
radius
limit
offset