@@ -406,7 +406,7 @@ def populateBbox(self, margin=0.1):
406
406
lat = []
407
407
lon = []
408
408
409
- for child in glist . getchildren () :
409
+ for child in glist :
410
410
lat .append ( float (child .find ('latitude' ).text ))
411
411
lon .append ( float (child .find ('longitude' ).text ))
412
412
@@ -502,7 +502,7 @@ def extractOrbit(self):
502
502
frameOrbit = Orbit ()
503
503
frameOrbit .configure ()
504
504
505
- for child in node . getchildren () :
505
+ for child in node :
506
506
timestamp = self .convertToDateTime (child .find ('time' ).text )
507
507
pos = []
508
508
vel = []
@@ -543,7 +543,7 @@ def extractPreciseOrbit(self):
543
543
tstart = self .product .sensingStart - margin
544
544
tend = self .product .sensingStop + margin
545
545
546
- for child in node . getchildren () :
546
+ for child in node :
547
547
timestamp = self .convertToDateTime (child .find ('UTC' ).text [4 :])
548
548
549
549
if (timestamp >= tstart ) and (timestamp < tend ):
@@ -606,7 +606,7 @@ def extractBetaLUT(self):
606
606
pixels = []
607
607
data = None
608
608
609
- for ii , child in enumerate (node . getchildren () ):
609
+ for ii , child in enumerate (node ):
610
610
pixnode = child .find ('pixel' )
611
611
nump = int (pixnode .attrib ['count' ])
612
612
@@ -685,7 +685,7 @@ def extractNoiseLUT(self):
685
685
noise_range_lut_indices = np .zeros ((num_vectors ,))
686
686
noise_range_lut_values = np .zeros ((num_vectors , self .product .numberOfSamples ))
687
687
688
- for ii , child in enumerate (node . getchildren () ):
688
+ for ii , child in enumerate (node ):
689
689
print ("Processing range noise vector {}/{}" .format (ii + 1 , num_vectors ))
690
690
pixnode = child .find ('pixel' )
691
691
@@ -711,7 +711,7 @@ def extractNoiseLUT(self):
711
711
noise_azimuth_lut_indices = defaultdict (list )
712
712
noise_azimuth_lut_values = defaultdict (list )
713
713
714
- for block_i , child in enumerate (node . getchildren () ):
714
+ for block_i , child in enumerate (node ):
715
715
print ("Processing azimuth noise vector {}/{}" .format (block_i + 1 , num_vectors ))
716
716
linenode = child .find ('line' )
717
717
signode = child .find ("noiseAzimuthLut" )
@@ -861,7 +861,7 @@ def extractSlantRange(self, full=True):
861
861
data = []
862
862
863
863
864
- for ii , child in enumerate (node . getchildren () ):
864
+ for ii , child in enumerate (node ):
865
865
t0 = self .convertToDateTime (child .find ('azimuthTime' ).text )
866
866
867
867
lines .append ( (t0 - self .product .sensingStart ).total_seconds ()/ self .product .azimuthTimeInterval )
0 commit comments