csiro-coasts / emsarray

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

Add `Convention.select_indexes()` method #146

Closed mx-moth closed 2 months ago

mx-moth commented 2 months ago

Adds the methods Convention.selector_for_indexes(), Convention.select_indexes, and Convention.select_points(). These allow for more efficient extraction of multiple points at the same time. These are similar to their singular counterparts, but take lists of indexes or points instead.

This introduces some changes which are backwards incompatible. These incompatibilities are hopefully minor.

Fixes #106