Remove overwrite assignment when redundant bursts encountered across scenes.

LT1AB
shitong01 2020-03-13 10:46:49 +08:00
parent 5c32079172
commit 655c46cc4a
1 changed files with 2 additions and 8 deletions

View File

@ -493,15 +493,9 @@ class Sentinel1(Component):
offset = np.int(np.rint((aslice.product.bursts[0].burstStartUTC - t0).total_seconds() / burstStartInterval.total_seconds())) offset = np.int(np.rint((aslice.product.bursts[0].burstStartUTC - t0).total_seconds() / burstStartInterval.total_seconds()))
for kk in range(aslice.product.numberOfBursts): 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): if (offset+kk) < len(self.product.bursts):
self.product.bursts[offset+kk] = aslice.product.bursts[kk] continue
####Keep track of tiff src files
if len(self.tiff):
self._tiffSrc[offset+kk] = aslice.tiff[0]
self._elevationAngleVsTau[offset+kk] = aslice._elevationAngleVsTau[kk]
elif (offset+kk) == len(self.product.bursts): elif (offset+kk) == len(self.product.bursts):
self.product.bursts.append(aslice.product.bursts[kk]) self.product.bursts.append(aslice.product.bursts[kk])