-
Notifications
You must be signed in to change notification settings - Fork 214
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
Lack of consistency between fwd
and fwd_intermediate
azimuth output
#1163
Comments
cc: @idanmiara |
Related #841 |
Hi, |
Hi @idanmiara, |
Hi @stephenwinn16, |
Hi @stephenwinn16, @snowman2 |
I see this comment in the code:
This makes me think that the default return should be the back azimuth for consistency with PROJ. Thoughts? |
makes sense, but I guess that the comment should be fixed: |
@snowman2 agrees with you, so I've changed the default. |
Agreed.
Great, this should make everything consistent. Thank you both! |
ENH: Add `return_back_azimuth: bool` to allow compatibility between the azimuth output of the following functions (issue #1163): `fwd` and `fwd_intermediate`, `inv` and `inv_intermediate`, Note: BREAKING CHANGE for the default value `return_back_azimuth=True` in the functions `fwd_intermediate` and `inv_intermediate` to mach the default value in `fwd` and `inv`
Problem description
I've noticed an inconsistency between the azimuth output of
fwd
andfwd_intermediate
. In the example below, I compute the lon/lat/azi when moving 1km from London with an initial forward azimuth of 45 degrees with the both methods. As expected from the documentation,fwd
returns the backward azimuth whereasfwd_intermediate
returns the forward azimuth of the terminus point. For consistency and to avoid confusion, I suggestfwd_intermediate
also return the backward azimuth.Code Sample
which outputs:
Environment Information
pyproj info:
pyproj: 3.4.0
PROJ: 9.1.0
Installation method
Installed via pip
The text was updated successfully, but these errors were encountered: