Skip to content

Commit ba3efcb

Browse files
committed
PEP8 issues
1 parent 00faad9 commit ba3efcb

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

src/s1reader/s1_burst_slc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def az_carrier_components(self, offset, position):
705705

706706
return AzimuthCarrierComponents(kt, eta, eta_ref)
707707

708-
def az_fm_rate_mismatch_mitigation(self,
708+
def az_fm_rate_mismatch_mitigation(self,
709709
path_dem: str,
710710
path_scratch: str = None,
711711
range_step=None,

src/s1reader/s1_reader.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def parse_polynomial_element(elem, poly_name):
6363
half_c = 0.5 * isce3.core.speed_of_light
6464
r0 = half_c * float(elem.find('t0').text)
6565

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
6768
if elem.find(poly_name) is None: # before the format change i.e. older IPF
6869
coeffs = [float(x.text) for x in elem[2:]]
6970
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):
472473

473474
def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
474475
iw2_annotation_path: str, open_method=open,
475-
flag_apply_eap: bool=True):
476+
flag_apply_eap: bool = True):
476477
'''Parse bursts in Sentinel-1 annotation XML.
477478
478479
Parameters:
@@ -490,7 +491,7 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
490491
Function used to open annotation file.
491492
flag_apply_eqp: bool
492493
Flag to turn on/off EAP related functionality
493-
494+
494495
Returns:
495496
--------
496497
bursts : list
@@ -517,7 +518,8 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
517518
# load the Calibraton annotation
518519
try:
519520
calibration_annotation_path =\
520-
annotation_path.replace('annotation/', 'annotation/calibration/calibration-')
521+
annotation_path.replace('annotation/',
522+
'annotation/calibration/calibration-')
521523
with open_method(calibration_annotation_path, 'r') as f_cads:
522524
tree_cads = ET.parse(f_cads)
523525
calibration_annotation =\
@@ -528,7 +530,8 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
528530

529531
# load the Noise annotation
530532
try:
531-
noise_annotation_path = annotation_path.replace('annotation/', 'annotation/calibration/noise-')
533+
noise_annotation_path = annotation_path.replace('annotation/',
534+
'annotation/calibration/noise-')
532535
with open_method(noise_annotation_path, 'r') as f_nads:
533536
tree_nads = ET.parse(f_nads)
534537
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,
649652
seconds=n_lines * azimuth_time_interval)
650653
if len(osv_list) > 0:
651654
# get orbit from state vector list/element tree
652-
655+
653656
orbit = get_burst_orbit(sensing_start, sensing_start + sensing_duration,
654657
osv_list)
655658
else:
@@ -693,11 +696,12 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
693696
sensing_start)
694697

695698
# 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+
701705
bursts[i] = Sentinel1BurstSlc(ipf_version, sensing_start, radar_freq, wavelength,
702706
azimuth_steer_rate, azimuth_time_interval,
703707
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',
760764
returned (empty list if none are found).
761765
flag_apply_eap: bool
762766
Turn on/off EAP related features (AUX_CAL loader)
763-
767+
764768
Returns:
765769
--------
766770
bursts : list
@@ -830,7 +834,7 @@ def _burst_from_zip(zip_path: str, id_str: str, orbit_path: str,
830834
Path the orbit file.
831835
flag_apply_eap: bool
832836
Turn on/off EAP related features (AUX_CAL loader)
833-
837+
834838
Returns:
835839
--------
836840
bursts : list
@@ -875,7 +879,7 @@ def _burst_from_safe_dir(safe_dir_path: str, id_str: str, orbit_path: str,
875879
Path the orbit file.
876880
flag_apply_eap: bool
877881
Turn on/off EAP related features (AUX_CAL loader)
878-
882+
879883
Returns:
880884
--------
881885
bursts : list

0 commit comments

Comments
 (0)