added utilities from xarray.  Need to think about whether xarray is required, or if this is standalone.

Signed-off-by: aj rossini <blindglobe@gmail.com>