From f55e4fad3be64352af395c4244db8696440b84b9 Mon Sep 17 00:00:00 2001 From: Alessandro Amici Date: Sat, 10 Feb 2024 16:11:17 +0100 Subject: [PATCH] Add mission data take id --- tests/test_10_esa_safe.py | 6 ++++++ xarray_sentinel/esa_safe.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/tests/test_10_esa_safe.py b/tests/test_10_esa_safe.py index 9753a2f..11cc340 100644 --- a/tests/test_10_esa_safe.py +++ b/tests/test_10_esa_safe.py @@ -18,6 +18,7 @@ "orbit_number": 26269, "pass": "DESCENDING", "product_type": "SLC", + "mission_data_take_id": 205463, "relative_orbit_number": 168, "start_time": "2021-04-01T05:26:22.396989", "stop_time": "2021-04-01T05:26:50.325833", @@ -32,6 +33,7 @@ "orbit_number": 37271, "pass": "DESCENDING", "product_type": "SLC", + "mission_data_take_id": 287751, "relative_orbit_number": 99, "start_time": "2021-04-02T11:55:12.030410", "stop_time": "2021-04-02T11:55:35.706705", @@ -46,6 +48,7 @@ "orbit_number": 37258, "pass": "ASCENDING", "product_type": "SLC", + "mission_data_take_id": 287630, "relative_orbit_number": 86, "start_time": "2021-04-01T15:28:55.111501", "stop_time": "2021-04-01T15:29:14.277650", @@ -60,6 +63,7 @@ "orbit_number": 37286, "pass": "DESCENDING", "product_type": "SLC", + "mission_data_take_id": 287876, "relative_orbit_number": 114, "start_time": "2021-04-03T12:25:36.505937", "stop_time": "2021-04-03T12:26:30.902216", @@ -74,6 +78,7 @@ "orbit_number": 26300, "pass": "DESCENDING", "product_type": "SLC", + "mission_data_take_id": 205712, "relative_orbit_number": 24, "start_time": "2021-04-03T08:30:25.749829", "stop_time": "2021-04-03T08:44:52.841818", @@ -88,6 +93,7 @@ "orbit_number": 26269, "pass": "DESCENDING", "product_type": "GRD", + "mission_data_take_id": 205463, "relative_orbit_number": 168, "start_time": "2021-04-01T05:26:23.794457", "stop_time": "2021-04-01T05:26:48.793373", diff --git a/xarray_sentinel/esa_safe.py b/xarray_sentinel/esa_safe.py index faaa1f1..072cb5e 100644 --- a/xarray_sentinel/esa_safe.py +++ b/xarray_sentinel/esa_safe.py @@ -135,6 +135,7 @@ def parse_manifest_sentinel1( ascending_node_time = findtext(manifest, ".//s1:ascendingNodeTime") + mission_data_take_id = findtext(manifest, ".//s1sarl1:missionDataTakeID") transmitter_receiver_polarisations = findall( manifest, ".//s1sarl1:transmitterReceiverPolarisation" ) @@ -152,6 +153,7 @@ def parse_manifest_sentinel1( "relative_orbit_number": int(relative_orbit_number[0]), "pass": orbit_pass, "ascending_node_time": ascending_node_time, + "mission_data_take_id": int(mission_data_take_id), "transmitter_receiver_polarisations": transmitter_receiver_polarisations, "product_type": product_type, "start_time": start_time,