def METHOD_NAME(self,ds,threshold=30000):
    self._prepare_find_jumps()
    ds = self._hf[ds]
    offset=ds[0]
    # first we remove a bit of noise
    #flt = gaussian_filter1d(ds,10)
    flt = median_filter(ds,size=10)
    #flt = ds
    # the sobel filter finds the "jumps" 
    sb=sobel(flt)
    for i in sb:
        self.qps_jpn_hight.append(float(i))
    for i in flt: self.qps_jpn_spec.append(float(i))
    """    
    for i in xrange(flt.shape[0]-1):
        if(abs(sb[i])>threshold):
            offset -= sb[i]
            self.qps_jpn_spec.append(float(flt[i]-offset))
        else:
            self.qps_jpn_spec.append(float(flt[i]-offset))
    """       
    #for i in sb