csiro-coasts / emsarray

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

Expand more functions that accept DataArrayOrName #142

Closed mx-moth closed 2 months ago

mx-moth commented 3 months ago

Two new functions emsarray.utils.name_to_data_array and emsarray.utils.data_array_to_name have been added to accomplish this. Convention._get_data_array() has been deprecaterd in favour of name_to_data_array.

WIP, still needs some tests for the new functions.