I was thinking of a feature that would be nice to have (in a short / long term future): being able to give a dataset ds to the gsw wrapped functions, and gsw-xarray would then get from ds the necessary dataarrays, based on their standard_name. So one could use: gsw.sigma0(ds). This can lead to many problems (e.g. how to deal with datasets containing more than 1 array for 1 standard_name), but we can keep the discussion on how to solve these problems for later, if we decide to implement this feature.
Originally posted by @rcaneill in #1 (comment)
I was thinking of a feature that would be nice to have (in a short / long term future): being able to give a dataset
dsto the gsw wrapped functions, and gsw-xarray would then get fromdsthe necessary dataarrays, based on their standard_name. So one could use:gsw.sigma0(ds). This can lead to many problems (e.g. how to deal with datasets containing more than 1 array for 1 standard_name), but we can keep the discussion on how to solve these problems for later, if we decide to implement this feature.Originally posted by @rcaneill in #1 (comment)