Skip to content

Instantly share code, notes, and snippets.

@raphaeldussin
Created December 11, 2019 19:58
Show Gist options
  • Select an option

  • Save raphaeldussin/e4cda7dbe54cf6a1033cd0662b3e74df to your computer and use it in GitHub Desktop.

Select an option

Save raphaeldussin/e4cda7dbe54cf6a1033cd0662b3e74df to your computer and use it in GitHub Desktop.
using gsw with xarray
# this is a wrong & stupid computation, just here for example
pt = xr.apply_ufunc(gsw.pt0_from_t, ds.so, ds.thetao, ds.z_l, dask='parallelized', output_dtypes=[ds.so.dtype])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment