Skip to content

Commit

Permalink
Lower the need to be in sync with xarray-sentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Dec 20, 2024
1 parent baea606 commit 6fd2eba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sarsen/sentinel1.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ def product_info(self, **kwargs: Any) -> Dict[str, Any]:
"orbit_number",
"mission_data_take_id",
]
product_info = {attr_name: gcp.attrs[attr_name] for attr_name in product_attrs}
product_info = {}
for attr_name in product_attrs:
try:
product_info[attr_name] = gcp.attrs[attr_name]
except KeyError:
pass
product_info.update(
{
"measurement_groups": measurement_groups,
Expand Down

0 comments on commit 6fd2eba

Please sign in to comment.