astroquery/xmatch/core.py
def _prepare_area(self, payload, area):
        '''Set the area parameter in the payload'''
        if area is None or area == 'allsky':
            payload['area'] = 'allsky'
        elif isinstance(area, CircleSkyRegion):
            payload['area'] = 'cone'
            cone_center = area.center
            payload['coneRA'] = cone_center.icrs.ra.deg
            payload['coneDec'] = cone_center.icrs.dec.deg
            payload['coneRadiusDeg'] = area.radius.to_value(u.deg)
        else:
            raise ValueError('Unsupported area {}'.format(str(area)))
Set the area parameter in the payload
Set the area parameter in the payload
Set the area parameter in the payload
def _prepare_area(self, payload, area):
        if area is None or area == 'allsky':
            payload['area'] = 'allsky'
        elif isinstance(area, CircleSkyRegion):
            payload['area'] = 'cone'
            cone_center = area.center
            payload['coneRA'] = cone_center.icrs.ra.deg
            payload['coneDec'] = cone_center.icrs.dec.deg
            payload['coneRadiusDeg'] = area.radius.to_value(u.deg)
        else:
            raise ValueError('Unsupported area {}'.format(str(area)))
def _prepare_area ( self , payload , area ) : if area is None or area == 'allsky' : payload [ 'area' ] = 'allsky' elif isinstance ( area , CircleSkyRegion ) : payload [ 'area' ] = 'cone' cone_center = area . center payload [ 'coneRA' ] = cone_center . icrs . ra . deg payload [ 'coneDec' ] = cone_center . icrs . dec . deg payload [ 'coneRadiusDeg' ] = area . radius . to_value ( u . deg ) else : raise ValueError ( 'Unsupported area {}' . format ( str ( area ) ) )
Set the area parameter in the payload
Set the area parameter in the payload
'''Set the area parameter in the payload'''
self
payload
area