def get_fwhm(self, x, y, radius, data, medv=None, method_name='gaussian'):
        """Get the FWHM value of the object at the coordinates (x, y) using
        radius.
        """
        if medv is None:
            medv = get_median(data)

        # Get two cuts of the data, one in X and one in Y
        x0, y0, xarr, yarr = self.cut_cross(x, y, radius, data)

        # Calculate FWHM in each direction
        x_res = self.calc_fwhm(xarr, medv=medv, method_name=method_name)
        fwhm_x, cx = x_res.fwhm, x_res.mu

        y_res = self.calc_fwhm(yarr, medv=medv, method_name=method_name)
        fwhm_y, cy = y_res.fwhm, y_res.mu

        ctr_x = x0 + cx
        ctr_y = y0 + cy
        self.logger.debug("fwhm_x,fwhm_y=%f,%f center=%f,%f" % (
            fwhm_x, fwhm_y, ctr_x, ctr_y))
        return (fwhm_x, fwhm_y, ctr_x, ctr_y, x_res, y_res)
def get_fwhm ( self , x , y , radius , data , medv = None , method_name = 'gaussian' ) : if medv is None : medv = get_median ( data ) x0 , y0 , xarr , yarr = self . cut_cross ( x , y , radius , data ) x_res = self . calc_fwhm ( xarr , medv = medv , method_name = method_name ) fwhm_x , cx = x_res . fwhm , x_res . mu y_res = self . calc_fwhm ( yarr , medv = medv , method_name = method_name ) fwhm_y , cy = y_res . fwhm , y_res . mu ctr_x = x0 + cx ctr_y = y0 + cy self . logger . debug ( "fwhm_x,fwhm_y=%f,%f center=%f,%f" % ( fwhm_x , fwhm_y , ctr_x , ctr_y ) ) return ( fwhm_x , fwhm_y , ctr_x , ctr_y , x_res , y_res )
Get the FWHM value of the object at the coordinates (x, y) using
        radius.