# HG changeset patch # User ioannis # Date 1585153048 -7200 # Node ID 27a0024331fd7030c022a6804e71cf4ec0929240 # Parent 3e652f8063d4dc66a6d88c35ba095571a12670dd Small bug in range correcting signal with pre-trigger regions. diff -r 3e652f8063d4 -r 27a0024331fd atmospheric_lidar/generic.py --- a/atmospheric_lidar/generic.py Wed Mar 25 11:53:07 2020 +0200 +++ b/atmospheric_lidar/generic.py Wed Mar 25 18:17:28 2020 +0200 @@ -732,7 +732,7 @@ background = np.mean(self.matrix[:, idx_min:idx_max], axis=1) background_corrected = (self.matrix.transpose() - background).transpose() background_corrected = np.roll(background_corrected, -first_signal_bin, axis=1) - background_corrected[:, -9:] = 0 + background_corrected[:, -first_signal_bin:] = 0 self.rc = background_corrected * (self.z ** 2) def noise_mask(self, idx_min=-2000, idx_max=-500, threshold=1.): diff -r 3e652f8063d4 -r 27a0024331fd changelog.rst --- a/changelog.rst Wed Mar 25 11:53:07 2020 +0200 +++ b/changelog.rst Wed Mar 25 18:17:28 2020 +0200 @@ -3,6 +3,9 @@ Unreleased ---------- +Fixed +~~~~~ + - Bug in range correcting signal when using pre-trigger region. 0.5.0 - 2020‑03‑25 ------------------