From 655c46cc4add275879167b750a5e91f6d00f168e Mon Sep 17 00:00:00 2001 From: shitong01 Date: Fri, 13 Mar 2020 10:46:49 +0800 Subject: [PATCH] Remove overwrite assignment when redundant bursts encountered across scenes. --- components/isceobj/Sensor/TOPS/Sentinel1.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/isceobj/Sensor/TOPS/Sentinel1.py b/components/isceobj/Sensor/TOPS/Sentinel1.py index fc8b640..21fa447 100755 --- a/components/isceobj/Sensor/TOPS/Sentinel1.py +++ b/components/isceobj/Sensor/TOPS/Sentinel1.py @@ -493,15 +493,9 @@ class Sentinel1(Component): offset = np.int(np.rint((aslice.product.bursts[0].burstStartUTC - t0).total_seconds() / burstStartInterval.total_seconds())) for kk in range(aslice.product.numberOfBursts): - #####Overwrite previous copy if one exists + #####Skip appending if burst also exists from previous scene if (offset+kk) < len(self.product.bursts): - self.product.bursts[offset+kk] = aslice.product.bursts[kk] - - ####Keep track of tiff src files - if len(self.tiff): - self._tiffSrc[offset+kk] = aslice.tiff[0] - - self._elevationAngleVsTau[offset+kk] = aslice._elevationAngleVsTau[kk] + continue elif (offset+kk) == len(self.product.bursts): self.product.bursts.append(aslice.product.bursts[kk])