-
Notifications
You must be signed in to change notification settings - Fork 39
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
new vertical coord decode and reordering #315
new vertical coord decode and reordering #315
Conversation
The vertical decoding has been added for `ocean_sigma_coordinate` and the free surface variable has been expanded dimensionally for all the calculations so that the results preserve the standard ordering of time, vertical, lat/Y, lon/X. Three of the tests do not work anymore, though. Expanding dimensionally apparently bumps the attributes off of s_rho, for one. For another, the values are very similar but do not match anymore — not sure why. Interested to see what @dcherian thinks!
Ah I see an immediate problem with my |
What are the variable names for FVCOM? Can you also add an FVCOM test dataset please? I think the clearest solution might be a new
which means that we should deprecate
|
for more information, see https://pre-commit.ci
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
FVCOM won't work currently with xarray because the vertical coordinates have the same names as the dimensions and can't be read in without dropping the coordinate information, which is what has the vertical coordinate info. But I am trying to set up to be ready to do it when it works!
I like this approach. |
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
for more information, see https://pre-commit.ci
…ray into add_ocean_sigma_coordinate
for more information, see https://pre-commit.ci
@dcherian Sorry we overlapped a bit just now. Could you take a look now? I think I have it correct but not positive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now. Just 2 v. minor comments. Thanks!
The test failures are unrelated.
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@dcherian Anything else I should do here? |
There's another test that needs to be fixed by providing outnames |
@dcherian Ah ok how about now? |
Thanks! |
Wahoo!!! Thanks for all your help! |
The vertical decoding has been added for
ocean_sigma_coordinate
and the free surface variable has been expanded dimensionally for all the calculations so that the results preserve the standard ordering of time, vertical, lat/Y, lon/X. Three of the tests do not work anymore, though. Expanding dimensionally apparently bumps the attributes off of s_rho, for one. For another, the values are very similar but do not match anymore — not sure why. Interested to see what @dcherian thinks!