diff --git a/icepyx/core/visualization.py b/icepyx/core/visualization.py index e90c976fc..6d38a5cb8 100644 --- a/icepyx/core/visualization.py +++ b/icepyx/core/visualization.py @@ -159,14 +159,12 @@ def __init__( self.bbox = query_obj.spatial.extent else: - mrc_bound = ( - query_obj.spatial.extent_as_gdf.geometry.unary_union.minimum_rotated_rectangle.bounds - ) - # generate bounding box - lonmin = min(mrc_bound.exterior.coords.xy[0]) - lonmax = max(mrc_bound.exterior.coords.xy[0]) - latmin = min(mrc_bound.exterior.coords.xy[1]) - latmax = max(mrc_bound.exterior.coords.xy[1]) + ( + lonmin, + latmin, + lonmax, + latmax, + ) = query_obj.spatial.extent_as_gdf.geometry.unary_union.bounds self.bbox = [lonmin, latmin, lonmax, latmax]