csiro-coasts / emsarray

xarray extension that supports EMS model formats
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Feature request: Convention.bounds #82

Closed mx-moth closed 1 year ago

mx-moth commented 1 year ago

Add a new Convention.bounds property. This should resemble Shapely's Geometry.bounds, returning the bounds of the convention geometry as a tuple of (min_x, min_y, max_x, max_y).

A base implementation can be added that takes the bounds of the unioned polygon geometry of the entire dataset. However, most conventions will be able to implement something much simpler.

mx-moth commented 1 year ago

Fixed in #83