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

fix angle rotation bug #13

Merged
merged 1 commit into from
Apr 3, 2024
Merged

fix angle rotation bug #13

merged 1 commit into from
Apr 3, 2024

Conversation

yichengt900
Copy link
Contributor

This PR fixes existing python script by having each segment make its own copy of the hgrid dataset before doing any units conversion.

The requirement to convert from degrees to radians is primarily a concern with the NWA12 domain; in other domains, the angle should be already in radians. Therefore, this PR includes a change to assume by default that the angle is in radians. If the angle_dx variable in the hgrid dataset has a units attribute of degrees, it will automatically be converted to radians.

@yichengt900 yichengt900 merged commit 004a335 into main Apr 3, 2024
1 check passed
@yichengt900 yichengt900 deleted the bug/angle-rotation branch April 4, 2024 16:39
theresa-morrison pushed a commit that referenced this pull request May 15, 2024
* update cobalt ci answers
theresa-morrison pushed a commit to theresa-morrison/CEFI-regional-MOM6 that referenced this pull request Aug 6, 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 this pull request may close these issues.

1 participant