|
12 | 12 | from s1reader.s1_burst_slc import Doppler, Sentinel1BurstSlc
|
13 | 13 |
|
14 | 14 |
|
15 |
| -esa_track_burst_id_file = f"{os.path.dirname(os.path.realpath(__file__))}/data/sentinel1_track_burst_id.txt" |
| 15 | +esa_track_burst_id_file = f"{os.path.dirname(os.path.realpath(__file__))}/data/sentinel1_track_burst_id.txt" |
16 | 16 |
|
17 | 17 | # TODO evaluate if it make sense to combine below into a class
|
18 | 18 | def as_datetime(t_str, fmt = "%Y-%m-%dT%H:%M:%S.%f"):
|
@@ -275,8 +275,8 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
|
275 | 275 | List of Sentinel1BurstSlc objects found in annotation XML.
|
276 | 276 | '''
|
277 | 277 |
|
278 |
| - # a 1D array where the indices are the Sentinel-1 track number |
279 |
| - # and the data at each row are the corresponding cumulative ID |
| 278 | + # a 1D array where the indices are the Sentinel-1 track number |
| 279 | + # and the data at each row are the corresponding cumulative ID |
280 | 280 | # number for the last burst of the given track (i.e., line number)
|
281 | 281 | # get last burst ID number of each track and prepend 0
|
282 | 282 | tracks_burst_id = np.insert(np.loadtxt(esa_track_burst_id_file,
|
@@ -366,12 +366,12 @@ def burst_from_xml(annotation_path: str, orbit_path: str, tiff_path: str,
|
366 | 366 | dt = sensing_times[i] - ascending_node_time
|
367 | 367 | id_burst = int((dt.seconds + dt.microseconds / 1e6) // burst_interval)
|
368 | 368 |
|
369 |
| - # To be consistent with ESA let's start the counter of the ID |
370 |
| - # from 1 instead of from 0, i,e, the ID of the first burst of the |
| 369 | + # To be consistent with ESA let's start the counter of the ID |
| 370 | + # from 1 instead of from 0, i,e, the ID of the first burst of the |
371 | 371 | # first track is 1
|
372 | 372 | id_burst += 1
|
373 | 373 |
|
374 |
| - # the IDs are currently local to one track. Let's adjust based on |
| 374 | + # the IDs are currently local to one track. Let's adjust based on |
375 | 375 | # the last ID of the previous track
|
376 | 376 | id_burst += tracks_burst_id[track_number-1]
|
377 | 377 |
|
|
0 commit comments