Skip to content

Commit

Permalink
[ID.getCorners] raise NotImplementedError if coordinates don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Dec 14, 2023
1 parent 84efffc commit 84404cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyroSAR/drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ def getCorners(self):
dict
the corner coordinates as a dictionary with keys `xmin`, `ymin`, `xmax`, `ymax`
"""
if 'coordinates' not in self.meta.keys():
raise NotImplementedError
coordinates = self.meta['coordinates']
lat = [x[1] for x in coordinates]
lon = [x[0] for x in coordinates]
Expand Down

0 comments on commit 84404cc

Please sign in to comment.