Skip to content

Wrap longitude, 0-360, where it is used directly.#86

Merged
efiring merged 1 commit intoTEOS-10:masterfrom
efiring:wrap_longitude
Dec 29, 2021
Merged

Wrap longitude, 0-360, where it is used directly.#86
efiring merged 1 commit intoTEOS-10:masterfrom
efiring:wrap_longitude

Conversation

@efiring
Copy link
Member

@efiring efiring commented Dec 27, 2021

Closes #85.

For functions that take a longitude argument but merely pass it to
another function, we leave the argument as-is.

Closes TEOS-10#85.

For functions that take a longitude argument but merely pass it to
another function, we leave the argument as-is.
@efiring
Copy link
Member Author

efiring commented Dec 27, 2021

A note on the test: It cycles through all the check functions, adding and subtracting 360 from longitude in the check cast. It's overkill in testing functions that don't take a longitude argument, but it's fast enough, and simple.

@efiring efiring merged commit 272f8a7 into TEOS-10:master Dec 29, 2021
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.

BUG: inadequate wrapping of longitude in gsw_saar

2 participants