@@ -63,7 +63,8 @@ def parse_polynomial_element(elem, poly_name):
63
63
half_c = 0.5 * isce3 .core .speed_of_light
64
64
r0 = half_c * float (elem .find ('t0' ).text )
65
65
66
- # NOTE Format of the azimuth FM rate polynomials has changed when IPF version was somewhere between 2.36 and 2.82
66
+ # NOTE Format of the azimuth FM rate polynomials has changed
67
+ # when IPF version was somewhere between 2.36 and 2.82
67
68
if elem .find (poly_name ) is None : # before the format change i.e. older IPF
68
69
coeffs = [float (x .text ) for x in elem [2 :]]
69
70
else : # after the format change i.e. newer IPF
@@ -472,7 +473,7 @@ def get_track_burst_num(track_burst_num_file: str = esa_track_burst_id_file):
472
473
473
474
def burst_from_xml (annotation_path : str , orbit_path : str , tiff_path : str ,
474
475
iw2_annotation_path : str , open_method = open ,
475
- flag_apply_eap : bool = True ):
476
+ flag_apply_eap : bool = True ):
476
477
'''Parse bursts in Sentinel-1 annotation XML.
477
478
478
479
Parameters:
@@ -490,7 +491,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
490
491
Function used to open annotation file.
491
492
flag_apply_eqp: bool
492
493
Flag to turn on/off EAP related functionality
493
-
494
+
494
495
Returns:
495
496
--------
496
497
bursts : list
@@ -517,7 +518,8 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
517
518
# load the Calibraton annotation
518
519
try :
519
520
calibration_annotation_path = \
520
- annotation_path .replace ('annotation/' , 'annotation/calibration/calibration-' )
521
+ annotation_path .replace ('annotation/' ,
522
+ 'annotation/calibration/calibration-' )
521
523
with open_method (calibration_annotation_path , 'r' ) as f_cads :
522
524
tree_cads = ET .parse (f_cads )
523
525
calibration_annotation = \
@@ -528,7 +530,8 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
528
530
529
531
# load the Noise annotation
530
532
try :
531
- noise_annotation_path = annotation_path .replace ('annotation/' , 'annotation/calibration/noise-' )
533
+ noise_annotation_path = annotation_path .replace ('annotation/' ,
534
+ 'annotation/calibration/noise-' )
532
535
with open_method (noise_annotation_path , 'r' ) as f_nads :
533
536
tree_nads = ET .parse (f_nads )
534
537
noise_annotation = NoiseAnnotation .from_et (tree_nads , ipf_version ,
@@ -649,7 +652,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
649
652
seconds = n_lines * azimuth_time_interval )
650
653
if len (osv_list ) > 0 :
651
654
# get orbit from state vector list/element tree
652
-
655
+
653
656
orbit = get_burst_orbit (sensing_start , sensing_start + sensing_duration ,
654
657
osv_list )
655
658
else :
@@ -693,11 +696,12 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
693
696
sensing_start )
694
697
695
698
# Extended FM and DC coefficient information
696
- extended_coeffs = BurstExtendedCoeffs .from_polynomial_lists (az_fm_rate_list ,
697
- doppler_list ,
698
- sensing_start ,
699
- sensing_start + sensing_duration )
700
-
699
+ extended_coeffs = BurstExtendedCoeffs .from_polynomial_lists (
700
+ az_fm_rate_list ,
701
+ doppler_list ,
702
+ sensing_start ,
703
+ sensing_start + sensing_duration )
704
+
701
705
bursts [i ] = Sentinel1BurstSlc (ipf_version , sensing_start , radar_freq , wavelength ,
702
706
azimuth_steer_rate , azimuth_time_interval ,
703
707
slant_range_time , starting_range , iw2_mid_range ,
@@ -760,7 +764,7 @@ def load_bursts(path: str, orbit_path: str, swath_num: int, pol: str = 'vv',
760
764
returned (empty list if none are found).
761
765
flag_apply_eap: bool
762
766
Turn on/off EAP related features (AUX_CAL loader)
763
-
767
+
764
768
Returns:
765
769
--------
766
770
bursts : list
@@ -830,7 +834,7 @@ def _burst_from_zip(zip_path: str, id_str: str, orbit_path: str,
830
834
Path the orbit file.
831
835
flag_apply_eap: bool
832
836
Turn on/off EAP related features (AUX_CAL loader)
833
-
837
+
834
838
Returns:
835
839
--------
836
840
bursts : list
@@ -875,7 +879,7 @@ def _burst_from_safe_dir(safe_dir_path: str, id_str: str, orbit_path: str,
875
879
Path the orbit file.
876
880
flag_apply_eap: bool
877
881
Turn on/off EAP related features (AUX_CAL loader)
878
-
882
+
879
883
Returns:
880
884
--------
881
885
bursts : list
0 commit comments