-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEOS-10 Accessor Improvement Suggestions #72
Comments
Yep. That is definitely not desirable. It should be pressure and not depth.
If you want to tackle that I'd rather have a PR for the bug and another one for the variable names. However, I will leave the variable name discussion to @gmaze b/c, while that is nice to have, it may break people's workflow. Maybe leave that for a major release?
Indeed. Taking advantage of that will be nice. |
@ocefpaf Any thoughts on the "standard_name" attribute stuff? Variable names are low priority, but the values being set in the "standard_name" attribute are not from the CF standard name table. |
I have to confess that I've ignored CF errors for so long that I'm skeptical on any precise implementation of it. I usually just "outsource" to "good enough" compliance checkers and other parsers. With that said, yes, having correct standard_name is better. Don't listen to the old bitter man from the paragraph above. |
PVAs of now, we compute Planetary PV as a simple: pv = f * n2 / gsw.grav(lat, pres) but, this is pragmatic and not fully compliant with TEOS-10. So, should we use this instead ? : pv = f * n2 * gsw.IPV_vs_fNsquared_ratio(sa, ct, pres) in this case, we would need to move back results on the initial pressure levels, like we do for N2. PV.attrs['long_name'] = 'Planetary Potential Vorticity'
PV.attrs['comment'] = 'Based on Isopycnal Potential Vorticity, see Eqn. (3.20.17) of IOC et al. (2010)' Variable namesThe variable naming issue is not straightforward, basically, should we use in argopy the Argo vocabulary or the GSW one ? But since Argo is not verbose wrt the following variables, I think we can use the GSW naming combined with the Argo habit of capitalizing variable names:
but before implementing this, we would need to raise warning for future deprecation of the old names |
Ok, so #74 addresses:
To be addressed on another PR:
Raise a thumb if you agree |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
This issue was closed automatically because it has not seen any activity in 365 days |
Re-opening, because this is on the wish list, although we don't have ressources to work on it |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
This issue was marked as staled automatically because it has not seen any activity in 90 days |
Hi @gmaze
I was poking though the xarray accessor code and noticed some things in the teos10() method:
The first point about pressure and depth in CT is an actual bug.
I can prepare a PR to address some/all of these.
One other comment, the recent gsw 3.4 release has support for directly operating on xarray objects, including Datasets/arrays that are backed by some sort of chunked storage (e.g. dask), I think the calls to
.values
would need to be removed if support for this was desired.The text was updated successfully, but these errors were encountered: