Skip to content

Commit

Permalink
Add mission data take id
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Feb 10, 2024
1 parent 2298da9 commit f55e4fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_10_esa_safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions xarray_sentinel/esa_safe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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,
Expand Down

0 comments on commit f55e4fa

Please sign in to comment.