Skip to content
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

Bug in derived.py for uv_geostrophic function of XROMS #63

Closed
ak11283 opened this issue Jan 30, 2024 · 4 comments · Fixed by #65
Closed

Bug in derived.py for uv_geostrophic function of XROMS #63

ak11283 opened this issue Jan 30, 2024 · 4 comments · Fixed by #65

Comments

@ak11283
Copy link

ak11283 commented Jan 30, 2024

Dear All,

I started to analyze my CROCO output by using XROMS. Really I loved it, it is amazing for calculation of several physical variables in a very efficient and smart way specially for curvilinear grid system.

Recently, I tried to calculate the geostrophic current and I found that in the derived.py the surface zonal geostrophic current are calculated as
ug = (-g * dzetadxi / to_u(f, xgrid, hboundary=hboundary, hfill_value=hfill_value).

However in ROMS the xi represent the X direction and eta represent the Y direction so basically the derivative of zeta with respect to xi shall represent vg instead of ug.

It is my understanding, if some thing I am missing please correct me.

Thank you.

Anurag

@kthyng
Copy link
Contributor

kthyng commented Feb 1, 2024

@hetland Can you take a look at this?

@hetland
Copy link
Collaborator

hetland commented Feb 1, 2024

Yup, these are indeed backwards. We put that in since we figured it would be useful, but we never used it for our work.

@ak11283 Do you want to fix it and send in a pull request?

@ak11283 ak11283 closed this as completed Feb 1, 2024
@ak11283 ak11283 reopened this Feb 1, 2024
@ak11283
Copy link
Author

ak11283 commented Feb 2, 2024

Hi Rob and Kristen,

Thanks for your reply. Yes, shall fix it as soon as possible and shall send in a pull request.

@kthyng kthyng linked a pull request Feb 9, 2024 that will close this issue
@kthyng
Copy link
Contributor

kthyng commented Feb 9, 2024

Hi @ak11283, there is now a new release of xroms on pypi (v0.6.0) that has this change. Please check it out! It will soon be available on conda-forge, too.

@kthyng kthyng closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants