Skip to content

Instantly share code, notes, and snippets.

@robbibt
Created November 18, 2020 05:46
Show Gist options
  • Save robbibt/e6848f737f08f46f4d0cae63b679ae12 to your computer and use it in GitHub Desktop.
Save robbibt/e6848f737f08f46f4d0cae63b679ae12 to your computer and use it in GitHub Desktop.
Convert numpy array back to xarray
xr.DataArray(array, coords=da.coords, dims=da.dims, attrs=da.attrs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment