From 1bbb48f22d02400ef99f28045f286ee32c291e8c Mon Sep 17 00:00:00 2001 From: xumi1993 Date: Mon, 19 Feb 2024 17:19:18 +0800 Subject: [PATCH] add bin values in bin_stack --- seispy/rfcorrect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])