Merge pull request #98 from earthobservatory/master

Sentinel1 TOPS: Fix swath extraction when redundant bursts encountered across scene
LT1AB
piyushrpt 2020-03-13 09:50:39 -07:00 committed by GitHub
commit ef9bfddfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()))
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])