diff --git a/seispy/rfcorrect.py b/seispy/rfcorrect.py index 555260a3..308bf533 100644 --- a/seispy/rfcorrect.py +++ b/seispy/rfcorrect.py @@ -191,7 +191,8 @@ def bin_stack(self, key='bazi', lim=[0, 360], val=10): idx = np.digitize(self.__dict__[key], bins) stacked = { 'data_prime': np.zeros([bins.size-1, self.rflength]), - 'count': np.zeros(bins.size-1) + 'count': np.zeros(bins.size-1), + 'bins': bins[:-1]+val/2, } if not self.only_r: stacked['datat'] = np.zeros([bins.size-1, self.rflength])